Class SearchSettings
- java.lang.Object
-
- com.jalios.jcms.taglib.settings.BasicSettings<T>
-
- com.jalios.jcms.taglib.settings.AbstractTextSettings<SearchSettings>
-
- com.jalios.jcms.taglib.settings.impl.SearchSettings
-
- All Implemented Interfaces:
ControlSettings<SearchSettings>,java.lang.Cloneable
public class SearchSettings extends AbstractTextSettings<SearchSettings>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUTTON_DATA_ATTRIBUTES-
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 SearchSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchSettingsbuttonDataAttribute(java.lang.String dataName, java.lang.Object dataValue)Add a data attribute on the search button.
The method accepts the data name with or without the 'data-' prefix.SearchSettingsbuttonDataAttributes(java.util.Map<java.lang.String,java.lang.Object> dataAttributes)Add a map of data attributes on the search button.
The map key is the data attribute name, and the map value is the data attribute value.protected SearchSettingsgetThis()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.-
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
-
-
-
-
Field Detail
-
BUTTON_DATA_ATTRIBUTES
public static final java.lang.String BUTTON_DATA_ATTRIBUTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public ControlType getType()
Description copied from interface:ControlSettingsReturns theControlTyperelated to the currentControlSettingsimplementation.- Returns:
ControlType
-
getThis
protected SearchSettings 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<SearchSettings>- Returns:
- The exact type of the this reference
-
buttonDataAttributes
public SearchSettings buttonDataAttributes(java.util.Map<java.lang.String,java.lang.Object> dataAttributes)
Add a map of data attributes on the search button.
The map key is the data attribute name, and the map value is the data attribute value. Example:<% Map<String, Object> map = new HashMap<String>(); map.put("data-jalios-mydata1", "myvalue1"); map.put("jalios-mydata2", "myvalue2"); %> <jalios:control settings='new DefaultSettings().dataAttributes(map)' />- Parameters:
dataAttributes- Map of data attributes- Returns:
- a reference to this object - used to chain calls
- See Also:
BasicSettings.dataAttribute(String, Object)
-
buttonDataAttribute
public SearchSettings buttonDataAttribute(java.lang.String dataName, java.lang.Object dataValue)
Add a data attribute on the search button.
The method accepts the data name with or without the 'data-' prefix. Example:<jalios:control settings='new DefaultSettings().dataAttribute("data-jalios-mydata1", "myvalue1").dataAttribute("jalios-mydata2", "myvalue2")' />This will add data attributes as follows:data-jalios-mydata1="myvalue1" data-jalios-mydata2="myvalue2"
- Parameters:
dataName- data attribute namedataValue- data attribute value- Returns:
- a reference to this object - used to chain calls
-
-