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 String
IMAGE_FILTER
protected static Logger
logger
create a static logger.static String
RAW_FILTER
static String
TYPE
-
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 boolean
canUpload(ContentContext ctx)
String
createFileURL(ContentContext ctx, String url)
BufferedImage
filterImage(javax.servlet.ServletContext application, ContentContextBean ctx, BufferedImage image)
String
getActionGroupName()
the group name of the actionString
getAlt(ContentContext ctx)
String
getCSSClassName(ContentContext ctx)
Date
getDate()
Date
getDate(ContentContext ctx)
String
getDecorationImage(ContentContext ctx)
protected String
getDefaultFilter()
String
getDisplayDate()
protected String
getEditorComplexity(ContentContext ctx)
return the wysiwyg editor complexityprotected String
getEditXHTMLCode(ContentContext ctx)
String
getErrorMessage(ContentContext ctx)
return error message on structure of the component.String
getFileDirectory(ContentContext ctx)
String
getFileNameOver()
protected String
getFilter(ContentContext ctx)
String
getFirstText()
int
getHeight()
int
getHeight(ContentContextBean ctx)
String
getHexColor()
get the exadecimal color for representation of the component.String
getIcon()
String
getImageFilterKey(ContentContextBean ctx)
String
getImageHash(ContentContextBean ctx)
String
getImageImgName()
protected String
getImageLinkTitle(ContentContext ctx)
String
getImageLinkURL(ContentContext ctx)
protected String
getImageURL(ContentContext ctx)
protected String
getLabelTextInputName()
protected String
getLargeFilter(ContentContext ctx)
String
getLink()
protected String
getLinkXHTMLInputName()
String
getLocation()
String
getLocation(ContentContext ctx)
GenericMessage
getMessage()
get a message for the component.protected String
getNewLinkParamName()
String
getPreviewURL(ContentContext ctx, String filter)
String
getRenderer(ContentContext ctx)
get current renderer file.String
getSecondText()
String
getSpecialTagTitle(ContentContext ctx)
String
getSpecialTagXHTML(ContentContext ctx)
String
getSpecificClass(ContentContext ctx)
override this method for add specific class to prefix.GenericMessage
getTextMessage(ContentContext ctx)
warning message on text tabString
getTitle()
String
getTitle(ContentContext ctx)
protected Map<String,String>
getTranslatableResources(ContentContext ctx)
String
getTranslatedID()
String
getType()
return the type of the element.String
getURL(ContentContext ctx)
generate a URL or URI link with all elements to click on.String
getViewXHTMLCode(ContentContext ctx)
String
getWidth()
int
getWidth(ContentContextBean ctx)
protected String
hashForImage(ContentContext ctx)
protected void
init()
boolean
initContent(ContentContext ctx)
init the content with a default value. sample : "lorem ipsum" for text component.boolean
isAskWidth(ContentContext ctx)
boolean
isContentCachable(ContentContext ctx)
return the part of header needed for this componentprotected boolean
isDecorationImage()
protected boolean
isEditImage(ContentContext ctx)
protected boolean
isEmbedCode()
protected boolean
isFileNameValid(ContentContext ctx, String fileName)
boolean
isFloatText(ContentContext ctx)
protected boolean
isHiddenImage(ContentContext ctx)
protected boolean
isImageFilter()
protected boolean
isLabel()
protected boolean
isLink()
protected boolean
isLinkValid(String url)
boolean
isLinkValid(ContentContext ctx)
return true if the link on the component is enabledboolean
isListable()
you display the composant as a list (if you want)boolean
isLocal(ContentContext ctx)
return true if resource is local to the page, false if resource is global to the site.protected boolean
isMeta()
protected boolean
isMutlimediaResource()
protected boolean
isStyleHidden(ContentContext ctx)
boolean
isTextAuto()
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)
String
performEdit(ContentContext ctx)
action call when update the content page.void
prepareView(ContentContext ctx)
prepare the rendering of a component. default attributes put in request : style, value, type, compidprotected void
setDate(String date)
void
setDecorationImage(String image)
void
setFilter(String filter)
void
setFirstText(String text)
void
setHeight(ContentContext ctx, int height)
void
setLink(String link)
void
setMessage(GenericMessage inMsg)
void
setRenderer(ContentContext ctx, String renderer)
set the current renderer for the component view.void
setSecondText(String text)
void
setTextAuto(boolean auto)
protected void
setTitle(String title)
void
setTranslatedID(String id)
void
setWidth(String width)
void
setWidth(ContentContext ctx, int width)
protected void
uploadFiles(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:
canUpload
in classAbstractFileComponent
-
getType
public String getType()
Description copied from interface:IContentVisualComponent
return the type of the element.- Specified by:
getType
in interfaceIContentVisualComponent
- Overrides:
getType
in classImage
- Returns:
- the type of the element.
-
createFileURL
public String createFileURL(ContentContext ctx, String url)
- Overrides:
createFileURL
in classImage
-
getCSSClassName
public String getCSSClassName(ContentContext ctx)
- Overrides:
getCSSClassName
in classImage
-
getSpecificClass
public String getSpecificClass(ContentContext ctx)
Description copied from class:AbstractVisualComponent
override this method for add specific class to prefix.- Overrides:
getSpecificClass
in 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:
isAskWidth
in classAbstractVisualComponent
-
getWidth
public String getWidth()
- Overrides:
getWidth
in classAbstractVisualComponent
-
setWidth
public void setWidth(String width)
- Overrides:
setWidth
in classAbstractVisualComponent
-
getDefaultFilter
protected String getDefaultFilter()
-
getAlt
public String getAlt(ContentContext ctx)
-
getPreviewURL
public String getPreviewURL(ContentContext ctx, String filter)
- Specified by:
getPreviewURL
in interfaceIStaticResource
- Overrides:
getPreviewURL
in classImage
-
getImageHash
public String getImageHash(ContentContextBean ctx)
- Specified by:
getImageHash
in 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:AbstractVisualComponent
prepare the rendering of a component. default attributes put in request : style, value, type, compid- Specified by:
prepareView
in interfaceIContentVisualComponent
- Overrides:
prepareView
in classImage
- Throws:
Exception
-
getNewLinkParamName
protected String getNewLinkParamName()
-
isLabel
protected boolean isLabel()
-
isStyleHidden
protected boolean isStyleHidden(ContentContext ctx)
- Overrides:
isStyleHidden
in classAbstractVisualComponent
-
isHiddenImage
protected boolean isHiddenImage(ContentContext ctx)
-
getEditXHTMLCode
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
- Overrides:
getEditXHTMLCode
in 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:
getTitle
in interfaceIStaticResource
- Overrides:
getTitle
in classImage
-
getLocation
public String getLocation(ContentContext ctx)
- Specified by:
getLocation
in interfaceIStaticResource
- Overrides:
getLocation
in classImage
-
getDate
public Date getDate(ContentContext ctx)
- Specified by:
getDate
in interfaceIStaticResource
- Overrides:
getDate
in 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:
getFileDirectory
in classImage
-
getFileNameOver
public String getFileNameOver()
-
getFilter
protected String getFilter(ContentContext ctx)
-
getHexColor
public String getHexColor()
Description copied from interface:IContentVisualComponent
get the exadecimal color for representation of the component.- Specified by:
getHexColor
in interfaceIContentVisualComponent
- Overrides:
getHexColor
in classImage
- Returns:
- a exadecimal color (sample : a5b499)
-
getImageImgName
public String getImageImgName()
- Overrides:
getImageImgName
in classAbstractFileComponent
-
getImageLinkTitle
protected String getImageLinkTitle(ContentContext ctx) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
getLink
public String getLink()
-
getURL
public String getURL(ContentContext ctx)
Description copied from interface:ILink
generate 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:IContentVisualComponent
get a message for the component.- Specified by:
getMessage
in interfaceIContentVisualComponent
- Overrides:
getMessage
in classAbstractVisualComponent
- Returns:
- a generic message (error, info, warning, help), null if no message.
-
getRenderer
public String getRenderer(ContentContext ctx)
Description copied from class:AbstractVisualComponent
get current renderer file.- Specified by:
getRenderer
in interfaceIContentVisualComponent
- Overrides:
getRenderer
in classAbstractVisualComponent
-
getViewXHTMLCode
public String getViewXHTMLCode(ContentContext ctx) throws Exception
- Overrides:
getViewXHTMLCode
in classImage
- Throws:
Exception
- See Also:
org.javlo.itf.IContentVisualComponent#getXHTMLCode()
-
init
protected void init() throws ResourceNotFoundException
- Overrides:
init
in classAbstractVisualComponent
- Throws:
ResourceNotFoundException
-
isContentCachable
public boolean isContentCachable(ContentContext ctx)
Description copied from interface:IContentVisualComponent
return the part of header needed for this component- Specified by:
isContentCachable
in interfaceIContentVisualComponent
- Overrides:
isContentCachable
in classAbstractFileComponent
- Returns:
-
performEdit
public String performEdit(ContentContext ctx) throws Exception
Description copied from interface:IContentVisualComponent
action call when update the content page.- Specified by:
performEdit
in interfaceIContentVisualComponent
- Overrides:
performEdit
in 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:
setMessage
in classAbstractVisualComponent
-
uploadFiles
protected void uploadFiles(ContentContext ctx, RequestService requestService) throws Exception
- Overrides:
uploadFiles
in classAbstractFileComponent
- Throws:
Exception
-
getImageLinkURL
public String getImageLinkURL(ContentContext ctx)
- Specified by:
getImageLinkURL
in interfaceIImageTitle
- Overrides:
getImageLinkURL
in classImage
-
initContent
public boolean initContent(ContentContext ctx) throws Exception
Description copied from interface:IContentVisualComponent
init the content with a default value. sample : "lorem ipsum" for text component.- Specified by:
initContent
in interfaceIContentVisualComponent
- Overrides:
initContent
in 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:IContentVisualComponent
set the current renderer for the component view.- Specified by:
setRenderer
in interfaceIContentVisualComponent
- Overrides:
setRenderer
in 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:IAction
the group name of the action- Specified by:
getActionGroupName
in interfaceIAction
- Overrides:
getActionGroupName
in 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:
getSpecialTagTitle
in interfaceIContentVisualComponent
- Overrides:
getSpecialTagTitle
in 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:AbstractVisualComponent
return the wysiwyg editor complexity- Overrides:
getEditorComplexity
in classAbstractFileComponent
- Returns:
- null if no wysywig editor
-
getSpecialTagXHTML
public String getSpecialTagXHTML(ContentContext ctx) throws Exception
- Specified by:
getSpecialTagXHTML
in interfaceIContentVisualComponent
- Overrides:
getSpecialTagXHTML
in classAbstractVisualComponent
- Throws:
Exception
-
getImageFilterKey
public String getImageFilterKey(ContentContextBean ctx)
- Specified by:
getImageFilterKey
in interfaceIImageFilter
-
filterImage
public BufferedImage filterImage(javax.servlet.ServletContext application, ContentContextBean ctx, BufferedImage image)
- Specified by:
filterImage
in interfaceIImageFilter
-
isListable
public boolean isListable()
Description copied from interface:IContentVisualComponent
you display the composant as a list (if you want)- Specified by:
isListable
in interfaceIContentVisualComponent
- Overrides:
isListable
in classAbstractVisualComponent
- Returns:
- true if a text is listable
-
getTextMessage
public GenericMessage getTextMessage(ContentContext ctx)
Description copied from interface:IContentVisualComponent
warning message on text tab- Specified by:
getTextMessage
in interfaceIContentVisualComponent
- Overrides:
getTextMessage
in classAbstractVisualComponent
- Returns:
-
isLinkValid
public boolean isLinkValid(ContentContext ctx)
Description copied from interface:ILink
return true if the link on the component is enabled- Specified by:
isLinkValid
in interfaceILink
- Overrides:
isLinkValid
in classAbstractFileComponent
- Returns:
-
isFileNameValid
protected boolean isFileNameValid(ContentContext ctx, String fileName)
- Overrides:
isFileNameValid
in classAbstractFileComponent
-
isLocal
public boolean isLocal(ContentContext ctx)
Description copied from interface:IStaticResource
return 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:
isLocal
in interfaceIStaticResource
- Overrides:
isLocal
in classImage
- Returns:
-
getErrorMessage
public String getErrorMessage(ContentContext ctx)
Description copied from interface:IContentVisualComponent
return error message on structure of the component.- Specified by:
getErrorMessage
in interfaceIContentVisualComponent
- Overrides:
getErrorMessage
in classAbstractVisualComponent
- Returns:
- null if no errors found
-
getIcon
public String getIcon()
- Specified by:
getIcon
in interfaceIContentVisualComponent
- Overrides:
getIcon
in classAbstractVisualComponent
-
-