Package org.javlo.component.image
Class GlobalImage
- java.lang.Object
-
- org.javlo.component.core.AbstractVisualComponent
-
- org.javlo.component.files.AbstractFileComponent
-
- org.javlo.component.image.Image
-
- org.javlo.component.image.GlobalImage
-
- All Implemented Interfaces:
Serializable,Comparable<IContentVisualComponent>,IAction,IContentVisualComponent,IImageFilter,ILink,IPreviewable,IStaticResource,IUploadResource,IImageTitle,IRestItem,IStaticContainer
- Direct Known Subclasses:
GlobalImageSession,ImageBackground,OnlineVideo,Video
public class GlobalImage extends Image implements IImageFilter
- Author:
- pvandermaesen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringIMAGE_FILTERprotected static Loggerloggercreate a static logger.static StringRAW_FILTERstatic StringTYPE-
Fields inherited from class org.javlo.component.image.Image
config, STYLE_CENTER
-
Fields inherited from class org.javlo.component.files.AbstractFileComponent
DEFAULT_ENCODING, DESCRIPTION_KEY, DIR_KEY, EMBED_CODE_KEY, ENCODING_KEY, FILE_NAME_KEY, LABEL_KEY, properties, REVERSE_LINK_KEY
-
Fields inherited from class org.javlo.component.core.AbstractVisualComponent
CACHE_KEY_SUFFIX_PARAM_NAME, COMPONENT_KEY, EDIT_CLASS, FLUID_COL_SIZE, FORCE_COMPONENT_ID, HIDDEN, I18N_FILE, MAX_COL_VALUE, MOBILE_TYPE, NOT_EDIT_PREVIEW_PARAM_NAME, SCROLL_TO_COMP_ID_ATTRIBUTE_NAME, TIME_CACHE_NAME, VALUE_SEPARATOR
-
Fields inherited from interface org.javlo.component.core.IContentVisualComponent
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
-
Fields inherited from interface org.javlo.component.image.IImageTitle
NO_LINK
-
-
Constructor Summary
Constructors Constructor Description GlobalImage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanUpload(ContentContext ctx)StringcreateFileURL(ContentContext ctx, String url)BufferedImagefilterImage(javax.servlet.ServletContext application, ContentContextBean ctx, BufferedImage image)StringgetActionGroupName()the group name of the actionStringgetAlt(ContentContext ctx)StringgetCSSClassName(ContentContext ctx)DategetDate()DategetDate(ContentContext ctx)StringgetDecorationImage(ContentContext ctx)protected StringgetDefaultFilter()StringgetDisplayDate()protected StringgetEditorComplexity(ContentContext ctx)return the wysiwyg editor complexityprotected StringgetEditXHTMLCode(ContentContext ctx)StringgetErrorMessage(ContentContext ctx)return error message on structure of the component.StringgetFileDirectory(ContentContext ctx)StringgetFileNameOver()protected StringgetFilter(ContentContext ctx)StringgetFirstText()intgetHeight()intgetHeight(ContentContextBean ctx)StringgetHexColor()get the exadecimal color for representation of the component.StringgetIcon()StringgetImageFilterKey(ContentContextBean ctx)StringgetImageHash(ContentContextBean ctx)StringgetImageImgName()protected StringgetImageLinkTitle(ContentContext ctx)StringgetImageLinkURL(ContentContext ctx)protected StringgetImageURL(ContentContext ctx)protected StringgetLabelTextInputName()protected StringgetLargeFilter(ContentContext ctx)StringgetLink()protected StringgetLinkXHTMLInputName()StringgetLocation()StringgetLocation(ContentContext ctx)GenericMessagegetMessage()get a message for the component.protected StringgetNewLinkParamName()StringgetPreviewURL(ContentContext ctx, String filter)StringgetRenderer(ContentContext ctx)get current renderer file.StringgetSecondText()StringgetSpecialTagTitle(ContentContext ctx)StringgetSpecialTagXHTML(ContentContext ctx)StringgetSpecificClass(ContentContext ctx)override this method for add specific class to prefix.GenericMessagegetTextMessage(ContentContext ctx)warning message on text tabStringgetTitle()StringgetTitle(ContentContext ctx)protected Map<String,String>getTranslatableResources(ContentContext ctx)StringgetTranslatedID()StringgetType()return the type of the element.StringgetURL(ContentContext ctx)generate a URL or URI link with all elements to click on.StringgetViewXHTMLCode(ContentContext ctx)StringgetWidth()intgetWidth(ContentContextBean ctx)protected StringhashForImage(ContentContext ctx)protected voidinit()booleaninitContent(ContentContext ctx)init the content with a default value. sample : "lorem ipsum" for text component.booleanisAskWidth(ContentContext ctx)booleanisContentCachable(ContentContext ctx)return the part of header needed for this componentprotected booleanisDecorationImage()protected booleanisEditImage(ContentContext ctx)protected booleanisEmbedCode()protected booleanisFileNameValid(ContentContext ctx, String fileName)booleanisFloatText(ContentContext ctx)protected booleanisHiddenImage(ContentContext ctx)protected booleanisImageFilter()protected booleanisLabel()protected booleanisLink()protected booleanisLinkValid(String url)booleanisLinkValid(ContentContext ctx)return true if the link on the component is enabledbooleanisListable()you display the composant as a list (if you want)booleanisLocal(ContentContext ctx)return true if resource is local to the page, false if resource is global to the site.protected booleanisMeta()protected booleanisMutlimediaResource()protected booleanisStyleHidden(ContentContext ctx)booleanisTextAuto()static StringperformDataFeedBack(ContentContext ctx, EditContext editContext, GlobalContext globalContext, User currentUser, ContentService content, ComponentContext componentContext, RequestService rs, I18nAccess i18nAccess, MessageRepository messageRepository, Module currentModule, AdminUserFactory adminUserFactory)StringperformEdit(ContentContext ctx)action call when update the content page.voidprepareView(ContentContext ctx)prepare the rendering of a component. default attributes put in request : style, value, type, compidprotected voidsetDate(String date)voidsetDecorationImage(String image)voidsetFilter(String filter)voidsetFirstText(String text)voidsetHeight(ContentContext ctx, int height)voidsetLink(String link)voidsetMessage(GenericMessage inMsg)voidsetRenderer(ContentContext ctx, String renderer)set the current renderer for the component view.voidsetSecondText(String text)voidsetTextAuto(boolean auto)protected voidsetTitle(String title)voidsetTranslatedID(String id)voidsetWidth(String width)voidsetWidth(ContentContext ctx, int width)protected voiduploadFiles(ContentContext ctx, RequestService requestService)-
Methods inherited from class org.javlo.component.image.Image
getCssClass, getCSSType, getDefaultFile, getDescription, getDisplayAllLabel, getFile, getFileList, getFiles, getFontAwesome, getHelpURI, getImageDescription, getLanguage, getMainFolder, getPopularity, getPriority, getRelativeFileDirectory, getStaticLabel, getStyleLabelList, getStyleList, getStyleTitle, getTags, init, isAllowRAW, isImageValid, isMobileOnly, isShared, isUploadOnDrop
-
Methods inherited from class org.javlo.component.files.AbstractFileComponent
contains, equals, expandZip, getAllResources, getAllResourcesLinks, getColumnableDefaultValue, 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
-
Methods inherited from class org.javlo.component.core.AbstractVisualComponent
applyReplacement, cleanResources, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, drawColumn, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, forceInit, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getColomnablePrefix, getColomnableSuffix, getColumn, getColumnMaxSize, getColumnSize, getColumnSizes, getColumnStyle, getComplexityLevel, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentLabel, getComponentPath, getConfig, getConfigInValue, getConfigMessage, getContainerPage, getContentAsMap, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDataAttributes, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayAsInputName, getDisplayMessage, getEditRenderer, getEditText, getEmptyCode, getEmptyXHTMLCode, getErrorMessage, getExternalModules, getExternalResources, getFirstPrefix, getForcedId, getForcedPrefixViewXHTMLCode, getForcedRenderer, getForcedSuffixViewXHTMLCode, getFormName, getGroup, getHeaderContent, getHelpText, getHelpType, getHelpURL, getI18nEditableKeys, getId, getImportFolderPath, getImportFolderPath, getInlineStyle, getInputName, getInputNameColomn, getInputNameColomnStyle, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLabelLevel, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getLocalMessage, getLock, getManualCssClass, getMarkerList, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPageDescription, getPrefixCssClass, getPrefixViewXHTMLCode, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getReferenceComponent, getRemplacement, getRendererTitle, getRenderes, getRequestComponent, getSearchLevel, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssId, getSpecificCssClass, getStyle, getStyleLabel, getSuffixViewXHTMLCode, getTag, getTextColor, getTextForSearch, getTextLabel, getTextPosition, getTextTitle, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, insert, isAjaxWrapper, isAutoDeletable, isAutoRenderer, isBackgroundColored, isCanAddClass, isCloseRow, isColored, isColumnable, isConfig, isContentCachableByQuery, isContentTimeCachable, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isHiddenInModeValue, isInline, isList, isMetaTitle, isMirrorWrapped, isModify, isNeedDelete, isNeedRefresh, isNeedRenderer, isNew, isNextSame, isNextSame, isNolink, isNoLinkable, isOpenRow, isPreviousSame, isPreviousSame, isRealContent, isRepeat, isRepeatable, isRestMatch, isReversedLink, isUnique, isValueProperties, isValueTranslatable, isViewDataFile, isVisible, isVisible, isVisibleFromCookies, isWrapped, isXML, loadViewData, markAsNew, newInstance, next, onStyleChange, performColumnable, performConfig, performUpdate, prepareEdit, previous, processView, renderOtherComponent, renderViewXHTMLCode, replaceAllInContent, replaceInContent, resetContentCache, resetViewData, setBackgroundColor, setColumnSize, setColumnStyle, setComponentBean, setContainerPage, setContentCache, setContentTimeCache, setDisplayHidden, setForcedId, setForcedRenderer, setGroup, setHidden, setHiddenInMode, setList, setLocalMessage, setMirrorWrapped, setModify, setNeedRefresh, setNextComponent, setNolink, setPage, setPreviousComponent, setRepeat, setStyle, setTextColor, setTextPosition, setValid, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTML, toString, updateCache
-
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javlo.component.core.IImageFilter
getId
-
Methods inherited from interface org.javlo.component.image.IImageTitle
getResourceURL
-
Methods inherited from interface org.javlo.component.core.IPreviewable
getPreviewCode
-
-
-
-
Field Detail
-
logger
protected static Logger logger
create a static logger.
-
IMAGE_FILTER
public static final String IMAGE_FILTER
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
RAW_FILTER
public static final String RAW_FILTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
canUpload
protected boolean canUpload(ContentContext ctx)
- Overrides:
canUploadin classAbstractFileComponent
-
getType
public String getType()
Description copied from interface:IContentVisualComponentreturn the type of the element.- Specified by:
getTypein interfaceIContentVisualComponent- Overrides:
getTypein classImage- Returns:
- the type of the element.
-
createFileURL
public String createFileURL(ContentContext ctx, String url)
- Overrides:
createFileURLin classImage
-
getCSSClassName
public String getCSSClassName(ContentContext ctx)
- Overrides:
getCSSClassNamein classImage
-
getSpecificClass
public String getSpecificClass(ContentContext ctx)
Description copied from class:AbstractVisualComponentoverride this method for add specific class to prefix.- Overrides:
getSpecificClassin classAbstractVisualComponent- Returns:
-
isImageFilter
protected boolean isImageFilter()
-
isDecorationImage
protected boolean isDecorationImage()
-
getTranslatableResources
protected Map<String,String> getTranslatableResources(ContentContext ctx) throws Exception
- Throws:
Exception
-
getTranslatedID
public String getTranslatedID()
-
setTranslatedID
public void setTranslatedID(String id)
-
isAskWidth
public boolean isAskWidth(ContentContext ctx)
- Overrides:
isAskWidthin classAbstractVisualComponent
-
getWidth
public String getWidth()
- Overrides:
getWidthin classAbstractVisualComponent
-
setWidth
public void setWidth(String width)
- Overrides:
setWidthin classAbstractVisualComponent
-
getDefaultFilter
protected String getDefaultFilter()
-
getAlt
public String getAlt(ContentContext ctx)
-
getPreviewURL
public String getPreviewURL(ContentContext ctx, String filter)
- Specified by:
getPreviewURLin interfaceIStaticResource- Overrides:
getPreviewURLin classImage
-
getImageHash
public String getImageHash(ContentContextBean ctx)
- Specified by:
getImageHashin interfaceIImageFilter
-
getImageURL
protected String getImageURL(ContentContext ctx) throws Exception
- Throws:
Exception
-
isEditImage
protected boolean isEditImage(ContentContext ctx)
-
hashForImage
protected String hashForImage(ContentContext ctx)
-
prepareView
public void prepareView(ContentContext ctx) throws Exception
Description copied from class:AbstractVisualComponentprepare the rendering of a component. default attributes put in request : style, value, type, compid- Specified by:
prepareViewin interfaceIContentVisualComponent- Overrides:
prepareViewin classImage- Throws:
Exception
-
getNewLinkParamName
protected String getNewLinkParamName()
-
isLabel
protected boolean isLabel()
-
isStyleHidden
protected boolean isStyleHidden(ContentContext ctx)
- Overrides:
isStyleHiddenin classAbstractVisualComponent
-
isHiddenImage
protected boolean isHiddenImage(ContentContext ctx)
-
getEditXHTMLCode
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
- Overrides:
getEditXHTMLCodein classAbstractFileComponent- Throws:
Exception
-
isMutlimediaResource
protected boolean isMutlimediaResource()
-
isLink
protected boolean isLink()
-
isEmbedCode
protected boolean isEmbedCode()
-
getTitle
public String getTitle()
-
getTitle
public String getTitle(ContentContext ctx)
- Specified by:
getTitlein interfaceIStaticResource- Overrides:
getTitlein classImage
-
getLocation
public String getLocation(ContentContext ctx)
- Specified by:
getLocationin interfaceIStaticResource- Overrides:
getLocationin classImage
-
getDate
public Date getDate(ContentContext ctx)
- Specified by:
getDatein interfaceIStaticResource- Overrides:
getDatein classImage
-
setTitle
protected void setTitle(String title)
-
getLocation
public String getLocation()
-
getDate
public Date getDate() throws ParseException
- Throws:
ParseException
-
getDisplayDate
public String getDisplayDate() throws ParseException
- Throws:
ParseException
-
setDate
protected void setDate(String date)
-
isMeta
protected boolean isMeta()
-
getFileDirectory
public String getFileDirectory(ContentContext ctx)
- Overrides:
getFileDirectoryin classImage
-
getFileNameOver
public String getFileNameOver()
-
getFilter
protected String getFilter(ContentContext ctx)
-
getHexColor
public String getHexColor()
Description copied from interface:IContentVisualComponentget the exadecimal color for representation of the component.- Specified by:
getHexColorin interfaceIContentVisualComponent- Overrides:
getHexColorin classImage- Returns:
- a exadecimal color (sample : a5b499)
-
getImageImgName
public String getImageImgName()
- Overrides:
getImageImgNamein classAbstractFileComponent
-
getImageLinkTitle
protected String getImageLinkTitle(ContentContext ctx) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
getLink
public String getLink()
-
getURL
public String getURL(ContentContext ctx)
Description copied from interface:ILinkgenerate a URL or URI link with all elements to click on.
-
getLargeFilter
protected String getLargeFilter(ContentContext ctx)
-
getLinkXHTMLInputName
protected String getLinkXHTMLInputName()
-
getMessage
public GenericMessage getMessage()
Description copied from interface:IContentVisualComponentget a message for the component.- Specified by:
getMessagein interfaceIContentVisualComponent- Overrides:
getMessagein classAbstractVisualComponent- Returns:
- a generic message (error, info, warning, help), null if no message.
-
getRenderer
public String getRenderer(ContentContext ctx)
Description copied from class:AbstractVisualComponentget current renderer file.- Specified by:
getRendererin interfaceIContentVisualComponent- Overrides:
getRendererin classAbstractVisualComponent
-
getViewXHTMLCode
public String getViewXHTMLCode(ContentContext ctx) throws Exception
- Overrides:
getViewXHTMLCodein classImage- Throws:
Exception- See Also:
org.javlo.itf.IContentVisualComponent#getXHTMLCode()
-
init
protected void init() throws ResourceNotFoundException- Overrides:
initin classAbstractVisualComponent- Throws:
ResourceNotFoundException
-
isContentCachable
public boolean isContentCachable(ContentContext ctx)
Description copied from interface:IContentVisualComponentreturn the part of header needed for this component- Specified by:
isContentCachablein interfaceIContentVisualComponent- Overrides:
isContentCachablein classAbstractFileComponent- Returns:
-
performEdit
public String performEdit(ContentContext ctx) throws Exception
Description copied from interface:IContentVisualComponentaction call when update the content page.- Specified by:
performEditin interfaceIContentVisualComponent- Overrides:
performEditin classAbstractFileComponent- Returns:
- the error message, null if no error
- Throws:
Exception
-
isLinkValid
protected boolean isLinkValid(String url)
-
setFilter
public void setFilter(String filter)
-
setLink
public void setLink(String link)
-
setDecorationImage
public void setDecorationImage(String image)
-
getDecorationImage
public String getDecorationImage(ContentContext ctx)
-
setMessage
public void setMessage(GenericMessage inMsg)
- Overrides:
setMessagein classAbstractVisualComponent
-
uploadFiles
protected void uploadFiles(ContentContext ctx, RequestService requestService) throws Exception
- Overrides:
uploadFilesin classAbstractFileComponent- Throws:
Exception
-
getImageLinkURL
public String getImageLinkURL(ContentContext ctx)
- Specified by:
getImageLinkURLin interfaceIImageTitle- Overrides:
getImageLinkURLin classImage
-
initContent
public boolean initContent(ContentContext ctx) throws Exception
Description copied from interface:IContentVisualComponentinit the content with a default value. sample : "lorem ipsum" for text component.- Specified by:
initContentin interfaceIContentVisualComponent- Overrides:
initContentin classImage- Returns:
- true if content is create.
- Throws:
Exception
-
getHeight
public int getHeight()
-
setRenderer
public void setRenderer(ContentContext ctx, String renderer)
Description copied from interface:IContentVisualComponentset the current renderer for the component view.- Specified by:
setRendererin interfaceIContentVisualComponent- Overrides:
setRendererin classAbstractVisualComponent
-
getWidth
public int getWidth(ContentContextBean ctx)
-
getHeight
public int getHeight(ContentContextBean ctx)
-
getFirstText
public String getFirstText()
-
setFirstText
public void setFirstText(String text)
-
getSecondText
public String getSecondText()
-
setSecondText
public void setSecondText(String text)
-
setHeight
public void setHeight(ContentContext ctx, int height)
-
setWidth
public void setWidth(ContentContext ctx, int width) throws Exception
- Throws:
Exception
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IActionthe group name of the action- Specified by:
getActionGroupNamein interfaceIAction- Overrides:
getActionGroupNamein classImage- Returns:
- a group name.
-
performDataFeedBack
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
- Throws:
Exception
-
isFloatText
public boolean isFloatText(ContentContext ctx)
-
getSpecialTagTitle
public String getSpecialTagTitle(ContentContext ctx) throws Exception
- Specified by:
getSpecialTagTitlein interfaceIContentVisualComponent- Overrides:
getSpecialTagTitlein classAbstractVisualComponent- Throws:
Exception
-
isTextAuto
public boolean isTextAuto()
-
setTextAuto
public void setTextAuto(boolean auto)
-
getLabelTextInputName
protected String getLabelTextInputName()
-
getEditorComplexity
protected String getEditorComplexity(ContentContext ctx)
Description copied from class:AbstractVisualComponentreturn the wysiwyg editor complexity- Overrides:
getEditorComplexityin classAbstractFileComponent- Returns:
- null if no wysywig editor
-
getSpecialTagXHTML
public String getSpecialTagXHTML(ContentContext ctx) throws Exception
- Specified by:
getSpecialTagXHTMLin interfaceIContentVisualComponent- Overrides:
getSpecialTagXHTMLin classAbstractVisualComponent- Throws:
Exception
-
getImageFilterKey
public String getImageFilterKey(ContentContextBean ctx)
- Specified by:
getImageFilterKeyin interfaceIImageFilter
-
filterImage
public BufferedImage filterImage(javax.servlet.ServletContext application, ContentContextBean ctx, BufferedImage image)
- Specified by:
filterImagein interfaceIImageFilter
-
isListable
public boolean isListable()
Description copied from interface:IContentVisualComponentyou display the composant as a list (if you want)- Specified by:
isListablein interfaceIContentVisualComponent- Overrides:
isListablein classAbstractVisualComponent- Returns:
- true if a text is listable
-
getTextMessage
public GenericMessage getTextMessage(ContentContext ctx)
Description copied from interface:IContentVisualComponentwarning message on text tab- Specified by:
getTextMessagein interfaceIContentVisualComponent- Overrides:
getTextMessagein classAbstractVisualComponent- Returns:
-
isLinkValid
public boolean isLinkValid(ContentContext ctx)
Description copied from interface:ILinkreturn true if the link on the component is enabled- Specified by:
isLinkValidin interfaceILink- Overrides:
isLinkValidin classAbstractFileComponent- Returns:
-
isFileNameValid
protected boolean isFileNameValid(ContentContext ctx, String fileName)
- Overrides:
isFileNameValidin classAbstractFileComponent
-
isLocal
public boolean isLocal(ContentContext ctx)
Description copied from interface:IStaticResourcereturn true if resource is local to the page, false if resource is global to the site. exemple : imported image is local to the page.- Specified by:
isLocalin interfaceIStaticResource- Overrides:
isLocalin classImage- Returns:
-
getErrorMessage
public String getErrorMessage(ContentContext ctx)
Description copied from interface:IContentVisualComponentreturn error message on structure of the component.- Specified by:
getErrorMessagein interfaceIContentVisualComponent- Overrides:
getErrorMessagein classAbstractVisualComponent- Returns:
- null if no errors found
-
getIcon
public String getIcon()
- Specified by:
getIconin interfaceIContentVisualComponent- Overrides:
getIconin classAbstractVisualComponent
-
-