Class DefaultSearchField

java.lang.Object
de.hybris.platform.cockpit.model.advancedsearch.impl.DefaultSearchField
All Implemented Interfaces:
SearchField

public class DefaultSearchField extends Object implements SearchField
Default SearchField implementation.
See Also:
  • Constructor Details

    • DefaultSearchField

      public DefaultSearchField(String name, boolean sortable)
      Creates a new DefaultSearchField instance with the name set to name and the sortable status set to sortable.
      Parameters:
      name - name of this search field
      sortable - whether this search field supports sorting
  • Method Details

    • getName

      public String getName()
      Description copied from interface: SearchField
      Returns the name of this field.
      Specified by:
      getName in interface SearchField
      Returns:
      name of this field
    • setLabel

      public void setLabel(String label)
    • getLabel

      public String getLabel()
      Description copied from interface: SearchField
      Returns the (localized) label of this field.
      Specified by:
      getLabel in interface SearchField
      Returns:
      label of this field
    • isSortable

      public boolean isSortable()
      Description copied from interface: SearchField
      Returns whether this field is sortable or not.
      Specified by:
      isSortable in interface SearchField
      Returns:
      true if this field is sortable, false otherwise
    • isVisible

      public boolean isVisible()
      Description copied from interface: SearchField
      Returns whether this field is visible or not.
      Specified by:
      isVisible in interface SearchField
      Returns:
      true if this field is visible, false otherwise
    • setName

      public void setName(String name)
      Sets the name of this search field to name.
      Parameters:
      name - the name of this search field
    • setVisible

      public void setVisible(boolean visible)
      Sets the visibility of this search field to visible.
      Parameters:
      visible - true means that this search field is set as visible, whereas false means invisible
    • setSortDisabled

      public void setSortDisabled(boolean sortDisabled)
      Sets whether sorting based on this search field should be disabled or not.
      Parameters:
      sortDisabled - true means that sorting by this search field is disabled i.e. not allowed, whereas true means that sorting is allowed if possible.
    • getGroup

      public SearchFieldGroup getGroup()
      Description copied from interface: SearchField
      Returns the group to which this search field has been assigned.
      Specified by:
      getGroup in interface SearchField
      Returns:
      the group which contains this search field
    • setGroup

      public void setGroup(SearchFieldGroup group)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object