org.zkoss.pivot
Interface GroupHandler


public interface GroupHandler

A group handler groups different objects in a same group.

Author:
jumperchen

Method Summary
 java.lang.Object getGroup(java.lang.Object data)
          Returns a object that will be invoked by compareTo(Object) to identify whether the returned object is in the same group.
 

Method Detail

getGroup

java.lang.Object getGroup(java.lang.Object data)
Returns a object that will be invoked by compareTo(Object) to identify whether the returned object is in the same group.

For example,
there are two date objects("2010/10/08", "2010/12/21") and they return a same object called "2010", so these two date objects will be the same group("2010").

Parameters:
data - a data object


Copyright © 2012. All Rights Reserved.