Class GroupSettings
- java.lang.Object
-
- com.jalios.jcms.taglib.settings.BasicSettings<T>
-
- com.jalios.jcms.taglib.settings.SelectorSettings<T>
-
- com.jalios.jcms.taglib.settings.AbstractChooserSettings<T>
-
- com.jalios.jcms.taglib.settings.AbstractDataSettings<GroupSettings>
-
- com.jalios.jcms.taglib.settings.impl.GroupSettings
-
- All Implemented Interfaces:
ControlSettings<GroupSettings>,java.lang.Cloneable
public class GroupSettings extends AbstractDataSettings<GroupSettings>
Group Settings.- Author:
- Nicolas Dos Santos
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupSettings.MemberFilterEnumeration of Member filters.-
Nested classes/interfaces inherited from class com.jalios.jcms.taglib.settings.SelectorSettings
SelectorSettings.SegmentedType, SelectorSettings.SelectMode, SelectorSettings.SelectorType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFILTERstatic java.lang.StringGROUP-
Fields inherited from class com.jalios.jcms.taglib.settings.AbstractDataSettings
DATA_CLASS
-
Fields inherited from class com.jalios.jcms.taglib.settings.SelectorSettings
ENABLE_SEARCH, ENUM_DATA_ATTRIBUTES, ENUM_LABEL_APPENDS, ENUM_LABEL_PREPENDS, ENUM_LABELS, ENUM_VALUES, INLINE, MULTIPLE, REQUIRED, SEGMENTED_TYPE, SEGMENTED_TYPE_DEFAULT, SELECT_ITEM_EMPTY_VALUE, SELECT_ITEM_EMPTY_VALUE_LABEL, SELECTOR_TYPE, WRAPPER_CSS
-
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, TITLE, TRIGGER_ACTION, TRIGGER_EVENT, VALUE
-
-
Constructor Summary
Constructors Constructor Description GroupSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupSettingsfilter(GroupSettings.MemberFilter filter, GroupSettings.MemberFilter... otherFilters)Specify theGroupSettings.MemberFilters to filter the groups according to certain criteria associated with members (in database, admin account, ...).GroupSettingsfilter(java.lang.String filter, java.lang.String... otherFilters)Specify theGroupSettings.MemberFilters to filter the groups according to certain criteria associated with members (in database, admin account, ...).
The String in parameter are resolved withGroupSettings.MemberFilter.getFilter(String).protected java.lang.StringgetChooserName()Chooser name used by the databroker when there is a click event in the chooser button.protected java.lang.StringgetChooserOption(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 currentControlSettingsprotected GroupSettingsgetThis()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.GroupSettingsgroup(Group[] groups)Specify groups to filter on these groups.GroupSettingsgroup(Group group, Group... otherGroups)Specify groups to filter on these groups.GroupSettingsgroup(java.lang.String[] groupIds)SpecifyGroupIDs to filter on these groups.GroupSettingsgroup(java.lang.String groupId, java.lang.String... otherGroupIds)SpecifyGroupIDs to filter on these groups.GroupSettingsgroup(java.util.Collection<Group> groups)Specify groups to filter on these groups.voidresolveOptions(TypeFieldEntry tfe)Set options from the specifiedTypeFieldEntry.-
Methods inherited from class com.jalios.jcms.taglib.settings.AbstractDataSettings
getOption
-
Methods inherited from class com.jalios.jcms.taglib.settings.AbstractChooserSettings
addAcChooserOption, addChooserOption, getAcChooserName, getAcChooserOption, getChooserIcon, getChooserTitle, popupHeight, popupWidth, superGetOption, useCurrentWorkspace, workspace, workspace
-
Methods inherited from class com.jalios.jcms.taglib.settings.SelectorSettings
checkbox, chooser, disableInline, emptyValueLabel, enumDataAttribute, enumLabelAppends, enumLabelAppends, enumLabelAppends, enumLabelPreprends, enumLabelPreprends, enumLabelPreprends, enumLabels, enumLabels, enumLabels, enumValues, enumValues, enumValues, inline, multiple, radio, required, segmented, select, select, selectorType, single, wrapperCss
-
Methods inherited from class com.jalios.jcms.taglib.settings.BasicSettings
addOption, append, aria, aria, autofocus, clearOption, clone, css, dataAttribute, dataAttribute, dataAttributes, disable, getOptionNames, htmlAttributes, htmlAttributes, id, isChannelReady, maxLength, merge, name, onChange, onFocusOut, placeholder, prepend, readonly, removeOption, require, showLanguageChooser, sortSet, title, toStringArray, toStringArray, toStringArray, toStringArray, toStringArray, trigger, value
-
-
-
-
Field Detail
-
GROUP
public static final java.lang.String GROUP
- See Also:
- Constant Field Values
-
FILTER
public static final java.lang.String FILTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public ControlType getType()
Description copied from interface:ControlSettingsReturns theControlTyperelated to the currentControlSettingsimplementation.- Returns:
ControlType
-
getThis
protected GroupSettings 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<GroupSettings>- Returns:
- The exact type of the this reference
-
getDataClass
public java.lang.Class<? extends Data> getDataClass()
Description copied from class:AbstractDataSettingsData class supported by the currentControlSettings- Specified by:
getDataClassin classAbstractDataSettings<GroupSettings>- Returns:
- The
Dataclass
-
resolveOptions
public void resolveOptions(TypeFieldEntry tfe)
Description copied from interface:ControlSettingsSet options from the specifiedTypeFieldEntry.- Specified by:
resolveOptionsin interfaceControlSettings<GroupSettings>- Overrides:
resolveOptionsin classSelectorSettings<GroupSettings>- Parameters:
tfe-TypeFieldEntry
-
getChooserName
protected java.lang.String getChooserName()
Description copied from class:AbstractChooserSettingsChooser name used by the databroker when there is a click event in the chooser button.- Specified by:
getChooserNamein classAbstractChooserSettings<GroupSettings>- Returns:
- The chooser name
- See Also:
- "/js/jalios/core/jalios-widget-chooser.js"
-
getChooserOption
protected java.lang.String getChooserOption(java.util.Map<java.lang.String,java.lang.String[]> customOptionMap)
Description copied from class:AbstractChooserSettingsOptions used by the databroker when there is a click event in the chooser button.- Overrides:
getChooserOptionin classAbstractDataSettings<GroupSettings>- Parameters:
customOptionMap- Extra chooser options forwarded by the optionChooserConstants.EXTRA_CHOOSER_OPTIONand appended to the query string- Returns:
Stringrepresenting the options as query string
-
group
public GroupSettings group(java.lang.String[] groupIds)
SpecifyGroupIDs to filter on these groups.- Parameters:
groupIds- Group IDs- Returns:
- a reference to this object - used to chain calls
-
group
public GroupSettings group(Group[] groups)
Specify groups to filter on these groups.- Parameters:
groups- Array ofGroupobjects- Returns:
- a reference to this object - used to chain calls
-
group
public GroupSettings group(java.util.Collection<Group> groups)
Specify groups to filter on these groups.- Parameters:
groups- Collection ofGroupobjects- Returns:
- a reference to this object - used to chain calls
-
group
public GroupSettings group(Group group, Group... otherGroups)
Specify groups to filter on these groups.- Parameters:
group- the first groupotherGroups- The other groups- Returns:
- a reference to this object - used to chain calls
-
group
public GroupSettings group(java.lang.String groupId, java.lang.String... otherGroupIds)
SpecifyGroupIDs to filter on these groups.
-
filter
public GroupSettings filter(GroupSettings.MemberFilter filter, GroupSettings.MemberFilter... otherFilters)
Specify theGroupSettings.MemberFilters to filter the groups according to certain criteria associated with members (in database, admin account, ...).- Parameters:
filter- the firstGroupSettings.MemberFilterobjectotherFilters- The otherGroupSettings.MemberFilterobjects- Returns:
- a reference to this object - used to chain calls
-
filter
public GroupSettings filter(java.lang.String filter, java.lang.String... otherFilters)
Specify theGroupSettings.MemberFilters to filter the groups according to certain criteria associated with members (in database, admin account, ...).
The String in parameter are resolved withGroupSettings.MemberFilter.getFilter(String).- Parameters:
filter- the first filterotherFilters- the other filter- Returns:
- a reference to this object - used to chain calls
-
-