Class NumberSettings
- java.lang.Object
-
- com.jalios.jcms.taglib.settings.BasicSettings<T>
-
- com.jalios.jcms.taglib.settings.AbstractTextSettings<NumberSettings>
-
- com.jalios.jcms.taglib.settings.impl.NumberSettings
-
- All Implemented Interfaces:
ControlSettings<NumberSettings>,java.lang.Cloneable
public class NumberSettings extends AbstractTextSettings<NumberSettings>
Number Settings- Author:
- Nicolas Dos Santos
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE-
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 NumberSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NumberSettingsgetThis()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.booleanisDouble()Check whether the number type is double.booleanisInteger()Check whether the number type is integer.booleanisLong()Check whether the number type is long.NumberSettingsnumberType(java.lang.Class<? extends java.lang.Number> clazz)Specify the Number type (A class that extends the class Number).voidresolveOptions(TypeFieldEntry tfe)Set options from the specifiedTypeFieldEntry.-
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, showLanguageChooser, sortSet, title, toStringArray, toStringArray, toStringArray, toStringArray, toStringArray, trigger, value
-
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public ControlType getType()
Description copied from interface:ControlSettingsReturns theControlTyperelated to the currentControlSettingsimplementation.- Returns:
ControlType
-
getThis
protected NumberSettings 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<NumberSettings>- Returns:
- The exact type of the this reference
-
resolveOptions
public void resolveOptions(TypeFieldEntry tfe)
Description copied from interface:ControlSettingsSet options from the specifiedTypeFieldEntry.- Specified by:
resolveOptionsin interfaceControlSettings<NumberSettings>- Overrides:
resolveOptionsin classBasicSettings<NumberSettings>- Parameters:
tfe-TypeFieldEntry
-
numberType
public NumberSettings numberType(java.lang.Class<? extends java.lang.Number> clazz)
Specify the Number type (A class that extends the class Number).- Parameters:
clazz- Class- Returns:
- a reference to this object - used to chain calls
-
isInteger
public boolean isInteger()
Check whether the number type is integer.- Returns:
- a reference to this object - used to chain calls
-
isDouble
public boolean isDouble()
Check whether the number type is double.- Returns:
- a reference to this object - used to chain calls
-
isLong
public boolean isLong()
Check whether the number type is long.- Returns:
- a reference to this object - used to chain calls
-
-