public class Multimedia extends TimeRangeComponent implements IImageTitle, IStaticContainer
AbstractVisualComponent
String
title : the title.PaginationContext
pagination : pagination context.MultimediaResource
resources : list of resources to be displayed.
Modifier and Type | Field and Description |
---|---|
static String |
ALL |
static String |
EMBED |
static String |
IMAGE |
protected static String |
IMAGE_AFTER_EXEPT_FIRST |
protected static String |
IMAGE_FIRST |
protected static String |
NAME_ORDER |
protected static String |
ORDER_BY_ACCESS |
protected static String |
RANDOM_ORDER |
protected static String |
REVERSE_ORDER |
static String |
SOUND |
protected static String |
STATIC_EMBED_FOLDER |
protected static String |
STATIC_IMAGE_FOLDER |
protected static String |
STATIC_SOUND_FOLDER |
protected static String |
STATIC_VIDEO_FOLDER |
static String |
TYPE |
static String |
VIDEO |
logger, VALUE_SEPARATOR
initDate, NOT_VISIBLE_TYPE
CACHE_KEY_SUFFIX_PARAM_NAME, COMPONENT_KEY, config, EDIT_CLASS, FORCE_COMPONENT_ID, HIDDEN, I18N_FILE, NOT_EDIT_PREVIEW_PARAM_NAME, SCROLL_TO_COMP_ID_ATTRIBUTE_NAME, TIME_CACHE_NAME
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 |
---|
Multimedia() |
getDate, getEndDate, getInputEndDateName, getInputStartDateName, getInputTag, getPrefixViewXHTMLCode, getSearchLevel, getStartDate, getSuffixViewXHTMLCode, getViewXHTMLCode
getDate, getInputDateName, getInputTimeName, renderDate, setDate
applyReplacement, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, equals, equals, executeCurrentRenderer, executeJSP, executeRenderer, executeRenderer, extractFieldsFromRenderer, getAjaxId, getArea, getAuthors, getBackgroundColor, getBaseHelpURL, getClassName, getComponentBean, getComponentCSS, getComponentCssClass, getComponentId, getComponentLabel, getComponentPath, getConfig, getConfigMessage, getContainerPage, getContentAsMap, getContentAsText, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayMessage, getEditorComplexity, getEditText, getEmptyCode, getErrorMessage, getErrorMessage, getExternalResources, getFirstPrefix, getForcedId, getForcedPrefixViewXHTMLCode, getForcedSuffixViewXHTMLCode, getFormName, getHeaderContent, getHelpType, getHelpURI, getHelpURL, getI18nEditableKeys, getId, getImportFolderPath, getInlineStyle, getInputName, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLabelLevel, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getMarkerList, getMessage, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPageDescription, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getRemplacement, getRenderer, getRendererTitle, getRenderes, getRequestComponent, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssClass, getSpecialPreviewCssId, getSpecificClass, getStyle, getStyleLabel, getTag, getTextColor, getTextForSearch, getTextLabel, getTextMessage, getTextTitle, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getWidth, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, insert, isAjaxWrapper, isAskWidth, isAutoDeletable, isAutoRenderer, isBackgroundColored, isCanAddClass, isColored, isConfig, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isInline, isInsertable, isList, isListable, isMetaTitle, isMirrorWrapped, isModify, isNeedDelete, isNeedRefresh, isNeedRenderer, isNew, isNextSame, isNextSame, isNolink, isNoLinkable, isPreviousSame, isPreviousSame, isRepeat, isRepeatable, isRestMatch, isReversedLink, 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, setMessage, setMirrorWrapped, setModify, setNeedRefresh, setNextComponent, setNolink, setPage, setPreviousComponent, setRenderer, setRepeat, setStyle, setTextColor, setValid, setValue, setWidth, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTML, transflateFrom
public static final String TYPE
protected static final String STATIC_VIDEO_FOLDER
protected static final String STATIC_SOUND_FOLDER
protected static final String STATIC_IMAGE_FOLDER
protected static final String STATIC_EMBED_FOLDER
protected static final String IMAGE_FIRST
protected static final String IMAGE_AFTER_EXEPT_FIRST
protected static final String ORDER_BY_ACCESS
protected static final String REVERSE_ORDER
protected static final String NAME_ORDER
protected static final String RANDOM_ORDER
public static final String ALL
public static final String IMAGE
public static final String SOUND
public static final String VIDEO
public static final String EMBED
protected boolean acceptStaticInfo(ContentContext ctx, StaticInfo info)
protected boolean acceptResource(ContentContext ctx, MultimediaResource info)
protected boolean displayEmbed(ContentContext ctx)
protected boolean displayImage(ContentContext ctx)
protected boolean displaySound(ContentContext ctx)
protected boolean displayVideo(ContentContext ctx)
public boolean isRealContent(ContentContext ctx)
IContentVisualComponent
isRealContent
in interface IContentVisualComponent
isRealContent
in class DateComponent
ctx
- current contextprotected String getImageFilter(ContentContext ctx)
protected ContentContext getValidVideoCtx(ContentContext ctx, IVideo video)
protected MultimediaResource createResource(ContentContext ctx, IVideo video)
protected List<MultimediaResource> getContentVideo(ContentContext ctx) throws Exception
Exception
public Collection<File> getAllMultimediaFiles(ContentContext ctx)
public String getBaseStaticDir(ContentContext ctx)
public String getCurrentRootFolder()
public void setCurrentRootFolder(ContentContext ctx, String folder)
protected String getDisplayAsInputName()
getDisplayAsInputName
in class AbstractVisualComponent
protected Collection<String> getSelection(ContentContext ctx)
protected boolean isDateRange()
protected boolean isOrder()
protected boolean isTag()
protected String getCurrentRootFolderForBrowse()
protected boolean isSelectBrowse()
protected String getEditXHTMLCode(ContentContext ctx) throws Exception
getEditXHTMLCode
in class TimeRangeComponent
Exception
public String getFilesDirectory(ContentContext ctx)
protected String getGlobalCssClass()
public String getHexColor()
IContentVisualComponent
getHexColor
in interface IContentVisualComponent
getHexColor
in class TimeRangeComponent
protected String getHTMLRelation(ContentContext ctx)
protected String getImageFilePath(ContentContext ctx, String fileLink)
public String getInputBaseFolderName()
public String getInputMaxListSizeName()
public String getInputPageSizeName()
public String getInputTitle()
protected String getInputNameOrderByAccess()
protected String getInputNameRandomOrder()
protected String getInputNameReverseOrder()
protected String getInputNameNameOrder()
protected String getItemCssClass()
public int getMaxListSize()
public int getPageSize()
public String getTitle()
protected String getMultimediaFilePath(ContentContext ctx, String lg, File file)
protected String getMultimediaFileURL(ContentContext ctx, File file)
protected String getMultimediaFileURL(ContentContext ctx, String lg, File file)
protected String getRelativeFileDirectory(ContentContext ctx)
public String[] getStyleLabelList(ContentContext ctx)
IContentVisualComponent
getStyleLabelList
in interface IContentVisualComponent
getStyleLabelList
in class DateComponent
public String[] getStyleList(ContentContext ctx)
IContentVisualComponent
getStyleList
in interface IContentVisualComponent
getStyleList
in class DateComponent
public String getStyleTitle(ContentContext ctx)
IContentVisualComponent
getStyleTitle
in interface IContentVisualComponent
getStyleTitle
in class DateComponent
protected String getTitle(ContentContext ctx)
public String getType()
IContentVisualComponent
getType
in interface IContentVisualComponent
getType
in class TimeRangeComponent
protected MultimediaResource getFirstResource(ContentContext ctx) throws Exception
Exception
protected MultimediaResource _getFirstResource(ContentContext ctx) throws Exception
Exception
protected List<MultimediaResource> getMultimediaResources(ContentContext ctx) throws Exception
Exception
public void prepareView(ContentContext ctx) throws Exception
AbstractVisualComponent
prepareView
in class TimeRangeComponent
Exception
public int getWordCount(ContentContext ctx)
IContentVisualComponent
getWordCount
in interface IContentVisualComponent
getWordCount
in class AbstractVisualComponent
protected void init() throws ResourceNotFoundException
init
in class TimeRangeComponent
ResourceNotFoundException
protected boolean isImported(ContentContext ctx)
protected void init(ComponentBean bean, ContentContext ctx) throws Exception
init
in class AbstractVisualComponent
Exception
public String getImportFolderPath(ContentContext ctx) throws Exception
getImportFolderPath
in class AbstractVisualComponent
Exception
public boolean isContentCachable(ContentContext ctx)
IContentVisualComponent
isContentCachable
in interface IContentVisualComponent
isContentCachable
in class DateComponent
public boolean isContentTimeCachable(ContentContext ctx)
isContentTimeCachable
in class AbstractVisualComponent
public boolean isContentCachableByQuery(ContentContext ctx)
isContentCachableByQuery
in class AbstractVisualComponent
protected boolean isCountAccess(ContentContext ctx)
protected boolean isDisplayOnlyShared()
public boolean isOrderByAccess(ContentContext ctx)
public boolean isOrderRandom(ContentContext ctx)
public boolean isReverseOrder(ContentContext ctx)
public boolean isNameOrder(ContentContext ctx)
protected boolean isRenderInfo(ContentContext ctx)
protected boolean isRenderLanguage()
public boolean isUnique()
IContentVisualComponent
isUnique
in interface IContentVisualComponent
isUnique
in class TimeRangeComponent
public String performEdit(ContentContext ctx) throws Exception
IContentVisualComponent
performEdit
in interface IContentVisualComponent
performEdit
in class TimeRangeComponent
Exception
public String getImageDescription(ContentContext ctx)
getImageDescription
in interface IImageTitle
public String getResourceURL(ContentContext ctx)
getResourceURL
in interface IImageTitle
public String getImageLinkURL(ContentContext ctx)
getImageLinkURL
in interface IImageTitle
public boolean isImageValid(ContentContext ctx)
isImageValid
in interface IImageTitle
protected Object getLock(ContentContext ctx)
getLock
in class AbstractVisualComponent
public int getPriority(ContentContext ctx)
IImageTitle
getPriority
in interface IImageTitle
public String getEmptyXHTMLCode(ContentContext ctx) throws Exception
IContentVisualComponent
getEmptyXHTMLCode
in interface IContentVisualComponent
getEmptyXHTMLCode
in class AbstractVisualComponent
Exception
public boolean isMirroredByDefault(ContentContext ctx)
IContentVisualComponent
isMirroredByDefault
in interface IContentVisualComponent
isMirroredByDefault
in class TimeRangeComponent
public boolean initContent(ContentContext ctx) throws Exception
IContentVisualComponent
initContent
in interface IContentVisualComponent
initContent
in class AbstractVisualComponent
Exception
public int getComplexityLevel(ContentContext ctx)
IContentVisualComponent
getComplexityLevel
in interface IContentVisualComponent
getComplexityLevel
in class AbstractVisualComponent
ctx
- TODOpublic boolean contains(ContentContext ctx, String uri)
IStaticContainer
contains
in interface IStaticContainer
uri
- a uri to a static resourcespublic Collection<Resource> getAllResources(ContentContext ctx)
IStaticContainer
getAllResources
in interface IStaticContainer
public boolean renameResource(ContentContext ctx, File oldName, File newName)
IStaticContainer
renameResource
in interface IStaticContainer
public Collection<Link> getAllResourcesLinks(ContentContext ctx)
IStaticContainer
getAllResourcesLinks
in interface IStaticContainer
public int getPopularity(ContentContext ctx)
IStaticContainer
getPopularity
in interface IStaticContainer
public void setDirSelected(String dir)
IStaticContainer
setDirSelected
in interface IStaticContainer
public String getDirSelected()
IStaticContainer
getDirSelected
in interface IStaticContainer
public List<File> getFiles(ContentContext ctx)
getFiles
in interface IStaticContainer
public boolean isValidDate(ContentContext ctx)
isValidDate
in interface IDate
isValidDate
in class DateComponent
public String getFontAwesome()
getFontAwesome
in interface IContentVisualComponent
getFontAwesome
in class DateComponent
public String getSpecialTagTitle(ContentContext ctx) throws Exception
getSpecialTagTitle
in interface IContentVisualComponent
getSpecialTagTitle
in class AbstractVisualComponent
Exception
protected String getLabelTextInputName()
public String getSpecialTagXHTML(ContentContext ctx) throws Exception
getSpecialTagXHTML
in interface IContentVisualComponent
getSpecialTagXHTML
in class AbstractVisualComponent
Exception
Copyright © 2012-2018. All Rights Reserved.