Class DefaultSearchField
java.lang.Object
de.hybris.platform.cockpit.model.advancedsearch.impl.DefaultSearchField
- All Implemented Interfaces:
SearchField
Default
SearchField implementation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSearchField(String name, boolean sortable) Creates a newDefaultSearchFieldinstance with the name set tonameand the sortable status set tosortable. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetGroup()Returns thegroupto which this search field has been assigned.getLabel()Returns the (localized) label of this field.getName()Returns the name of this field.inthashCode()booleanReturns whether this field is sortable or not.booleanReturns whether this field is visible or not.voidsetGroup(SearchFieldGroup group) voidvoidSets the name of this search field toname.voidsetSortDisabled(boolean sortDisabled) Sets whether sorting based on this search field should be disabled or not.voidsetVisible(boolean visible) Sets the visibility of this search field tovisible.
-
Constructor Details
-
DefaultSearchField
Creates a newDefaultSearchFieldinstance with the name set tonameand the sortable status set tosortable.- Parameters:
name- name of this search fieldsortable- whether this search field supports sorting
-
-
Method Details
-
getName
Description copied from interface:SearchFieldReturns the name of this field.- Specified by:
getNamein interfaceSearchField- Returns:
- name of this field
-
setLabel
-
getLabel
Description copied from interface:SearchFieldReturns the (localized) label of this field.- Specified by:
getLabelin interfaceSearchField- Returns:
- label of this field
-
isSortable
public boolean isSortable()Description copied from interface:SearchFieldReturns whether this field is sortable or not.- Specified by:
isSortablein interfaceSearchField- Returns:
trueif this field is sortable,falseotherwise
-
isVisible
public boolean isVisible()Description copied from interface:SearchFieldReturns whether this field is visible or not.- Specified by:
isVisiblein interfaceSearchField- Returns:
trueif this field is visible,falseotherwise
-
setName
Sets the name of this search field toname.- Parameters:
name- the name of this search field
-
setVisible
public void setVisible(boolean visible) Sets the visibility of this search field tovisible.- Parameters:
visible-truemeans that this search field is set as visible, whereasfalsemeans invisible
-
setSortDisabled
public void setSortDisabled(boolean sortDisabled) Sets whether sorting based on this search field should be disabled or not.- Parameters:
sortDisabled-truemeans that sorting by this search field is disabled i.e. not allowed, whereastruemeans that sorting is allowed if possible.
-
getGroup
Description copied from interface:SearchFieldReturns thegroupto which this search field has been assigned.- Specified by:
getGroupin interfaceSearchField- Returns:
- the group which contains this search field
-
setGroup
-
hashCode
public int hashCode() -
equals
-