T
- Type of AbstractCategorySettings
public abstract class AbstractCategorySettings<T extends AbstractCategorySettings<T>> extends AbstractDataSettings<T>
ControlSettings
that supports categories.SelectorSettings.SelectorType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATEGORY_FILTER |
static java.lang.String |
DISPLAY_ROOTS |
static java.lang.String |
LIVE_CREATION |
static java.lang.String |
ORIGINAL_ROOT_CATEGORY
If displayRoot == false, we must display the children categories.
|
static java.lang.String |
ROOT_CATEGORIES |
static java.lang.String |
SEARCH |
static java.lang.String |
SELECTABLE |
static java.lang.String |
TREE |
DATA_CLASS
ENUM_LABEL_APPENDS, ENUM_LABEL_PREPENDS, ENUM_LABELS, ENUM_VALUES, INLINE, MULTIPLE, REQUIRED, SELECT_ITEM_EMPTY_VALUE, SELECTOR_TYPE
APPEND, AUTOFOCUS, CLEAR_BUTTON, CSS, DATA_ATTR_PREFIX, DATA_ATTRIBUTES, DISABLED, HIDE_CLEAR_BUTTON, HTML_ATTRIBUTES, ID, LANGUAGE_CHOOSER, MAX_LENGTH, NAME, PLACEHOLDER, PREPEND, READONLY, TRIGGER_ACTION, TRIGGER_EVENT, VALUE
Constructor and Description |
---|
AbstractCategorySettings() |
Modifier and Type | Method and Description |
---|---|
T |
clone()
Clone the current ControlSettings.
|
T |
disableLiveCreation()
Disable the category creation proposal if it does not exist.
|
T |
displayRoots(boolean displayRoots)
Whether the root categories are displayed or not.
|
T |
filter(CategoryFilter filter)
Set the
CategoryFilter in order to filter the categories to display. |
T |
filter(java.lang.String filter)
Set the filter as
String in order to filter the categories to display.The filter parameter accepts one of the names corresponding to the CategoryFilter enum constants.The filter parameter can be in lower case or upper case. |
protected java.lang.String |
getChooserName()
Chooser name used by the databroker when there is a click event in the chooser button.
|
protected java.lang.String |
getChooserOption(java.util.Map<java.lang.String,java.lang.String[]> customOptionMap)
Options used by the databroker when there is a click event in the chooser button.
|
java.lang.Class<? extends Data> |
getDataClass()
Data class supported by the current
ControlSettings |
<V> V |
getOption(java.lang.String optionName)
Returns the value of the specified option.
|
ControlType |
getType()
Returns the
ControlType related to the current ControlSettings implementation. |
void |
resolveOptions(TypeFieldEntry tfe)
Set options from the specified
TypeFieldEntry . |
Category[] |
resolveRootCategories()
Returns the categories to display according to the 'displayRoots' attribute is true or false.
|
T |
root(Category[] categories)
Set the Root categories.
|
T |
root(Category category,
Category... otherCategories)
Set the Root categories.
|
T |
root(java.util.Collection<Category> categories)
Set the Root categories.
|
T |
root(java.lang.String[] categoryIds)
Set the IDs of root categories.
|
T |
root(java.lang.String categoryId,
java.lang.String... otherCategoryIds)
Set the Root categories.
|
T |
uncheckSelectable()
Do not check if categories are selectable.
|
addAcChooserOption, addChooserOption, getAcChooserName, getAcChooserOption, getChooserIcon, getChooserTitle, popupHeight, popupWidth, superGetOption, useCurrentWorkspace, workspace, workspace
checkbox, chooser, disableInline, enumLabelAppends, enumLabelAppends, enumLabelAppends, enumLabelPreprends, enumLabelPreprends, enumLabelPreprends, enumLabels, enumLabels, enumLabels, enumValues, enumValues, enumValues, inline, multiple, radio, required, select, selectorType, single
addOption, append, autofocus, clearOption, css, dataAttribute, dataAttributes, disable, getOptionNames, getThis, htmlAttributes, htmlAttributes, id, isChannelReady, maxLength, merge, name, onChange, onFocusOut, placeholder, prepend, readonly, removeOption, require, showLanguageChooser, sortSet, toStringArray, toStringArray, toStringArray, toStringArray, toStringArray, trigger, value
public static final java.lang.String ROOT_CATEGORIES
public static final java.lang.String DISPLAY_ROOTS
public static final java.lang.String CATEGORY_FILTER
public static final java.lang.String SELECTABLE
public static final java.lang.String LIVE_CREATION
public static final java.lang.String TREE
public static final java.lang.String SEARCH
public static final java.lang.String ORIGINAL_ROOT_CATEGORY
public ControlType getType()
ControlSettings
ControlType
related to the current ControlSettings
implementation.ControlType
public java.lang.Class<? extends Data> getDataClass()
AbstractDataSettings
ControlSettings
getDataClass
in class AbstractDataSettings<T extends AbstractCategorySettings<T>>
Data
classpublic <V> V getOption(java.lang.String optionName)
ControlSettings
getOption
in interface ControlSettings<T extends AbstractCategorySettings<T>>
getOption
in class AbstractDataSettings<T extends AbstractCategorySettings<T>>
optionName
- Option namepublic void resolveOptions(TypeFieldEntry tfe)
ControlSettings
TypeFieldEntry
.resolveOptions
in interface ControlSettings<T extends AbstractCategorySettings<T>>
resolveOptions
in class SelectorSettings<T extends AbstractCategorySettings<T>>
tfe
- TypeFieldEntry
protected java.lang.String getChooserName()
AbstractChooserSettings
getChooserName
in class AbstractChooserSettings<T extends AbstractCategorySettings<T>>
protected java.lang.String getChooserOption(java.util.Map<java.lang.String,java.lang.String[]> customOptionMap)
AbstractChooserSettings
getChooserOption
in class AbstractDataSettings<T extends AbstractCategorySettings<T>>
customOptionMap
- Extra chooser options forwarded by the option ChooserConstants.EXTRA_CHOOSER_OPTION
and appended to the query stringString
representing the options as query stringpublic T clone() throws java.lang.CloneNotSupportedException
ControlSettings
clone
in interface ControlSettings<T extends AbstractCategorySettings<T>>
clone
in class BasicSettings<T extends AbstractCategorySettings<T>>
java.lang.CloneNotSupportedException
public T root(java.lang.String[] categoryIds)
categoryIds
- Root category IDspublic T root(Category[] categories)
categories
- array of Category
representing the Root categoriesroot(String[])
public T root(java.util.Collection<Category> categories)
categories
- Collection of Category
representing the Root categoriesroot(Category[])
public T root(Category category, Category... otherCategories)
category
- The first root categoryotherCategories
- The other root Categoriesroot(String[])
public T root(java.lang.String categoryId, java.lang.String... otherCategoryIds)
categoryId
- The first root category IDotherCategoryIds
- The other root Category IDsroot(String[])
public T displayRoots(boolean displayRoots)
displayRoots
- true
to display the root categories, instead false
public T filter(CategoryFilter filter)
CategoryFilter
in order to filter the categories to display.filter
- CategoryFilter
CategoryFilter
public T filter(java.lang.String filter)
String
in order to filter the categories to display.filter
parameter accepts one of the names corresponding to the CategoryFilter
enum constants.filter
parameter can be in lower case or upper case.filter
- the name of the CategoryFilter
enum constantCategoryFilter
public T uncheckSelectable()
public T disableLiveCreation()
Copyright © 2001-2018 Jalios SA. All Rights Reserved.