org.zkoss.zul
Class AbstractGroupsModel<D,G,F>

java.lang.Object
  extended by org.zkoss.zul.AbstractGroupsModel<D,G,F>
All Implemented Interfaces:
GroupsModel<D,G,F>
Direct Known Subclasses:
GroupsModelArray, SimpleGroupsModel

public abstract class AbstractGroupsModel<D,G,F>
extends Object
implements GroupsModel<D,G,F>

A skeletal implementation for GroupsModel.

Since:
3.5.0
Author:
tomyeh

Constructor Summary
AbstractGroupsModel()
           
 
Method Summary
 void addGroupsDataListener(GroupsDataListener l)
          Adds a listener to the groups that's notified each time a change to the data model occurs.
protected  void fireEvent(int type, int groupIndex, int index0, int index1)
          Fires a GroupsDataEvent for all registered listener (thru addGroupsDataListener(org.zkoss.zul.event.GroupsDataListener).
 void removeGroupsDataListener(GroupsDataListener l)
          Removes a listener from the groups that's notified each time a change to the data model occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zkoss.zul.GroupsModel
getChild, getChildCount, getGroup, getGroupCount, getGroupfoot, hasGroupfoot, isClose, setClose
 

Constructor Detail

AbstractGroupsModel

public AbstractGroupsModel()
Method Detail

fireEvent

protected void fireEvent(int type,
                         int groupIndex,
                         int index0,
                         int index1)
Fires a GroupsDataEvent for all registered listener (thru addGroupsDataListener(org.zkoss.zul.event.GroupsDataListener).

Note: you can invoke this method only in an event listener.


addGroupsDataListener

public void addGroupsDataListener(GroupsDataListener l)
Description copied from interface: GroupsModel
Adds a listener to the groups that's notified each time a change to the data model occurs.

Specified by:
addGroupsDataListener in interface GroupsModel<D,G,F>

removeGroupsDataListener

public void removeGroupsDataListener(GroupsDataListener l)
Description copied from interface: GroupsModel
Removes a listener from the groups that's notified each time a change to the data model occurs.

Specified by:
removeGroupsDataListener in interface GroupsModel<D,G,F>


Copyright © 2011. All Rights Reserved.