Modifier and Type | Field and Description |
---|---|
static String |
PN_ACTION_TEXT
Name of the policy property that defines the text to be displayed on the action.
|
static String |
PN_DESCRIPTION_FROM_ASSET
Name of the resource property that defines whether or not the description value is taken from the configured asset.
|
static String |
PN_DISPLAY_FILENAME
Name of the policy property that defines whether the filename will be displayed.
|
static String |
PN_DISPLAY_FORMAT
Name of the policy property that defines whether the file's format will be displayed.
|
static String |
PN_DISPLAY_SIZE
Name of the policy property that defines whether the file's size will be displayed.
|
static String |
PN_HIDE_TITLE_LINK
Name of the policy property that defines whether the title links should be hidden.
|
static String |
PN_INLINE
Name of the resource property that defines whether or not the download item should be displayed inline vs.
|
static String |
PN_TITLE_FROM_ASSET
Name of the resource property that defines whether or not the title value is taken from the configured asset.
|
static String |
PN_TITLE_TYPE
Name of the policy property that stores the value for this title's HTML element type.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
displayFilename()
Checks if the filename should be displayed.
|
default boolean |
displayFormat()
Checks if the file format should be displayed.
|
default boolean |
displaySize()
Checks if the file size should be displayed.
|
default String |
getActionText()
Returns the action text from the dialog if it is configured there.
|
default String |
getDescription()
Returns either the description configured in the dialog or the description of the DAM asset,
depending on the state of the descriptionFromAsset checkbox.
|
default String |
getExtension()
Returns the extension of file to be downloaded.
|
default String |
getFilename()
Returns the filename of the file to be downloaded.
|
default String |
getFormat()
Returns the mime type of the file to be downloaded.
|
default String |
getSize()
Returns the size of the file to be downloaded.
|
default String |
getTitle()
Returns either the title configured in the dialog or the title of the DAM asset,
depending on the state of the titleFromAsset checkbox.
|
default String |
getTitleType()
Returns the HTML element to be used for the title as defined in the component policy.
|
default String |
getUrl()
Returns the url to the asset.
|
default boolean |
hideTitleLink()
Checks if the title link should be hidden.
|
getAppliedCssClasses, getData, getExportedType, getId
static final String PN_TITLE_FROM_ASSET
static final String PN_DESCRIPTION_FROM_ASSET
static final String PN_INLINE
static final String PN_ACTION_TEXT
static final String PN_TITLE_TYPE
getTitleType()
,
Constant Field Valuesstatic final String PN_DISPLAY_SIZE
static final String PN_DISPLAY_FORMAT
static final String PN_DISPLAY_FILENAME
static final String PN_HIDE_TITLE_LINK
default String getTitle()
default String getDescription()
default String getUrl()
default String getActionText()
default String getTitleType()
default String getSize()
default String getExtension()
MimeTypeService
. If no mapping can be found the extension is extracted from the filename.default boolean displaySize()
true
if the size should be displayed, false
otherwisedefault String getFormat()
default boolean displayFormat()
true
if the format should be displayed, false
otherwisedefault String getFilename()
default boolean displayFilename()
true
if the filename should be displayed, false
otherwisedefault boolean hideTitleLink()
true
if the title link should be hidden, false
if it should be renderedCopyright © 2022. All rights reserved.