org.zkoss.zul
Class AbstractGroupsModel

java.lang.Object
  extended by org.zkoss.zul.AbstractGroupsModel
All Implemented Interfaces:
GroupsModel
Direct Known Subclasses:
ArrayGroupsModel, SimpleGroupsModel

public abstract class AbstractGroupsModel
extends java.lang.Object
implements GroupsModel

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

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


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