org.zkoss.zkdemo.test2.group
Class Test1ArrayGroupsModel

java.lang.Object
  extended by org.zkoss.zul.AbstractGroupsModel
      extended by org.zkoss.zul.ArrayGroupsModel
          extended by org.zkoss.zkdemo.test2.group.Test1ArrayGroupsModel
All Implemented Interfaces:
GroupsModel, GroupsModelExt

public class Test1ArrayGroupsModel
extends ArrayGroupsModel

Author:
Dennis.Chen

Field Summary
 
Fields inherited from class org.zkoss.zul.ArrayGroupsModel
_comparator, _data, _foots, _heads, _nativedata
 
Constructor Summary
Test1ArrayGroupsModel(java.lang.Object[] data, java.util.Comparator cmpr)
           
 
Method Summary
protected  java.lang.Object createGroupFoot(java.lang.Object[] groupdata, int index, int col)
          create group foot Object, default implementation return null, which means no foot .
protected  java.lang.Object createGroupHead(java.lang.Object[] groupdata, int index, int col)
          create group head Object, default implementation return first element of groupdata.
 
Methods inherited from class org.zkoss.zul.ArrayGroupsModel
getChild, getChildCount, getGroup, getGroupCount, getGroupfoot, group, hasGroupfoot, organizeGroup, sort, sortDataInGroupOrder, sortGroupData
 
Methods inherited from class org.zkoss.zul.AbstractGroupsModel
addGroupsDataListener, fireEvent, removeGroupsDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test1ArrayGroupsModel

public Test1ArrayGroupsModel(java.lang.Object[] data,
                             java.util.Comparator cmpr)
Method Detail

createGroupHead

protected java.lang.Object createGroupHead(java.lang.Object[] groupdata,
                                           int index,
                                           int col)
Description copied from class: ArrayGroupsModel
create group head Object, default implementation return first element of groupdata. you can override this method to return your Object.

Overrides:
createGroupHead in class ArrayGroupsModel
Parameters:
groupdata - data the already in a group.
index - group index
col - column to group

createGroupFoot

protected java.lang.Object createGroupFoot(java.lang.Object[] groupdata,
                                           int index,
                                           int col)
Description copied from class: ArrayGroupsModel
create group foot Object, default implementation return null, which means no foot . you can override this method to return your Object.

Overrides:
createGroupFoot in class ArrayGroupsModel
Parameters:
groupdata - data the already in a group.
index - group index
col - column to group


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo