Class DefaultSearchFieldGroup
- java.lang.Object
-
- de.hybris.platform.cockpit.model.advancedsearch.impl.DefaultSearchFieldGroup
-
- All Implemented Interfaces:
SearchFieldGroup
public class DefaultSearchFieldGroup extends java.lang.Object implements SearchFieldGroup
DefaultSearchFieldGroupimplementation.- See Also:
SearchFieldGroup
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchFieldGroup(java.lang.String name)Creates a newDefaultSearchFieldGroupinstance with the name set toname.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSearchField(SearchField field)Assigns the search fieldfieldto this group if it's not already assigned to this group or any of its sub groups.voidaddSearchFieldGroup(SearchFieldGroup group)Assigns the groupgroupto this group if it's not already assigned to this group or any of its sub groups.java.util.List<SearchFieldGroup>getAllHiddenSearchFieldGroups()Returns a list containing this group (if hidden) and all the hidden groups held by thisSearchFieldGroupand its sub groups.java.util.List<SearchField>getAllHiddenSearchFields()Returns all hiddensearch fieldsin thisSearchFieldGroupand its sub groups.java.util.List<SearchFieldGroup>getAllPartiallyVisibleGroups()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.java.util.List<SearchFieldGroup>getAllSearchFieldGroups()Returns a list containing this group and all the groups held by thisSearchFieldGroupand its sub groups.java.util.List<SearchField>getAllSearchFields()Returns allsearch fieldsin thisSearchFieldGroupand its sub groups.java.util.List<SearchFieldGroup>getAllVisibleSearchFieldGroups()Returns a list containing this group (if visible) and all the visible groups held by thisSearchFieldGroupand its sub groups.java.util.List<SearchField>getAllVisibleSearchFields()Returns all visiblesearch fieldsin thisSearchFieldGroupand its sub groups.java.util.List<SearchFieldGroup>getHiddenSearchFieldGroups()Returns all the hidden sub groups directly held by thisSearchFieldGroup.java.util.List<SearchField>getHiddenSearchFields()Returns all hiddensearch fieldsdirectly held by thisSearchFieldGroup.java.lang.StringgetLabel()Returns the label of this search field group.SearchFieldGroupgetParentSearchFieldGroup()Returns this group's parent group.java.util.List<SearchFieldGroup>getPartiallyVisibleGroups()Returns a list containing all the sub groups of this group, which contains hidden fields or groups.java.util.List<SearchFieldGroup>getSearchFieldGroups()Returns all the sub groups directly held by thisSearchFieldGroup.java.util.List<SearchField>getSearchFields()Returns allsearch fieldsdirectly held by thisSearchFieldGroup.java.util.List<SearchFieldGroup>getVisibleSearchFieldGroups()Returns all the visible sub groups directly held by thisSearchFieldGroup.java.util.List<SearchField>getVisibleSearchFields()Returns all visiblesearch fieldsdirectly held by thisSearchFieldGroup.booleanisVisible()Returns whether this group is visible or not i.e.voidsetLabel(java.lang.String name)Sets the name of this group toname.voidsetParentSearchFieldGroup(SearchFieldGroup parent)Sets this group's parent group toparent.voidsetSearchFieldGroups(java.util.List<? extends SearchFieldGroup> groups)Sets the sub groups of this group togroups.voidsetSearchFields(java.util.List<? extends SearchField> fields)Sets the search fields directly assigned to this group to the elements offields.
-
-
-
Constructor Detail
-
DefaultSearchFieldGroup
public DefaultSearchFieldGroup(java.lang.String name)
Creates a newDefaultSearchFieldGroupinstance with the name set toname.- Parameters:
name- the name
-
-
Method Detail
-
setLabel
public void setLabel(java.lang.String name)
Sets the name of this group toname.- Parameters:
name- the name
-
setSearchFields
public void setSearchFields(java.util.List<? extends SearchField> fields)
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:
addSearchField(SearchField)
-
setSearchFieldGroups
public void setSearchFieldGroups(java.util.List<? extends SearchFieldGroup> groups)
Sets the sub groups of this group togroups.- Parameters:
groups- groups to be contained in this group
-
addSearchField
public void addSearchField(SearchField field)
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:
setSearchFields(List)
-
addSearchFieldGroup
public void addSearchFieldGroup(SearchFieldGroup group)
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
public void setParentSearchFieldGroup(SearchFieldGroup parent)
Sets this group's parent group toparent.- Parameters:
parent- this group's parent group
-
getLabel
public java.lang.String getLabel()
Description copied from interface:SearchFieldGroupReturns the label of this search field group.- Specified by:
getLabelin interfaceSearchFieldGroup- Returns:
- the label of this group
-
getParentSearchFieldGroup
public SearchFieldGroup 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
public java.util.List<SearchFieldGroup> 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:
SearchFieldGroup.getVisibleSearchFieldGroups(),SearchFieldGroup.getHiddenSearchFieldGroups(),SearchFieldGroup.getAllSearchFieldGroups()
-
getSearchFields
public java.util.List<SearchField> 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:
SearchFieldGroup.getAllSearchFields(),SearchFieldGroup.getVisibleSearchFields(),SearchFieldGroup.getHiddenSearchFields()
-
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
public java.util.List<SearchFieldGroup> 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:
SearchFieldGroup.getAllSearchFieldGroups(),SearchFieldGroup.getAllVisibleSearchFieldGroups(),SearchFieldGroup.getHiddenSearchFieldGroups()
-
getAllHiddenSearchFields
public java.util.List<SearchField> 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:
SearchFieldGroup.getAllSearchFields(),SearchFieldGroup.getAllVisibleSearchFields(),SearchFieldGroup.getHiddenSearchFields()
-
getAllSearchFieldGroups
public java.util.List<SearchFieldGroup> 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:
SearchFieldGroup.getAllVisibleSearchFieldGroups(),SearchFieldGroup.getAllHiddenSearchFieldGroups()
-
getAllSearchFields
public java.util.List<SearchField> 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
public java.util.List<SearchFieldGroup> 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:
SearchFieldGroup.getAllSearchFieldGroups(),SearchFieldGroup.getAllHiddenSearchFieldGroups(),SearchFieldGroup.getVisibleSearchFieldGroups()
-
getAllVisibleSearchFields
public java.util.List<SearchField> 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:
SearchFieldGroup.getAllSearchFields(),SearchFieldGroup.getAllHiddenSearchFields(),SearchFieldGroup.getVisibleSearchFields()
-
getHiddenSearchFieldGroups
public java.util.List<SearchFieldGroup> 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:
SearchFieldGroup.getSearchFieldGroups(),SearchFieldGroup.getVisibleSearchFieldGroups(),SearchFieldGroup.getAllHiddenSearchFieldGroups()
-
getHiddenSearchFields
public java.util.List<SearchField> 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:
SearchFieldGroup.getAllHiddenSearchFields(),SearchFieldGroup.getSearchFields(),SearchFieldGroup.getVisibleSearchFields()
-
getVisibleSearchFieldGroups
public java.util.List<SearchFieldGroup> 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:
SearchFieldGroup.getSearchFieldGroups(),SearchFieldGroup.getHiddenSearchFieldGroups(),SearchFieldGroup.getAllVisibleSearchFieldGroups()
-
getVisibleSearchFields
public java.util.List<SearchField> 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:
SearchFieldGroup.getAllVisibleSearchFields(),SearchFieldGroup.getSearchFields(),SearchFieldGroup.getHiddenSearchFields()
-
getAllPartiallyVisibleGroups
public java.util.List<SearchFieldGroup> 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
public java.util.List<SearchFieldGroup> 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
-
-