Class DefaultSearchField

    • Constructor Summary

      Constructors 
      Constructor 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSearchField

        public 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.
        Parameters:
        name - name of this search field
        sortable - whether this search field supports sorting
    • Method Detail

      • getName

        public java.lang.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​(java.lang.String label)
      • getLabel

        public java.lang.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​(java.lang.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
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object