Package org.javlo.component.multimedia
Class PDFMultimedia
- java.lang.Object
-
- org.javlo.component.core.AbstractVisualComponent
-
- org.javlo.component.properties.AbstractPropertiesComponent
-
- org.javlo.component.multimedia.Multimedia
-
- org.javlo.component.multimedia.PDFMultimedia
-
- All Implemented Interfaces:
Serializable
,Comparable<IContentVisualComponent>
,IAction
,IContentVisualComponent
,IImageTitle
,IRestItem
,ITaxonomyContainer
,IStaticContainer
public class PDFMultimedia extends Multimedia
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE
-
Fields inherited from class org.javlo.component.multimedia.Multimedia
ALL, EMBED, IMAGE, IMAGE_AFTER_EXEPT_FIRST, IMAGE_FIRST, MAX_LIST_SIZE, NAME_ORDER, ORDER_BY_ACCESS, PAGE_SIZE, RANDOM_ORDER, REVERSE_ORDER, ROOT_FOLDER, SOUND, STATIC_EMBED_FOLDER, STATIC_IMAGE_FOLDER, STATIC_SOUND_FOLDER, STATIC_VIDEO_FOLDER, VIDEO
-
Fields inherited from class org.javlo.component.properties.AbstractPropertiesComponent
properties
-
Fields inherited from class org.javlo.component.core.AbstractVisualComponent
CACHE_KEY_SUFFIX_PARAM_NAME, COMPONENT_KEY, config, EDIT_CLASS, FLUID_COL_SIZE, FORCE_COMPONENT_ID, HIDDEN, I18N_FILE, logger, MAX_COL_VALUE, MOBILE_TYPE, NOT_EDIT_PREVIEW_PARAM_NAME, SCROLL_TO_COMP_ID_ATTRIBUTE_NAME, TIME_CACHE_NAME
-
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 PDFMultimedia()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getComplexityLevel(ContentContext ctx)
return the complexity level of the component.protected String
getCurrentRootFolderForBrowse()
protected String
getEditPreview(ContentContext ctx)
protected MultimediaResource
getFirstResource(ContentContext ctx)
protected List<MultimediaResource>
getMultimediaResources(ContentContext ctx)
String
getRenderer(ContentContext ctx)
get current renderer file.String
getResourceURL(ContentContext ctx)
protected List<String>
getSelection(ContentContext ctx)
protected String
getTransformFilter(File file)
String
getType()
return the type of the element.protected boolean
isDateRange()
protected boolean
isManualOrder()
protected boolean
isOrder()
boolean
isRealContent(ContentContext ctx)
return true if component is considered as realContent and the page that contain the component is also considered as real content.protected boolean
isSelectBrowse()
protected boolean
isTag()
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, compidvoid
setCurrentRootFolder(ContentContext ctx, String folder)
-
Methods inherited from class org.javlo.component.multimedia.Multimedia
acceptResource, acceptStaticInfo, contains, createResource, displayEmbed, displayImage, displaySound, displayVideo, getActionGroupName, getAllFileName, getAllMultimediaFiles, getAllResources, getAllResourcesLinks, getBaseStaticDir, getColumnableDefaultValue, getContentVideo, getCurrentRootFolder, getDirSelected, getDisplayAsInputName, getEditXHTMLCode, getEmptyXHTMLCode, getEndDate, getFields, getFileOrder, getFiles, getFilesDirectory, getGlobalCssClass, getHexColor, getHTMLRelation, getIcon, getImageDescription, getImageFilePath, getImageFilter, getImageLinkURL, getImportFolderPath, getInputBaseFolderName, getInputMaxListSizeName, getInputNameNameOrder, getInputNameOrderByAccess, getInputNameRandomOrder, getInputNameReverseOrder, getInputPageSizeName, getInputTag, getInputTitle, getItemCssClass, getLabelTextInputName, getLock, getMaxListSize, getMultimediaFilePath, getMultimediaFileURL, getMultimediaFileURL, getPageSize, getPopularity, getPreviewFilter, getPriority, getRelativeFileDirectory, getSpecialTagTitle, getSpecialTagXHTML, getStartDate, getStyleLabelList, getStyleList, getStyleTitle, getTags, getTaxonomy, getTitle, getTitle, getValidVideoCtx, getWordCount, init, initContent, isContentCachable, isContentCachableByQuery, isContentTimeCachable, isCountAccess, isDisplayOnlyShared, isImageValid, isImported, isMirroredByDefault, isMobileOnly, isNameOrder, isOrderByAccess, isOrderRandom, isRenderInfo, isRenderLanguage, isReverseOrder, isSessionTaxonomy, isUnique, performChangegallery, performOrderhtml, renameResource, setDirSelected, setFileOrder
-
Methods inherited from class org.javlo.component.properties.AbstractPropertiesComponent
createKeyWithField, getContentAsMap, getContentAsText, getFieldChoice, getFieldDoubleValue, getFieldLongValue, getFieldName, getFieldType, getFieldValue, getFieldValue, getFieldValue, getHeader, getLabel, getListSeparator, getMdSize, getRowSize, getViewXHTMLCode, getXsSize, isAllTranslated, main, renderField, setFieldValue, storeProperties, transflateFrom, validateField
-
Methods inherited from class org.javlo.component.core.AbstractVisualComponent
applyReplacement, cleanResources, cleanValue, clearReplacement, clone, compareTo, contructViewStyle, countLine, delete, deleteMySelf, drawColumn, equals, 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, getContentCache, getContentMessage, getContentName, getContentTimeCache, getCookiesDisplayStatus, getCreationDate, getCSSStyle, getCurrentPage, getCurrentRenderer, getDataAttributes, getDebugHeader, getDefaultHelpURI, getDefaultRenderer, getDeleteDate, getDescription, getDisplayMessage, getEditorComplexity, getEditRenderer, getEditText, getEmptyCode, getErrorMessage, getErrorMessage, getExternalModules, getExternalResources, getFileDirectory, getFirstPrefix, getFontAwesome, getForcedId, getForcedPrefixViewXHTMLCode, getForcedRenderer, getForcedSuffixViewXHTMLCode, getFormName, getGroup, getHeaderContent, getHelpText, getHelpType, getHelpURI, getHelpURL, getI18nEditableKeys, getId, getImportFolderPath, getInlineStyle, getInputName, getInputNameColomn, getInputNameColomnStyle, getInputNameRenderer, getInputNameRendererTitle, getItalicAndStrongLanguageMarkerList, getJSOnSubmit, getKey, getLabelLevel, getLastSufix, getLayout, getListClass, getListGroup, getListItemTag, getListTag, getLocalMessage, getManualCssClass, getMarkerList, getMessage, getMirrorWrapper, getModificationDate, getNextComponent, getPage, getPageDescription, getPrefixCssClass, getPrefixViewXHTMLCode, getPreviewAttributes, getPreviewCssClass, getPreviewCssId, getPreviousComponent, getQuotationLanguageMarkerList, getReferenceComponent, getRemplacement, getRendererTitle, getRenderes, getRequestComponent, getSearchLevel, getSelectRendererXHTML, getSpecialInputTag, getSpecialPreviewCssId, getSpecificClass, getSpecificCssClass, getStyle, getStyleLabel, getSuffixViewXHTMLCode, getTag, getTextColor, getTextForSearch, getTextLabel, getTextMessage, getTextPosition, getTextTitle, getTitleLevel, getTypeInputName, getValue, getValue, getVersion, getViewData, getViewDataFile, getViewID, getViewText, getWidth, getXHTMLCode, getXHTMLConfig, haveRight, includeComponentJSP, includePage, init, insert, isAjaxWrapper, isAskWidth, isAutoDeletable, isAutoRenderer, isBackgroundColored, isCanAddClass, isCloseRow, isColored, isColumnable, isConfig, isDefaultValue, isDispayEmptyXHTMLCode, isDisplayable, isDisplayHidden, isEditOnCreate, isFirstElementOfRepeatSequence, isFirstRepeated, isFreeInputLayout, isHelpURL, isHiddable, isHidden, isHiddenInMode, isHiddenInModeValue, isInline, isInsertable, isList, isListable, isMetaTitle, isMirrorWrapped, isModify, isNeedDelete, isNeedRefresh, isNeedRenderer, isNew, isNextSame, isNextSame, isNolink, isNoLinkable, isOpenRow, isPreviousSame, isPreviousSame, isRepeat, isRepeatable, isRestMatch, isReversedLink, isStyleHidden, 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, setMessage, setMirrorWrapped, setModify, setNeedRefresh, setNextComponent, setNolink, setPage, setPreviousComponent, setRenderer, setRepeat, setStyle, setTextColor, setTextPosition, setValid, setValue, setWidth, stored, storeViewData, stringToReader, stringToReader, stringToStream, textToXHTML, toString, updateCache
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:IContentVisualComponent
return the type of the element.- Specified by:
getType
in interfaceIContentVisualComponent
- Overrides:
getType
in classMultimedia
- Returns:
- the type of the element.
-
isDateRange
protected boolean isDateRange()
- Overrides:
isDateRange
in classMultimedia
-
isOrder
protected boolean isOrder()
- Overrides:
isOrder
in classMultimedia
-
isManualOrder
protected boolean isManualOrder()
- Overrides:
isManualOrder
in classMultimedia
-
isTag
protected boolean isTag()
- Overrides:
isTag
in classMultimedia
-
getRenderer
public String getRenderer(ContentContext ctx)
Description copied from class:AbstractVisualComponent
get current renderer file.- Specified by:
getRenderer
in interfaceIContentVisualComponent
- Overrides:
getRenderer
in classAbstractVisualComponent
-
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 classMultimedia
- Throws:
Exception
-
getCurrentRootFolderForBrowse
protected String getCurrentRootFolderForBrowse()
- Overrides:
getCurrentRootFolderForBrowse
in classMultimedia
-
setCurrentRootFolder
public void setCurrentRootFolder(ContentContext ctx, String folder)
- Overrides:
setCurrentRootFolder
in classMultimedia
-
getSelection
protected List<String> getSelection(ContentContext ctx)
- Overrides:
getSelection
in classMultimedia
-
getTransformFilter
protected String getTransformFilter(File file)
- Overrides:
getTransformFilter
in classMultimedia
-
isSelectBrowse
protected boolean isSelectBrowse()
- Overrides:
isSelectBrowse
in classMultimedia
-
getEditPreview
protected String getEditPreview(ContentContext ctx) throws Exception
- Overrides:
getEditPreview
in classMultimedia
- Throws:
Exception
-
getResourceURL
public String getResourceURL(ContentContext ctx)
- Specified by:
getResourceURL
in interfaceIImageTitle
- Overrides:
getResourceURL
in classMultimedia
-
getFirstResource
protected MultimediaResource getFirstResource(ContentContext ctx) throws Exception
- Overrides:
getFirstResource
in classMultimedia
- Throws:
Exception
-
getMultimediaResources
protected List<MultimediaResource> getMultimediaResources(ContentContext ctx) throws Exception
- Overrides:
getMultimediaResources
in classMultimedia
- Throws:
Exception
-
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 classMultimedia
- Returns:
- the error message, null if no error
- Throws:
Exception
-
getComplexityLevel
public int getComplexityLevel(ContentContext ctx)
Description copied from interface:IContentVisualComponent
return the complexity level of the component.- Specified by:
getComplexityLevel
in interfaceIContentVisualComponent
- Overrides:
getComplexityLevel
in classMultimedia
- Parameters:
ctx
- TODO- Returns:
- see contant
-
isRealContent
public boolean isRealContent(ContentContext ctx)
Description copied from interface:IContentVisualComponent
return true if component is considered as realContent and the page that contain the component is also considered as real content.- Specified by:
isRealContent
in interfaceIContentVisualComponent
- Overrides:
isRealContent
in classMultimedia
- Parameters:
ctx
- current context- Returns:
-
-