Class DefaultSearchFieldGroup
java.lang.Object
de.hybris.platform.cockpit.model.advancedsearch.impl.DefaultSearchFieldGroup
- All Implemented Interfaces:
SearchFieldGroup
Default
SearchFieldGroup implementation.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchField(SearchField field) Assigns the search fieldfieldto this group if it's not already assigned to this group or any of its sub groups.voidAssigns the groupgroupto this group if it's not already assigned to this group or any of its sub groups.Returns a list containing this group (if hidden) and all the hidden groups held by thisSearchFieldGroupand its sub groups.Returns all hiddensearch fieldsin thisSearchFieldGroupand its sub groups.Returns a list containing this group (if it has hidden fields and/or groups) and all the sub groups of this group and its sub groups, which contains hidden fields or groups.Returns a list containing this group and all the groups held by thisSearchFieldGroupand its sub groups.Returns allsearch fieldsin thisSearchFieldGroupand its sub groups.Returns a list containing this group (if visible) and all the visible groups held by thisSearchFieldGroupand its sub groups.Returns all visiblesearch fieldsin thisSearchFieldGroupand its sub groups.Returns all the hidden sub groups directly held by thisSearchFieldGroup.Returns all hiddensearch fieldsdirectly held by thisSearchFieldGroup.getLabel()Returns the label of this search field group.Returns this group's parent group.Returns a list containing all the sub groups of this group, which contains hidden fields or groups.Returns all the sub groups directly held by thisSearchFieldGroup.Returns allsearch fieldsdirectly held by thisSearchFieldGroup.Returns all the visible sub groups directly held by thisSearchFieldGroup.Returns all visiblesearch fieldsdirectly held by thisSearchFieldGroup.booleanReturns whether this group is visible or not i.e.voidSets the name of this group toname.voidSets this group's parent group toparent.voidsetSearchFieldGroups(List<? extends SearchFieldGroup> groups) Sets the sub groups of this group togroups.voidsetSearchFields(List<? extends SearchField> fields) Sets the search fields directly assigned to this group to the elements offields.
-
Constructor Details
-
DefaultSearchFieldGroup
Creates a newDefaultSearchFieldGroupinstance with the name set toname.- Parameters:
name- the name
-
-
Method Details
-
setLabel
Sets the name of this group toname.- Parameters:
name- the name
-
setSearchFields
Sets the search fields directly assigned to this group to the elements offields.- Parameters:
fields- the search fields to be directly assigned to this group- See Also:
-
setSearchFieldGroups
Sets the sub groups of this group togroups.- Parameters:
groups- groups to be contained in this group
-
addSearchField
Assigns the search fieldfieldto this group if it's not already assigned to this group or any of its sub groups.- Parameters:
field- the search field to assign to this group- See Also:
-
addSearchFieldGroup
Assigns the groupgroupto this group if it's not already assigned to this group or any of its sub groups.- Parameters:
group- the group to assign to this group
-
setParentSearchFieldGroup
Sets this group's parent group toparent.- Parameters:
parent- this group's parent group
-
getLabel
Description copied from interface:SearchFieldGroupReturns the label of this search field group.- Specified by:
getLabelin interfaceSearchFieldGroup- Returns:
- the label of this group
-
getParentSearchFieldGroup
Description copied from interface:SearchFieldGroupReturns this group's parent group.- Specified by:
getParentSearchFieldGroupin interfaceSearchFieldGroup- Returns:
- this group's parent group or
nullif this is the root group
-
getSearchFieldGroups
Description copied from interface:SearchFieldGroupReturns all the sub groups directly held by thisSearchFieldGroup.- Specified by:
getSearchFieldGroupsin interfaceSearchFieldGroup- Returns:
- the direct sub groups of this group
- See Also:
-
getSearchFields
Description copied from interface:SearchFieldGroupReturns allsearch fieldsdirectly held by thisSearchFieldGroup.- Specified by:
getSearchFieldsin interfaceSearchFieldGroup- Returns:
- all search fields assigned directly to this group
- See Also:
-
isVisible
public boolean isVisible()Description copied from interface:SearchFieldGroupReturns whether this group is visible or not i.e. if any of the fields held by this group or its sub groups are visible.- Specified by:
isVisiblein interfaceSearchFieldGroup- Returns:
trueif this group is visible,falseotherwise
-
getAllHiddenSearchFieldGroups
Description copied from interface:SearchFieldGroupReturns a list containing this group (if hidden) and all the hidden groups held by thisSearchFieldGroupand its sub groups.- Specified by:
getAllHiddenSearchFieldGroupsin interfaceSearchFieldGroup- Returns:
- the hidden sub groups of this
SearchFieldGroupand their sub groups - See Also:
-
getAllHiddenSearchFields
Description copied from interface:SearchFieldGroupReturns all hiddensearch fieldsin thisSearchFieldGroupand its sub groups.- Specified by:
getAllHiddenSearchFieldsin interfaceSearchFieldGroup- Returns:
- all hidden search fields assigned to this group or any of its sub groups
- See Also:
-
getAllSearchFieldGroups
Description copied from interface:SearchFieldGroupReturns a list containing this group and all the groups held by thisSearchFieldGroupand its sub groups.- Specified by:
getAllSearchFieldGroupsin interfaceSearchFieldGroup- Returns:
- the sub groups of this
SearchFieldGroupand their sub groups - See Also:
-
getAllSearchFields
Description copied from interface:SearchFieldGroupReturns allsearch fieldsin thisSearchFieldGroupand its sub groups.- Specified by:
getAllSearchFieldsin interfaceSearchFieldGroup- Returns:
- all search fields assigned to this group or any of its sub groups
-
getAllVisibleSearchFieldGroups
Description copied from interface:SearchFieldGroupReturns a list containing this group (if visible) and all the visible groups held by thisSearchFieldGroupand its sub groups.- Specified by:
getAllVisibleSearchFieldGroupsin interfaceSearchFieldGroup- Returns:
- the visible sub groups of this
SearchFieldGroupand their sub groups - See Also:
-
getAllVisibleSearchFields
Description copied from interface:SearchFieldGroupReturns all visiblesearch fieldsin thisSearchFieldGroupand its sub groups.- Specified by:
getAllVisibleSearchFieldsin interfaceSearchFieldGroup- Returns:
- all visible search fields assigned to this group or any of its sub groups
- See Also:
-
getHiddenSearchFieldGroups
Description copied from interface:SearchFieldGroupReturns all the hidden sub groups directly held by thisSearchFieldGroup.- Specified by:
getHiddenSearchFieldGroupsin interfaceSearchFieldGroup- Returns:
- the hidden sub groups directly held by this group
- See Also:
-
getHiddenSearchFields
Description copied from interface:SearchFieldGroupReturns all hiddensearch fieldsdirectly held by thisSearchFieldGroup.- Specified by:
getHiddenSearchFieldsin interfaceSearchFieldGroup- Returns:
- all hidden search fields assigned directly to this group
- See Also:
-
getVisibleSearchFieldGroups
Description copied from interface:SearchFieldGroupReturns all the visible sub groups directly held by thisSearchFieldGroup.- Specified by:
getVisibleSearchFieldGroupsin interfaceSearchFieldGroup- Returns:
- the visible sub groups directly held by this group
- See Also:
-
getVisibleSearchFields
Description copied from interface:SearchFieldGroupReturns all visiblesearch fieldsdirectly held by thisSearchFieldGroup.- Specified by:
getVisibleSearchFieldsin interfaceSearchFieldGroup- Returns:
- all visible search fields assigned directly to this group
- See Also:
-
getAllPartiallyVisibleGroups
Description copied from interface:SearchFieldGroupReturns a list containing this group (if it has hidden fields and/or groups) and all the sub groups of this group and its sub groups, which contains hidden fields or groups.- Specified by:
getAllPartiallyVisibleGroupsin interfaceSearchFieldGroup- Returns:
- the partially visible sub groups of this group i.e. all the groups which have hidden fields and/or sub groups
-
getPartiallyVisibleGroups
Description copied from interface:SearchFieldGroupReturns a list containing all the sub groups of this group, which contains hidden fields or groups.- Specified by:
getPartiallyVisibleGroupsin interfaceSearchFieldGroup- Returns:
- the partially visible sub groups of this group i.e. all the groups which have hidden fields and/or sub groups
-