Class SwitchSettings
- java.lang.Object
-
- com.jalios.jcms.taglib.settings.BasicSettings<T>
-
- com.jalios.jcms.taglib.settings.SelectorSettings<BooleanSettings>
-
- com.jalios.jcms.taglib.settings.impl.BooleanSettings
-
- com.jalios.jcms.taglib.settings.impl.SwitchSettings
-
- All Implemented Interfaces:
ControlSettings<BooleanSettings>,java.lang.Cloneable
public class SwitchSettings extends BooleanSettings
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jalios.jcms.taglib.settings.SelectorSettings
SelectorSettings.SegmentedType, SelectorSettings.SelectMode, SelectorSettings.SelectorType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFORCED_SWITCHstatic java.lang.StringSWITCH_OFF_ICON_SRCstatic java.lang.StringSWITCH_OFF_LABELstatic java.lang.StringSWITCH_ON_ICON_SRCstatic java.lang.StringSWITCH_ON_LABELstatic java.lang.StringWITHOUT_ICON-
Fields inherited from class com.jalios.jcms.taglib.settings.impl.BooleanSettings
BOOLEAN_ENUM_LABELS, BOOLEAN_ENUM_VALUES
-
Fields inherited from class com.jalios.jcms.taglib.settings.SelectorSettings
ENABLE_SEARCH, ENUM_DATA_ATTRIBUTES, ENUM_LABEL_APPENDS, ENUM_LABEL_PREPENDS, ENUM_LABELS, ENUM_VALUES, INLINE, MULTIPLE, REQUIRED, SEGMENTED_TYPE, SEGMENTED_TYPE_DEFAULT, SELECT_ITEM_EMPTY_VALUE, SELECT_ITEM_EMPTY_VALUE_LABEL, SELECTOR_TYPE, WRAPPER_CSS
-
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, TITLE, TRIGGER_ACTION, TRIGGER_EVENT, VALUE
-
-
Constructor Summary
Constructors Constructor Description SwitchSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SwitchSettingsgetThis()Returns the exact type of the this reference.
It's a way to recover the type of thethisobject in a class hierarchy (cf.SwitchSettingsiconOff(java.lang.String src, java.lang.String label)SwitchSettingsiconOn(java.lang.String src, java.lang.String label)SwitchSettingswithoutOnIcon()-
Methods inherited from class com.jalios.jcms.taglib.settings.impl.BooleanSettings
getType, resolveOptions, resolveSelectorType
-
Methods inherited from class com.jalios.jcms.taglib.settings.SelectorSettings
checkbox, chooser, disableInline, emptyValueLabel, enumDataAttribute, enumLabelAppends, enumLabelAppends, enumLabelAppends, enumLabelPreprends, enumLabelPreprends, enumLabelPreprends, enumLabels, enumLabels, enumLabels, enumValues, enumValues, enumValues, inline, multiple, radio, required, segmented, select, select, selectorType, single, wrapperCss
-
Methods inherited from class com.jalios.jcms.taglib.settings.BasicSettings
addOption, append, aria, aria, autofocus, clearOption, clone, css, dataAttribute, 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
-
FORCED_SWITCH
public static final java.lang.String FORCED_SWITCH
- See Also:
- Constant Field Values
-
SWITCH_OFF_LABEL
public static final java.lang.String SWITCH_OFF_LABEL
- See Also:
- Constant Field Values
-
SWITCH_OFF_ICON_SRC
public static final java.lang.String SWITCH_OFF_ICON_SRC
- See Also:
- Constant Field Values
-
SWITCH_ON_LABEL
public static final java.lang.String SWITCH_ON_LABEL
- See Also:
- Constant Field Values
-
SWITCH_ON_ICON_SRC
public static final java.lang.String SWITCH_ON_ICON_SRC
- See Also:
- Constant Field Values
-
WITHOUT_ICON
public static final java.lang.String WITHOUT_ICON
- See Also:
- Constant Field Values
-
-
Method Detail
-
getThis
protected SwitchSettings getThis()
Description copied from class:BasicSettingsReturns the exact type of the this reference.
It's a way to recover the type of thethisobject in a class hierarchy (cf. getThis "trick").- Overrides:
getThisin classBooleanSettings- Returns:
- The exact type of the this reference
-
withoutOnIcon
public SwitchSettings withoutOnIcon()
-
iconOff
public SwitchSettings iconOff(java.lang.String src, java.lang.String label)
-
iconOn
public SwitchSettings iconOn(java.lang.String src, java.lang.String label)
-
-