Class ColorSettings
- java.lang.Object
-
- com.jalios.jcms.taglib.settings.BasicSettings<T>
-
- com.jalios.jcms.taglib.settings.AbstractTextSettings<ColorSettings>
-
- com.jalios.jcms.taglib.settings.impl.ColorSettings
-
- All Implemented Interfaces:
ControlSettings<ColorSettings>,java.lang.Cloneable
public class ColorSettings extends AbstractTextSettings<ColorSettings>
Color Settings- Author:
- Alexis Fiers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classColorSettings.PickerOptions
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOLOR_PICKER_COLORS-
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 ColorSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorSettingscustomColorPickerOptions(java.util.Map<java.lang.String,java.lang.Object> options)Override all optionsColorSettingsdisplayDefaultSelectionPalette()java.lang.StringgetJSONColorPickerOptions(java.lang.String userLang)protected ColorSettingsgetThis()Returns the exact type of the this reference.
It's a way to recover the type of thethisobject in a class hierarchy (cf.ControlTypegetType()Returns theControlTyperelated to the currentControlSettingsimplementation.ColorSettingshideAfterPaletteSelect()ColorSettingshideButtons()ColorSettingshidePalette()ColorSettingsnumberOfColorsPerLineOnPalette(int colorsPerLine)ColorSettingspaletteColorsProperty(java.lang.String property)ColorSettingsshowPaletteOnly()ColorSettingsshowTransparency()-
Methods inherited from class com.jalios.jcms.taglib.settings.AbstractTextSettings
onChange
-
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, onFocusOut, placeholder, prepend, readonly, removeOption, require, resolveOptions, showLanguageChooser, sortSet, title, toStringArray, toStringArray, toStringArray, toStringArray, toStringArray, trigger, value
-
-
-
-
Method Detail
-
getType
public ControlType getType()
Description copied from interface:ControlSettingsReturns theControlTyperelated to the currentControlSettingsimplementation.- Returns:
ControlType
-
getThis
protected ColorSettings 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").- Specified by:
getThisin classBasicSettings<ColorSettings>- Returns:
- The exact type of the this reference
-
showPaletteOnly
public ColorSettings showPaletteOnly()
-
hideAfterPaletteSelect
public ColorSettings hideAfterPaletteSelect()
-
showTransparency
public ColorSettings showTransparency()
-
displayDefaultSelectionPalette
public ColorSettings displayDefaultSelectionPalette()
-
numberOfColorsPerLineOnPalette
public ColorSettings numberOfColorsPerLineOnPalette(int colorsPerLine)
-
hidePalette
public ColorSettings hidePalette()
-
hideButtons
public ColorSettings hideButtons()
-
paletteColorsProperty
public ColorSettings paletteColorsProperty(java.lang.String property)
-
customColorPickerOptions
public ColorSettings customColorPickerOptions(java.util.Map<java.lang.String,java.lang.Object> options)
Override all options- Parameters:
options-MapAny options available from spectrum library- Returns:
ColorSettings
-
getJSONColorPickerOptions
public java.lang.String getJSONColorPickerOptions(java.lang.String userLang)
-
-