org.apache.tapestry.contrib.table.model.common
Class AbstractTableDataModel

java.lang.Object
  extended by org.apache.tapestry.contrib.table.model.common.AbstractTableDataModel
All Implemented Interfaces:
ITableDataModel
Direct Known Subclasses:
SimpleListTableDataModel, SimpleSetTableDataModel

public abstract class AbstractTableDataModel
extends Object
implements ITableDataModel

An implementation of the listener support in the ITableDataModel interface

Version:
$Id: AbstractTableDataModel.java 243791 2004-02-19 17:38:13Z hlship $
Author:
mindbridge

Constructor Summary
AbstractTableDataModel()
           
 
Method Summary
 void addTableDataModelListener(ITableDataModelListener objListener)
          Method addTableDataModelListener Adds a listener that is notified when the data in the model is changed
protected  void fireTableDataModelEvent(CTableDataModelEvent objEvent)
          Method fireTableDataModelEvent.
 void removeTableDataModelListener(ITableDataModelListener objListener)
          Method removeTableDataModelListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.contrib.table.model.ITableDataModel
getRowCount, getRows
 

Constructor Detail

AbstractTableDataModel

public AbstractTableDataModel()
Method Detail

fireTableDataModelEvent

protected void fireTableDataModelEvent(CTableDataModelEvent objEvent)
Method fireTableDataModelEvent. Fires a change event to all listeners

Parameters:
objEvent - the event to pass to the listeners

addTableDataModelListener

public void addTableDataModelListener(ITableDataModelListener objListener)
Description copied from interface: ITableDataModel
Method addTableDataModelListener Adds a listener that is notified when the data in the model is changed

Specified by:
addTableDataModelListener in interface ITableDataModel
Parameters:
objListener - the listener to add
See Also:
ITableDataModel.addTableDataModelListener(ITableDataModelListener)

removeTableDataModelListener

public void removeTableDataModelListener(ITableDataModelListener objListener)
Description copied from interface: ITableDataModel
Method removeTableDataModelListener. Removes a listener that is notified when the data in the model is changed

Specified by:
removeTableDataModelListener in interface ITableDataModel
Parameters:
objListener - the listener to remove
See Also:
ITableDataModel.removeTableDataModelListener(ITableDataModelListener)