public class GlobalImage extends Image implements IImageFilter
Modifier and Type | Field and Description |
---|---|
static String |
IMAGE_FILTER |
protected static Logger |
logger
create a static logger.
|
static String |
RAW_FILTER |
static String |
TYPE |
config, STYLE_CENTER
DEFAULT_ENCODING, DESCRIPTION_KEY, DIR_KEY, EMBED_CODE_KEY, ENCODING_KEY, FILE_NAME_KEY, LABEL_KEY, properties, REVERSE_LINK_KEY
CACHE_KEY_SUFFIX_PARAM_NAME, COMPONENT_KEY, EDIT_CLASS, FORCE_COMPONENT_ID, HIDDEN, I18N_FILE, NOT_EDIT_PREVIEW_PARAM_NAME, SCROLL_TO_COMP_ID_ATTRIBUTE_NAME, TIME_CACHE_NAME, VALUE_SEPARATOR
NO_LINK
COLORED_WRAPPER_CLASS, COMP_ID_REQUEST_PARAM, COMPLEXITY_ADMIN, COMPLEXITY_EASY, COMPLEXITY_STANDARD, CONTAINER_COLOR, DEFAULT_COLOR, DYN_COMP_COLOR, ECOM_COLOR, EDIT_ACTION_CSS_CLASS, GRAPHIC_COLOR, HIGH_LABEL_LEVEL, ID_SEPARATOR, LINK_COLOR, LOW_LABEL_LEVEL, META_COLOR, MIDDLE_LABEL_LEVEL, SEARCH_LEVEL_HIGH, SEARCH_LEVEL_LOW, SEARCH_LEVEL_MIDDLE, SEARCH_LEVEL_NONE, TEXT_COLOR, VIEW_DEFINITION_REQUEST_ID, WEB2_COLOR
Constructor and Description |
---|
GlobalImage() |
getCssClass, getCSSType, getDefaultFile, getDescription, getDisplayAllLabel, getFile, getFileList, getFiles, getHelpURI, getImageDescription, getLanguage, getMainFolder, getPopularity, getPriority, getRelativeFileDirectory, getStaticLabel, getStyleLabelList, getStyleList, getStyleTitle, getTags, init, isAllowRAW, isImageValid, isShared, isUploadOnDrop
contains, equals, expandZip, getAllResources, getAllResourcesLinks, getContentAsText, getDecoImageFileXHTMLInputName, getDecoImageXHTMLInputName, getDecorationFilter, getDeleteTitle, getDescription, getDescriptionName, getDirInputName, getDirLabelTitle, getDirList, getDirSelected, getEmbedCode, getEmbedCodeName, getEncoding, getEncodingXHTMLInputName, getFileFilter, getFileList, getFileName, getFileUploadActionTitle, getFileURL, getFileXHTMLInputName, getFirstTextInputName, getImageChangeTitle, getImageDecorativeTitle, getImageLabelTitle, getImageSelectTitle, getImageUploadTitle, getJSOnChange, getLabel, getLabelXHTMLInputName, getLatestValidDate, getMaxPreviewImages, getMetaCode, getNewDirInputName, getNewDirLabelTitle, getPreviewCode, getPreviewCode, getPreviewCode, getPreviewZoneId, getResourceURL, getResourceURL, getReverseLinkeLabelTitle, getReverseLinkInputName, getSecondTextInputName, getSelectXHTMLInputName, getStaticInfo, getTextAutoInputName, getWordCount, isDisplayable, isDisplayMeta, isFromShared, isImported, isInsertable, isLinkToStatic, isMirroredByDefault, isOnlyFirstOccurrence, isReverseLink, isWithDescription, needEncoding, performLoadImages, performUpload, reloadProperties, renameResource, saveItem, setDirSelected, setEmbedCode, setFileName, setLabel, setLatestValidDate, setValue, storeProperties, transflateFrom
applyReplacement, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getComplexityLevel, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentLabel, getComponentPath, getConfig, getConfigMessage, getContainerPage, getContentAsMap, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayAsInputName, getDisplayMessage, getEditText, getEmptyCode, getEmptyXHTMLCode, getErrorMessage, getExternalResources, getFirstPrefix, getForcedId, getForcedPrefixViewXHTMLCode, getForcedSuffixViewXHTMLCode, getFormName, getHeaderContent, getHelpType, getHelpURL, getI18nEditableKeys, getId, getImportFolderPath, getImportFolderPath, getInlineStyle, getInputName, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLabelLevel, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getLock, getMarkerList, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPageDescription, getPrefixViewXHTMLCode, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getRemplacement, getRenderer, getRendererTitle, getRenderes, getRequestComponent, getSearchLevel, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssClass, getSpecialPreviewCssId, getStyle, getStyleLabel, getSuffixViewXHTMLCode, getTag, getTextColor, getTextForSearch, getTextLabel, getTextTitle, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, insert, isAjaxWrapper, isAutoDeletable, isAutoRenderer, isBackgroundColored, isCanAddClass, isColored, isConfig, isContentCachableByQuery, isContentTimeCachable, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isInline, isList, isMetaTitle, isMirrorWrapped, isModify, isNeedDelete, isNeedRefresh, isNeedRenderer, isNew, isNextSame, isNextSame, isNolink, isNoLinkable, isPreviousSame, isPreviousSame, isRealContent, isRepeat, isRepeatable, isRestMatch, isReversedLink, isUnique, isValueProperties, isValueTranslatable, isViewDataFile, isVisible, isVisible, isVisibleFromCookies, isWrapped, isXML, loadViewData, main, markAsNew, newInstance, next, onStyleChange, performConfig, performUpdate, previous, processView, renderViewXHTMLCode, replaceAllInContent, replaceInContent, resetContentCache, resetViewData, setBackgroundColor, setComponentBean, setContainerPage, setContentCache, setContentTimeCache, setDisplayHidden, setForcedId, setHidden, setHiddenInMode, setList, setMirrorWrapped, setModify, setNeedRefresh, setNextComponent, setNolink, setPage, setPreviousComponent, setRepeat, setStyle, setTextColor, setValid, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTML
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
getResourceURL
getPreviewCode
protected static Logger logger
public static final String IMAGE_FILTER
public static final String TYPE
public static final String RAW_FILTER
protected boolean canUpload(ContentContext ctx)
canUpload
in class AbstractFileComponent
public String getType()
IContentVisualComponent
getType
in interface IContentVisualComponent
getType
in class Image
public String createFileURL(ContentContext ctx, String url)
createFileURL
in class Image
public String getCSSClassName(ContentContext ctx)
getCSSClassName
in class Image
public String getSpecificClass(ContentContext ctx)
AbstractVisualComponent
getSpecificClass
in class AbstractVisualComponent
protected boolean isImageFilter()
protected boolean isDecorationImage()
protected Map<String,String> getTranslatableResources(ContentContext ctx) throws Exception
Exception
public String getTranslatedID()
public void setTranslatedID(String id)
public boolean isAskWidth(ContentContext ctx)
isAskWidth
in class AbstractVisualComponent
public String getWidth()
getWidth
in class AbstractVisualComponent
public void setWidth(String width)
setWidth
in class AbstractVisualComponent
protected String getDefaultFilter()
public String getAlt(ContentContext ctx)
public String getPreviewURL(ContentContext ctx, String filter)
getPreviewURL
in interface IStaticResource
getPreviewURL
in class Image
public String getImageHash(ContentContextBean ctx)
getImageHash
in interface IImageFilter
protected String getImageURL(ContentContext ctx) throws Exception
Exception
protected boolean isEditImage(ContentContext ctx)
public void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponent
prepareView
in class Image
Exception
protected String getNewLinkParamName()
protected boolean isLabel()
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
getEditXHTMLCode
in class AbstractFileComponent
Exception
protected boolean isMutlimediaResource()
protected boolean isLink()
protected boolean isEmbedCode()
public String getTitle()
public String getTitle(ContentContext ctx)
getTitle
in interface IStaticResource
getTitle
in class Image
public String getLocation(ContentContext ctx)
getLocation
in interface IStaticResource
getLocation
in class Image
public Date getDate(ContentContext ctx)
getDate
in interface IStaticResource
getDate
in class Image
protected void setTitle(String title)
public String getLocation()
public Date getDate() throws ParseException
ParseException
public String getDisplayDate() throws ParseException
ParseException
protected void setDate(String date)
protected boolean isMeta()
public String getFileDirectory(ContentContext ctx)
getFileDirectory
in class Image
public String getFileNameOver()
protected String getFilter(ContentContext ctx)
public String getHexColor()
IContentVisualComponent
getHexColor
in interface IContentVisualComponent
getHexColor
in class Image
public String getImageImgName()
getImageImgName
in class AbstractFileComponent
protected String getImageLinkTitle(ContentContext ctx) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public String getLink()
public String getURL(ContentContext ctx)
ILink
protected String getLargeFilter(ContentContext ctx)
protected String getLinkXHTMLInputName()
public GenericMessage getMessage()
IContentVisualComponent
getMessage
in interface IContentVisualComponent
getMessage
in class AbstractVisualComponent
public String getViewXHTMLCode(ContentContext ctx) throws Exception
getViewXHTMLCode
in class Image
Exception
org.javlo.itf.IContentVisualComponent#getXHTMLCode()
protected void init() throws ResourceNotFoundException
init
in class AbstractVisualComponent
ResourceNotFoundException
public boolean isContentCachable(ContentContext ctx)
IContentVisualComponent
isContentCachable
in interface IContentVisualComponent
isContentCachable
in class AbstractFileComponent
public String performEdit(ContentContext ctx) throws Exception
IContentVisualComponent
performEdit
in interface IContentVisualComponent
performEdit
in class AbstractFileComponent
Exception
protected boolean isLinkValid(String url)
public void setFilter(String filter)
public void setLink(String link)
public void setDecorationImage(String image)
public String getDecorationImage()
public void setMessage(GenericMessage inMsg)
setMessage
in class AbstractVisualComponent
protected void uploadFiles(ContentContext ctx, RequestService requestService) throws Exception
uploadFiles
in class AbstractFileComponent
Exception
public String getImageLinkURL(ContentContext ctx)
getImageLinkURL
in interface IImageTitle
getImageLinkURL
in class Image
public boolean initContent(ContentContext ctx) throws Exception
IContentVisualComponent
initContent
in interface IContentVisualComponent
initContent
in class Image
Exception
public int getHeight()
public void setRenderer(ContentContext ctx, String renderer)
IContentVisualComponent
setRenderer
in interface IContentVisualComponent
setRenderer
in class AbstractVisualComponent
public int getWidth(ContentContextBean ctx)
public int getHeight(ContentContextBean ctx)
public String getFirstText()
public void setFirstText(String text)
public String getSecondText()
public void setSecondText(String text)
public void setHeight(ContentContext ctx, int height)
public void setWidth(ContentContext ctx, int width) throws Exception
Exception
public String getActionGroupName()
IAction
getActionGroupName
in interface IAction
getActionGroupName
in class Image
public static String performDataFeedBack(ContentContext ctx, EditContext editContext, GlobalContext globalContext, User currentUser, ContentService content, ComponentContext componentContext, RequestService rs, I18nAccess i18nAccess, MessageRepository messageRepository, Module currentModule, AdminUserFactory adminUserFactory) throws Exception
Exception
public boolean isFloatText(ContentContext ctx)
public String getSpecialTagTitle(ContentContext ctx) throws Exception
getSpecialTagTitle
in interface IContentVisualComponent
getSpecialTagTitle
in class AbstractVisualComponent
Exception
public boolean isTextAuto()
public void setTextAuto(boolean auto)
protected String getLabelTextInputName()
protected String getEditorComplexity(ContentContext ctx)
AbstractVisualComponent
getEditorComplexity
in class AbstractFileComponent
public String getSpecialTagXHTML(ContentContext ctx) throws Exception
getSpecialTagXHTML
in interface IContentVisualComponent
getSpecialTagXHTML
in class AbstractVisualComponent
Exception
public String getImageFilterKey(ContentContextBean ctx)
getImageFilterKey
in interface IImageFilter
public BufferedImage filterImage(ContentContextBean ctx, BufferedImage image)
filterImage
in interface IImageFilter
public boolean isListable()
IContentVisualComponent
isListable
in interface IContentVisualComponent
isListable
in class AbstractVisualComponent
public GenericMessage getTextMessage(ContentContext ctx)
IContentVisualComponent
getTextMessage
in interface IContentVisualComponent
getTextMessage
in class AbstractVisualComponent
public boolean isLinkValid(ContentContext ctx)
ILink
isLinkValid
in interface ILink
isLinkValid
in class AbstractFileComponent
protected boolean isFileNameValid(ContentContext ctx, String fileName)
isFileNameValid
in class AbstractFileComponent
public boolean isLocal(ContentContext ctx)
IStaticResource
isLocal
in interface IStaticResource
isLocal
in class Image
public String getErrorMessage(ContentContext ctx)
IContentVisualComponent
getErrorMessage
in interface IContentVisualComponent
getErrorMessage
in class AbstractVisualComponent
public String getFontAwesome()
getFontAwesome
in interface IContentVisualComponent
getFontAwesome
in class Image
Copyright © 2012-2018. All Rights Reserved.