Class DurationSettings
- java.lang.Object
-
- com.jalios.jcms.taglib.settings.BasicSettings<DurationSettings>
-
- com.jalios.jcms.taglib.settings.impl.DurationSettings
-
- All Implemented Interfaces:
ControlSettings<DurationSettings>
,java.lang.Cloneable
public class DurationSettings extends BasicSettings<DurationSettings>
Duration Settings- Author:
- Nicolas Dos Santos
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DurationSettings.Resolution
Enumeration that lists the possible resolutions of a duration.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MAX_RESOLUTION
static java.lang.String
RESOLUTION
-
Fields inherited from class com.jalios.jcms.taglib.settings.BasicSettings
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, TITLE, TRIGGER_ACTION, TRIGGER_EVENT, VALUE
-
-
Constructor Summary
Constructors Constructor Description DurationSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DurationSettings
getThis()
Returns the exact type of the this reference.
It's a way to recover the type of thethis
object in a class hierarchy (cf.ControlType
getType()
Returns theControlType
related to the currentControlSettings
implementation.DurationSettings
maxResolution(java.lang.String maxResolution)
DurationSettings
resolution(DurationSettings.Resolution resolution)
Specify theDurationSettings.Resolution
to use for the current duration.DurationSettings
resolution(java.lang.String resolution)
Specify theDurationSettings.Resolution
to use for the current duration from the given String representing one of the words or abbreviation associated with the Resolution.void
resolveOptions(TypeFieldEntry tfe)
Set options from the specifiedTypeFieldEntry
.-
Methods inherited from class com.jalios.jcms.taglib.settings.BasicSettings
addOption, append, aria, aria, autofocus, clearOption, clone, css, dataAttribute, dataAttributes, disable, getOption, getOptionNames, htmlAttributes, htmlAttributes, id, isChannelReady, maxLength, merge, name, onChange, onFocusOut, placeholder, prepend, readonly, removeOption, require, showLanguageChooser, sortSet, title, toStringArray, toStringArray, toStringArray, toStringArray, toStringArray, trigger, value
-
-
-
-
Field Detail
-
RESOLUTION
public static final java.lang.String RESOLUTION
- See Also:
- Constant Field Values
-
MAX_RESOLUTION
public static final java.lang.String MAX_RESOLUTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public ControlType getType()
Description copied from interface:ControlSettings
Returns theControlType
related to the currentControlSettings
implementation.- Returns:
ControlType
-
getThis
protected DurationSettings getThis()
Description copied from class:BasicSettings
Returns the exact type of the this reference.
It's a way to recover the type of thethis
object in a class hierarchy (cf. getThis "trick").- Specified by:
getThis
in classBasicSettings<DurationSettings>
- Returns:
- The exact type of the this reference
-
resolveOptions
public void resolveOptions(TypeFieldEntry tfe)
Description copied from interface:ControlSettings
Set options from the specifiedTypeFieldEntry
.- Specified by:
resolveOptions
in interfaceControlSettings<DurationSettings>
- Overrides:
resolveOptions
in classBasicSettings<DurationSettings>
- Parameters:
tfe
-TypeFieldEntry
-
resolution
public DurationSettings resolution(DurationSettings.Resolution resolution)
Specify theDurationSettings.Resolution
to use for the current duration.- Parameters:
resolution
- Resolution to use- Returns:
- a reference to this object - used to chain calls
- See Also:
DurationSettings.Resolution
-
resolution
public DurationSettings resolution(java.lang.String resolution)
Specify theDurationSettings.Resolution
to use for the current duration from the given String representing one of the words or abbreviation associated with the Resolution.- Parameters:
resolution
- String representing one of the words or abbreviation associated with the resolution.- Returns:
- a reference to this object - used to chain calls
- See Also:
DurationSettings.Resolution
-
maxResolution
public DurationSettings maxResolution(java.lang.String maxResolution)
-
-