Package org.javlo.component.multimedia
Class Video
-
- All Implemented Interfaces:
Serializable,Comparable<IContentVisualComponent>,IAction,IContentVisualComponent,IImageFilter,ILink,IPreviewable,IStaticResource,IUploadResource,IVideo,IImageTitle,IRestItem,IStaticContainer
- Direct Known Subclasses:
EmbedVideo
public class Video extends GlobalImage implements IAction, IVideo
- Author:
- pvandermaesen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVideo.OrderVideo
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
Fields inherited from class org.javlo.component.image.GlobalImage
IMAGE_FILTER, logger, RAW_FILTER
-
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 Video()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOneAccess(ContentContext ctx)protected booleancanUpload(ContentContext ctx)StringcreateFileURL(ContentContext ctx, String url)intgetAccess(ContentContext ctx, int days)StringgetActionGroupName()the group name of the actionCollection<Resource>getAllResources(ContentContext ctx)return all resources found in the component.Collection<Video>getAllVideoOnPage(ContentContext ctx)intgetComplexityLevel(ContentContext ctx)return the complexity level of the component.StringgetCurrentRenderer(ContentContext ctx)get current renderer keyprotected FilenameFiltergetDecorationFilter()protected StringgetDefaultFilter()StringgetFileDirectory(ContentContext ctx)protected FilenameFiltergetFileFilter()StringgetFontAwesome()protected StringgetImageChangeTitle(ContentContext ctx)protected StringgetImageFilter(ContentContext ctx)protected StringgetImageUploadTitle(ContentContext ctx)protected StringgetImageURL(ContentContext ctx)intgetPopularity(ContentContext ctx)return indice of popularityprotected StringgetPreviewCode(ContentContext ctx)StringgetPreviewURL(ContentContext ctx, String filter)protected StringgetRelativeFileDirectory(ContentContext ctx)StringgetRenderer(ContentContext ctx)get current renderer file.StringgetResourceURL(ContentContext ctx)StringgetResourceURL(ContentContext ctx, String fileLink)StringgetSpecialTagTitle(ContentContext ctx)String[]getStyleLabelList(ContentContext ctx)return a list of label define the style.String[]getStyleList(ContentContext ctx)get the list of style possible for this component.StringgetStyleTitle(ContentContext ctx)return the title of the style choice.protected Map<String,String>getTranslatableResources(ContentContext ctx)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)booleanisAskWidth(ContentContext ctx)protected booleanisAutoRenderer()return true if end user could not select the renderer.booleanisContentCachable(ContentContext ctx)return the part of header needed for this componentprotected booleanisDecorationImage()booleanisDisplayable(ContentContext ctx)true if the component can be displayed in preview modeprotected booleanisDisplayMeta(ContentContext ctx)protected booleanisEmbedCode()protected booleanisFileNameValid(ContentContext ctx, String fileName)protected booleanisImageFilter()protected booleanisInline(ContentContext ctx)protected booleanisLink()protected booleanisLinkValid(String url)protected booleanisMeta()booleanisRealContent(ContentContext ctx)return true if component is considered as realContent and the page that contain the component is also considered as real content.static StringperformAccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)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, compidbooleanrenameResource(ContentContext ctx, File oldName, File newName)rename a resourceStringrenderInline(ContentContext ctx, String width, String height, boolean preview, boolean onlyPrepare)-
Methods inherited from class org.javlo.component.image.GlobalImage
filterImage, getAlt, getCSSClassName, getDate, getDate, getDecorationImage, getDisplayDate, getEditorComplexity, getEditXHTMLCode, getErrorMessage, getFileNameOver, getFilter, getFirstText, getHeight, getHeight, getHexColor, getIcon, getImageFilterKey, getImageHash, getImageImgName, getImageLinkTitle, getImageLinkURL, getLabelTextInputName, getLargeFilter, getLink, getLinkXHTMLInputName, getLocation, getLocation, getMessage, getNewLinkParamName, getSecondText, getSpecialTagXHTML, getSpecificClass, getTextMessage, getTitle, getTitle, getTranslatedID, getWidth, getWidth, hashForImage, init, initContent, isEditImage, isFloatText, isHiddenImage, isLabel, isLinkValid, isListable, isLocal, isMutlimediaResource, isStyleHidden, isTextAuto, performDataFeedBack, setDate, setDecorationImage, setFilter, setFirstText, setHeight, setLink, setMessage, setRenderer, setSecondText, setTextAuto, setTitle, setTranslatedID, setWidth, setWidth, uploadFiles
-
Methods inherited from class org.javlo.component.image.Image
getCssClass, getCSSType, getDefaultFile, getDescription, getDisplayAllLabel, getFile, getFileList, getFiles, getHelpURI, getImageDescription, getLanguage, getMainFolder, getPriority, getStaticLabel, getTags, init, isAllowRAW, isImageValid, isMobileOnly, isShared, isUploadOnDrop
-
Methods inherited from class org.javlo.component.files.AbstractFileComponent
contains, equals, expandZip, getAllResourcesLinks, getColumnableDefaultValue, getContentAsText, getDecoImageFileXHTMLInputName, getDecoImageXHTMLInputName, getDeleteTitle, getDescription, getDescriptionName, getDirInputName, getDirLabelTitle, getDirList, getDirSelected, getEmbedCode, getEmbedCodeName, getEncoding, getEncodingXHTMLInputName, getFileList, getFileName, getFileUploadActionTitle, getFileURL, getFileXHTMLInputName, getFirstTextInputName, getImageDecorativeTitle, getImageLabelTitle, getImageSelectTitle, getJSOnChange, getLabel, getLabelXHTMLInputName, getLatestValidDate, getMaxPreviewImages, getMetaCode, getNewDirInputName, getNewDirLabelTitle, getPreviewCode, getPreviewCode, getPreviewZoneId, getReverseLinkeLabelTitle, getReverseLinkInputName, getSecondTextInputName, getSelectXHTMLInputName, getStaticInfo, getTextAutoInputName, getWordCount, isFromShared, isImported, isInsertable, isLinkToStatic, isMirroredByDefault, isOnlyFirstOccurrence, isReverseLink, isWithDescription, needEncoding, performLoadImages, performUpload, reloadProperties, 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, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentLabel, getComponentPath, getConfig, getConfigInValue, getConfigMessage, getContainerPage, getContentAsMap, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, 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, 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, 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 java.lang.Comparable
compareTo
-
Methods inherited from interface org.javlo.component.core.IContentVisualComponent
cleanResources, clearReplacement, delete, equals, extractFieldsFromRenderer, forceInit, getArea, getAuthors, getClassName, getColumnSize, getColumnStyle, getComponentBean, getComponentCssClass, getComponentLabel, getConfig, getConfigInValue, getConfigMessage, getContentAsText, getContentMessage, getContentName, getCreationDate, getDescription, getEditText, getEmptyXHTMLCode, getErrorMessage, getErrorMessage, getExternalModules, getExternalResources, getFirstPrefix, getGroup, getHeaderContent, getHelpText, getHelpURL, getHexColor, getI18nEditableKeys, getIcon, getId, getInputNameRenderer, getJSOnSubmit, getKey, getLabelLevel, getLastSufix, getLayout, getListGroup, getMarkerList, getMessage, getModificationDate, getNextComponent, getPage, getPageDescription, getPrefixViewXHTMLCode, getPreviousComponent, getReferenceComponent, getSearchLevel, getSpecialTagXHTML, getStyle, getStyleLabel, getSuffixViewXHTMLCode, getTextForSearch, getTextLabel, getTextMessage, getTextTitle, getTitleLevel, getValue, getVersion, getViewText, getWordCount, getXHTMLCode, getXHTMLConfig, initContent, insert, isColumnable, isConfig, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayHidden, isEditOnCreate, isFirstRepeated, isHelpURL, isHidden, isHiddenInMode, isInline, isInsertable, isList, isListable, isMetaTitle, isMirroredByDefault, isModify, isNeedRefresh, isNew, isNolink, isRepeat, isRepeatable, isRestMatch, isUnique, isVisible, isVisible, isVisibleFromCookies, loadViewData, markAsNew, newInstance, next, performConfig, previous, replaceAllInContent, replaceInContent, resetViewData, setColumnSize, setContainerPage, setDisplayHidden, setGroup, setList, setNeedRefresh, setNextComponent, setPage, setPreviousComponent, setRenderer, setRepeat, setStyle, setValid, setValue, stored, transflateFrom
-
Methods inherited from interface org.javlo.component.core.IImageFilter
getId
-
Methods inherited from interface org.javlo.component.image.IImageTitle
getImageDescription, getImageLinkURL, getPriority, isImageValid, isMobileOnly
-
Methods inherited from interface org.javlo.component.core.IPreviewable
getPreviewCode
-
Methods inherited from interface org.javlo.data.rest.IRestItem
getContentAsMap
-
Methods inherited from interface org.javlo.ztatic.IStaticContainer
contains, getAllResourcesLinks, getDirSelected, getFiles, setDirSelected
-
Methods inherited from interface org.javlo.component.core.IStaticResource
getCssClass, getDate, getDescription, getFile, getLanguage, getLocation, getTags, getTitle, isLocal, isShared
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFileFilter
protected FilenameFilter getFileFilter()
- Overrides:
getFileFilterin classAbstractFileComponent
-
getDecorationFilter
protected FilenameFilter getDecorationFilter()
- Overrides:
getDecorationFilterin classAbstractFileComponent
-
getAllResources
public Collection<Resource> getAllResources(ContentContext ctx)
Description copied from interface:IStaticContainerreturn all resources found in the component.- Specified by:
getAllResourcesin interfaceIStaticContainer- Overrides:
getAllResourcesin classAbstractFileComponent- Returns:
-
getStyleList
public String[] getStyleList(ContentContext ctx)
Description copied from interface:IContentVisualComponentget the list of style possible for this component.- Specified by:
getStyleListin interfaceIContentVisualComponent- Overrides:
getStyleListin classImage- Returns:
- a list of string represent a style.
-
getStyleLabelList
public String[] getStyleLabelList(ContentContext ctx)
Description copied from interface:IContentVisualComponentreturn a list of label define the style.- Specified by:
getStyleLabelListin interfaceIContentVisualComponent- Overrides:
getStyleLabelListin classImage- Returns:
- a list of label.
-
getStyleTitle
public String getStyleTitle(ContentContext ctx)
Description copied from interface:IContentVisualComponentreturn the title of the style choice.- Specified by:
getStyleTitlein interfaceIContentVisualComponent- Overrides:
getStyleTitlein classImage
-
isInline
protected boolean isInline(ContentContext ctx)
-
renameResource
public boolean renameResource(ContentContext ctx, File oldName, File newName)
Description copied from interface:IStaticContainerrename a resource- Specified by:
renameResourcein interfaceIStaticContainer- Overrides:
renameResourcein classAbstractFileComponent- Returns:
- true if rename, false else
-
getType
public String getType()
Description copied from interface:IContentVisualComponentreturn the type of the element.- Specified by:
getTypein interfaceIContentVisualComponent- Overrides:
getTypein classGlobalImage- Returns:
- the type of the element.
-
canUpload
protected boolean canUpload(ContentContext ctx)
- Overrides:
canUploadin classGlobalImage
-
getFileDirectory
public String getFileDirectory(ContentContext ctx)
- Overrides:
getFileDirectoryin classGlobalImage
-
createFileURL
public String createFileURL(ContentContext ctx, String url)
- Overrides:
createFileURLin classGlobalImage
-
isImageFilter
protected boolean isImageFilter()
- Overrides:
isImageFilterin classGlobalImage
-
getImageUploadTitle
protected String getImageUploadTitle(ContentContext ctx) throws FileNotFoundException, IOException
- Overrides:
getImageUploadTitlein classAbstractFileComponent- Throws:
FileNotFoundExceptionIOException
-
getPreviewCode
protected String getPreviewCode(ContentContext ctx) throws Exception
- Overrides:
getPreviewCodein classAbstractFileComponent- Throws:
Exception
-
getRelativeFileDirectory
protected String getRelativeFileDirectory(ContentContext ctx)
- Overrides:
getRelativeFileDirectoryin classImage
-
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 classGlobalImage- Returns:
-
getCurrentRenderer
public String getCurrentRenderer(ContentContext ctx)
Description copied from class:AbstractVisualComponentget current renderer key- Specified by:
getCurrentRendererin interfaceIContentVisualComponent- Overrides:
getCurrentRendererin classAbstractVisualComponent- Returns:
-
getRenderer
public String getRenderer(ContentContext ctx)
Description copied from class:AbstractVisualComponentget current renderer file.- Specified by:
getRendererin interfaceIContentVisualComponent- Overrides:
getRendererin classGlobalImage
-
isAutoRenderer
protected boolean isAutoRenderer()
Description copied from class:AbstractVisualComponentreturn true if end user could not select the renderer.- Overrides:
isAutoRendererin classAbstractVisualComponent- Returns:
-
getViewXHTMLCode
public String getViewXHTMLCode(ContentContext ctx) throws Exception
- Overrides:
getViewXHTMLCodein classGlobalImage- Throws:
Exception- See Also:
org.javlo.itf.IContentVisualComponent#getXHTMLCode()
-
getImageURL
protected String getImageURL(ContentContext ctx) throws Exception
- Overrides:
getImageURLin classGlobalImage- Throws:
Exception
-
getResourceURL
public String getResourceURL(ContentContext ctx, String fileLink)
- Overrides:
getResourceURLin classAbstractFileComponent
-
getTranslatableResources
protected Map<String,String> getTranslatableResources(ContentContext ctx) throws Exception
- Overrides:
getTranslatableResourcesin classGlobalImage- Throws:
Exception
-
getAllVideoOnPage
public Collection<Video> getAllVideoOnPage(ContentContext ctx) throws Exception
- Throws:
Exception
-
getDefaultFilter
protected String getDefaultFilter()
- Overrides:
getDefaultFilterin classGlobalImage
-
getImageFilter
protected String getImageFilter(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 classGlobalImage- Throws:
Exception
-
getURL
public String getURL(ContentContext ctx)
Description copied from interface:ILinkgenerate a URL or URI link with all elements to click on.- Specified by:
getURLin interfaceILink- Specified by:
getURLin interfaceIStaticResource- Overrides:
getURLin classGlobalImage- Returns:
-
renderInline
public String renderInline(ContentContext ctx, String width, String height, boolean preview, boolean onlyPrepare) throws Exception
- Throws:
Exception
-
isLinkValid
protected boolean isLinkValid(String url)
- Overrides:
isLinkValidin classGlobalImage
-
isMeta
protected boolean isMeta()
- Overrides:
isMetain classGlobalImage
-
isDecorationImage
protected boolean isDecorationImage()
- Overrides:
isDecorationImagein classGlobalImage
-
isRealContent
public boolean isRealContent(ContentContext ctx)
Description copied from interface:IContentVisualComponentreturn true if component is considered as realContent and the page that contain the component is also considered as real content.- Specified by:
isRealContentin interfaceIContentVisualComponent- Overrides:
isRealContentin classAbstractVisualComponent- Parameters:
ctx- current context- Returns:
-
getImageChangeTitle
protected String getImageChangeTitle(ContentContext ctx) throws FileNotFoundException, IOException
- Overrides:
getImageChangeTitlein classAbstractFileComponent- Throws:
FileNotFoundExceptionIOException
-
getAccess
public int getAccess(ContentContext ctx, int days) throws NumberFormatException, IOException
- Throws:
NumberFormatExceptionIOException
-
addOneAccess
public void addOneAccess(ContentContext ctx) throws NumberFormatException, IOException
- Throws:
NumberFormatExceptionIOException
-
performAccess
public static final String performAccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
getResourceURL
public String getResourceURL(ContentContext ctx)
- Specified by:
getResourceURLin interfaceIImageTitle- Overrides:
getResourceURLin classAbstractFileComponent
-
isEmbedCode
protected boolean isEmbedCode()
- Overrides:
isEmbedCodein classGlobalImage
-
isLink
protected boolean isLink()
- Overrides:
isLinkin classGlobalImage
-
getActionGroupName
public String getActionGroupName()
Description copied from interface:IActionthe group name of the action- Specified by:
getActionGroupNamein interfaceIAction- Overrides:
getActionGroupNamein classGlobalImage- Returns:
- a group name.
-
getPopularity
public int getPopularity(ContentContext ctx)
Description copied from interface:IStaticContainerreturn indice of popularity- Specified by:
getPopularityin interfaceIStaticContainer- Overrides:
getPopularityin classImage- 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 classGlobalImage- Returns:
- the error message, null if no error
- Throws:
Exception
-
isDisplayMeta
protected boolean isDisplayMeta(ContentContext ctx)
- Overrides:
isDisplayMetain classAbstractFileComponent
-
getComplexityLevel
public int getComplexityLevel(ContentContext ctx)
Description copied from interface:IContentVisualComponentreturn the complexity level of the component.- Specified by:
getComplexityLevelin interfaceIContentVisualComponent- Overrides:
getComplexityLevelin classAbstractVisualComponent- Parameters:
ctx- TODO- Returns:
- see contant
-
getPreviewURL
public String getPreviewURL(ContentContext ctx, String filter)
- Specified by:
getPreviewURLin interfaceIStaticResource- Overrides:
getPreviewURLin classGlobalImage
-
isDisplayable
public boolean isDisplayable(ContentContext ctx) throws Exception
Description copied from interface:IContentVisualComponenttrue if the component can be displayed in preview mode- Specified by:
isDisplayablein interfaceIContentVisualComponent- Overrides:
isDisplayablein classAbstractFileComponent- Returns:
- Throws:
Exception
-
isFileNameValid
protected boolean isFileNameValid(ContentContext ctx, String fileName)
- Overrides:
isFileNameValidin classGlobalImage
-
getFontAwesome
public String getFontAwesome()
- Specified by:
getFontAwesomein interfaceIContentVisualComponent- Overrides:
getFontAwesomein classImage
-
getSpecialTagTitle
public String getSpecialTagTitle(ContentContext ctx) throws Exception
- Specified by:
getSpecialTagTitlein interfaceIContentVisualComponent- Overrides:
getSpecialTagTitlein classGlobalImage- Throws:
Exception
-
isAskWidth
public boolean isAskWidth(ContentContext ctx)
- Overrides:
isAskWidthin classGlobalImage
-
-