Class AbstractObjectGrouper

java.lang.Object
com.jidesoft.grouper.AbstractObjectGrouper
All Implemented Interfaces:
ObjectGrouper
Direct Known Subclasses:
DateGrouper, DefaultObjectGrouper

public abstract class AbstractObjectGrouper extends Object implements ObjectGrouper
The abstract implementation of ObjectGrouper. It just implements the getConverterContext() and getComparatorContext() methods.
  • Constructor Details

    • AbstractObjectGrouper

      public AbstractObjectGrouper()
  • Method Details

    • getConverterContext

      public ConverterContext getConverterContext()
      Description copied from interface: ObjectGrouper
      Gets the converter context for the value returned from this object grouper. This converter context will be used to find the ObjectConverter that will convert the value returned from ObjectGrouper.getValue(Object) method to String so that it can be displayed somewhere.
      Specified by:
      getConverterContext in interface ObjectGrouper
      Returns:
      the converter context.
    • getComparatorContext

      public ComparatorContext getComparatorContext()
      Description copied from interface: ObjectGrouper
      Gets the comparator context for the value returned from this object grouper. This comparator context will be used to find the ObjectComparator that will sort the values return from ObjectGrouper.getValue(Object) method whenever sorting is needed.
      Specified by:
      getComparatorContext in interface ObjectGrouper
      Returns:
      the converter context.