public class MediaPathSettings extends AbstractTextChooserSettings<MediaPathSettings>
Modifier and Type | Class and Description |
---|---|
static class |
MediaPathSettings.MediaType |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MEDIA |
APPEND, ARIA_ATTR_PREFIX, ARIA_ATTRIBUTES, AUTOFOCUS, CLEAR_BUTTON, CSS, DATA_ATTR_PREFIX, DATA_ATTRIBUTES, DISABLED, HIDE_CLEAR_BUTTON, HTML_ATTRIBUTES, ID, LANGUAGE_CHOOSER, MAX_LENGTH, NAME, PLACEHOLDER, PREPEND, READONLY, REQUIRED, TRIGGER_ACTION, TRIGGER_EVENT, VALUE
Constructor and Description |
---|
MediaPathSettings() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getChooserName()
Chooser name used by the databroker when there is a click event in the chooser button.
|
protected java.lang.String |
getChooserOption(java.util.Map<java.lang.String,java.lang.String[]> customOptionMap)
Options used by the databroker when there is a click event in the chooser button.
|
protected MediaPathSettings |
getThis()
Returns the exact type of the this reference.
It's a way to recover the type of the this object in a class hierarchy (cf. |
ControlType |
getType()
Returns the
ControlType related to the current ControlSettings implementation. |
MediaPathSettings |
media(java.util.Collection<MediaPathSettings.MediaType> mediaTypes)
Filter the media to select according to the given media types.
|
MediaPathSettings |
media(MediaPathSettings.MediaType[] mediaTypes)
Filter the media to select according to the given media types.
|
MediaPathSettings |
media(MediaPathSettings.MediaType mediaType,
MediaPathSettings.MediaType... otherMediaTypes)
Filter the media to select according to the given media types.
|
MediaPathSettings |
media(java.lang.String[] mediaTypes)
Filter the media to select according to the given media types.
|
MediaPathSettings |
media(java.lang.String mediaType,
java.lang.String... otherMediaTypes)
Filter the media to select according to the given media types.
|
void |
resolveOptions(TypeFieldEntry tfe)
Set options from the specified
TypeFieldEntry . |
protected boolean |
useCurrentWorkspace()
Override this method and return 'true' to add current Workspace in chooser option if not defined by WORKSPACE option.
|
addAcChooserOption, addChooserOption, getAcChooserName, getAcChooserOption, getChooserIcon, getChooserTitle, getOption, popupHeight, popupWidth, superGetOption, workspace, workspace
onChange
addOption, append, aria, aria, autofocus, clearOption, clone, css, dataAttribute, dataAttributes, disable, getOptionNames, htmlAttributes, htmlAttributes, id, isChannelReady, maxLength, merge, name, onFocusOut, placeholder, prepend, readonly, removeOption, require, showLanguageChooser, sortSet, toStringArray, toStringArray, toStringArray, toStringArray, toStringArray, trigger, value
public static final java.lang.String MEDIA
public ControlType getType()
ControlSettings
ControlType
related to the current ControlSettings
implementation.ControlType
protected MediaPathSettings getThis()
BasicSettings
this
object in a class hierarchy (cf. getThis "trick").getThis
in class BasicSettings<MediaPathSettings>
protected java.lang.String getChooserName()
AbstractTextChooserSettings
getChooserName
in class AbstractTextChooserSettings<MediaPathSettings>
public void resolveOptions(TypeFieldEntry tfe)
ControlSettings
TypeFieldEntry
.resolveOptions
in interface ControlSettings<MediaPathSettings>
resolveOptions
in class BasicSettings<MediaPathSettings>
tfe
- TypeFieldEntry
protected java.lang.String getChooserOption(java.util.Map<java.lang.String,java.lang.String[]> customOptionMap)
AbstractTextChooserSettings
getChooserOption
in class AbstractTextChooserSettings<MediaPathSettings>
customOptionMap
- Extra chooser options forwarded by the option ChooserConstants.EXTRA_CHOOSER_OPTION
and appended to the query stringString
representing the options as query stringprotected boolean useCurrentWorkspace()
AbstractTextChooserSettings
useCurrentWorkspace
in class AbstractTextChooserSettings<MediaPathSettings>
true
to use the current workspace, false
insteadpublic MediaPathSettings media(java.lang.String[] mediaTypes)
mediaTypes
- Array of media typespublic MediaPathSettings media(MediaPathSettings.MediaType[] mediaTypes)
mediaTypes
- Array of MediaPathSettings.MediaType
objectspublic MediaPathSettings media(java.util.Collection<MediaPathSettings.MediaType> mediaTypes)
mediaTypes
- Collection of MediaPathSettings.MediaType
objectspublic MediaPathSettings media(MediaPathSettings.MediaType mediaType, MediaPathSettings.MediaType... otherMediaTypes)
mediaType
- The first MediaPathSettings.MediaType
objectotherMediaTypes
- the other MediaPathSettings.MediaType
objectspublic MediaPathSettings media(java.lang.String mediaType, java.lang.String... otherMediaTypes)
mediaType
- The first media typeotherMediaTypes
- the other media typesCopyright © 2001-2022 Jalios SA. All Rights Reserved.