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 StringTYPE-
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 intgetComplexityLevel(ContentContext ctx)return the complexity level of the component.protected StringgetCurrentRootFolderForBrowse()protected StringgetEditPreview(ContentContext ctx)protected MultimediaResourcegetFirstResource(ContentContext ctx)protected List<MultimediaResource>getMultimediaResources(ContentContext ctx)StringgetRenderer(ContentContext ctx)get current renderer file.StringgetResourceURL(ContentContext ctx)protected List<String>getSelection(ContentContext ctx)protected StringgetTransformFilter(File file)StringgetType()return the type of the element.protected booleanisDateRange()protected booleanisManualOrder()protected booleanisOrder()booleanisRealContent(ContentContext ctx)return true if component is considered as realContent and the page that contain the component is also considered as real content.protected booleanisSelectBrowse()protected booleanisTag()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, compidvoidsetCurrentRootFolder(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:IContentVisualComponentreturn the type of the element.- Specified by:
getTypein interfaceIContentVisualComponent- Overrides:
getTypein classMultimedia- Returns:
- the type of the element.
-
isDateRange
protected boolean isDateRange()
- Overrides:
isDateRangein classMultimedia
-
isOrder
protected boolean isOrder()
- Overrides:
isOrderin classMultimedia
-
isManualOrder
protected boolean isManualOrder()
- Overrides:
isManualOrderin classMultimedia
-
isTag
protected boolean isTag()
- Overrides:
isTagin classMultimedia
-
getRenderer
public String getRenderer(ContentContext ctx)
Description copied from class:AbstractVisualComponentget current renderer file.- Specified by:
getRendererin interfaceIContentVisualComponent- Overrides:
getRendererin classAbstractVisualComponent
-
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 classMultimedia- Throws:
Exception
-
getCurrentRootFolderForBrowse
protected String getCurrentRootFolderForBrowse()
- Overrides:
getCurrentRootFolderForBrowsein classMultimedia
-
setCurrentRootFolder
public void setCurrentRootFolder(ContentContext ctx, String folder)
- Overrides:
setCurrentRootFolderin classMultimedia
-
getSelection
protected List<String> getSelection(ContentContext ctx)
- Overrides:
getSelectionin classMultimedia
-
getTransformFilter
protected String getTransformFilter(File file)
- Overrides:
getTransformFilterin classMultimedia
-
isSelectBrowse
protected boolean isSelectBrowse()
- Overrides:
isSelectBrowsein classMultimedia
-
getEditPreview
protected String getEditPreview(ContentContext ctx) throws Exception
- Overrides:
getEditPreviewin classMultimedia- Throws:
Exception
-
getResourceURL
public String getResourceURL(ContentContext ctx)
- Specified by:
getResourceURLin interfaceIImageTitle- Overrides:
getResourceURLin classMultimedia
-
getFirstResource
protected MultimediaResource getFirstResource(ContentContext ctx) throws Exception
- Overrides:
getFirstResourcein classMultimedia- Throws:
Exception
-
getMultimediaResources
protected List<MultimediaResource> getMultimediaResources(ContentContext ctx) throws Exception
- Overrides:
getMultimediaResourcesin classMultimedia- Throws:
Exception
-
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 classMultimedia- Returns:
- the error message, null if no error
- Throws:
Exception
-
getComplexityLevel
public int getComplexityLevel(ContentContext ctx)
Description copied from interface:IContentVisualComponentreturn the complexity level of the component.- Specified by:
getComplexityLevelin interfaceIContentVisualComponent- Overrides:
getComplexityLevelin classMultimedia- Parameters:
ctx- TODO- Returns:
- see contant
-
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 classMultimedia- Parameters:
ctx- current context- Returns:
-
-