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 class
ColorSettings.PickerOptions
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COLOR_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 ColorSettings
customColorPickerOptions(java.util.Map<java.lang.String,java.lang.Object> options)
Override all optionsColorSettings
displayDefaultSelectionPalette()
java.lang.String
getJSONColorPickerOptions(java.lang.String userLang)
protected ColorSettings
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.ColorSettings
hideAfterPaletteSelect()
ColorSettings
hideButtons()
ColorSettings
hidePalette()
ColorSettings
numberOfColorsPerLineOnPalette(int colorsPerLine)
ColorSettings
paletteColorsProperty(java.lang.String property)
ColorSettings
showPaletteOnly()
ColorSettings
showTransparency()
-
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, 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:ControlSettings
Returns theControlType
related to the currentControlSettings
implementation.- Returns:
ControlType
-
getThis
protected ColorSettings 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<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
-Map
Any options available from spectrum library- Returns:
ColorSettings
-
getJSONColorPickerOptions
public java.lang.String getJSONColorPickerOptions(java.lang.String userLang)
-
-