public class DefaultSearchField extends java.lang.Object implements SearchField
SearchField implementation.SearchField| Constructor and Description |
|---|
DefaultSearchField(java.lang.String name,
boolean sortable)
Creates a new
DefaultSearchField instance with the name set to name and the sortable status
set to sortable. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
SearchFieldGroup |
getGroup()
Returns the
group to which this search field has been assigned. |
java.lang.String |
getLabel()
Returns the (localized) label of this field.
|
java.lang.String |
getName()
Returns the name of this field.
|
int |
hashCode() |
boolean |
isSortable()
Returns whether this field is sortable or not.
|
boolean |
isVisible()
Returns whether this field is visible or not.
|
void |
setGroup(SearchFieldGroup group) |
void |
setLabel(java.lang.String label) |
void |
setName(java.lang.String name)
Sets the name of this search field to
name. |
void |
setSortDisabled(boolean sortDisabled)
Sets whether sorting based on this search field should be disabled or not.
|
void |
setVisible(boolean visible)
Sets the visibility of this search field to
visible. |
public DefaultSearchField(java.lang.String name,
boolean sortable)
DefaultSearchField instance with the name set to name and the sortable status
set to sortable.name - name of this search fieldsortable - whether this search field supports sortingpublic java.lang.String getName()
SearchFieldgetName in interface SearchFieldpublic void setLabel(java.lang.String label)
public java.lang.String getLabel()
SearchFieldgetLabel in interface SearchFieldpublic boolean isSortable()
SearchFieldisSortable in interface SearchFieldtrue if this field is sortable, false otherwisepublic boolean isVisible()
SearchFieldisVisible in interface SearchFieldtrue if this field is visible, false otherwisepublic void setName(java.lang.String name)
name.name - the name of this search fieldpublic void setVisible(boolean visible)
visible.visible - true means that this search field is set as visible, whereas false
means invisiblepublic void setSortDisabled(boolean sortDisabled)
sortDisabled - true means that sorting by this search field is disabled i.e. not allowed, whereas
true means that sorting is allowed if possible.public SearchFieldGroup getGroup()
SearchFieldgroup to which this search field has been assigned.getGroup in interface SearchFieldpublic void setGroup(SearchFieldGroup group)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.