Class SortInfoBean

  • All Implemented Interfaces:
    com.google.web.bindery.requestfactory.shared.BaseProxy, com.google.web.bindery.requestfactory.shared.ValueProxy, SortInfo, Serializable

    public class SortInfoBean
    extends Object
    implements Serializable, SortInfo
    Aggregates sort field and sort direction.
    See Also:
    Serialized Form
    • Constructor Detail

      • SortInfoBean

        public SortInfoBean()
        Creates a new sort field instance.
      • SortInfoBean

        public SortInfoBean​(String field,
                            SortDir sortDir)
        Creates a new sort info instance.
        Parameters:
        field - the sort field
        sortDir - the sort direction
      • SortInfoBean

        public SortInfoBean​(ValueProvider<?,​?> valueProvider,
                            SortDir sortDir)
        Creates a new sort info instance.
        Parameters:
        valueProvider - the value provider for the sort field
        sortDir - the sort direction
    • Method Detail

      • getSortField

        public String getSortField()
        Returns the sort field.
        Specified by:
        getSortField in interface SortInfo
        Returns:
        the sort field
      • setSortField

        public void setSortField​(String sortField)
        Sets the sort field.
        Specified by:
        setSortField in interface SortInfo
        Parameters:
        sortField - the sort field
      • getSortDir

        public SortDir getSortDir()
        Returns the sort direction.
        Specified by:
        getSortDir in interface SortInfo
        Returns:
        the sort direction
      • setSortDir

        public void setSortDir​(SortDir sortDir)
        Sets the sort direction.
        Specified by:
        setSortDir in interface SortInfo
        Parameters:
        sortDir - the sort direction