org.cb.cardboard
Class AbstractCardBoardModel

java.lang.Object
  extended byorg.cb.cardboard.AbstractCardBoardModel
All Implemented Interfaces:
CardBoardModel
Direct Known Subclasses:
JSetClientBoardModel

public abstract class AbstractCardBoardModel
extends java.lang.Object
implements CardBoardModel

Abstract CardBoardModel implementation. Provides methods to register remove listeners.

Version:
$Id: AbstractCardBoardModel.java 83 2004-04-13 13:51:09Z jerome $
Author:
jerome@coffeebreaks.org - last modified by $LastModifiedBy$

Constructor Summary
AbstractCardBoardModel()
           
 
Method Summary
 void addBoardDataListener(CardBoardModelListener listener)
          Adds the specified listener to the instance's listener's list.
protected  void fireContentsChanged(CardBoardEvent event)
          Fire the specified contents changed event
protected  void fireIntervalAdded(CardBoardEvent event)
          Fire the specified interval added event
protected  void fireIntervalRemoved(CardBoardEvent event)
          Fire the specified interval removed event
 void removeBoardDataListener(CardBoardModelListener listener)
          Removes the specified listener to the instance's listener's list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cb.cardboard.CardBoardModel
getElementAt, getElements, getSize
 

Constructor Detail

AbstractCardBoardModel

public AbstractCardBoardModel()
Method Detail

addBoardDataListener

public void addBoardDataListener(CardBoardModelListener listener)
Adds the specified listener to the instance's listener's list.

Specified by:
addBoardDataListener in interface CardBoardModel
Parameters:
listener - the listener to add

removeBoardDataListener

public void removeBoardDataListener(CardBoardModelListener listener)
Removes the specified listener to the instance's listener's list.

Specified by:
removeBoardDataListener in interface CardBoardModel
Parameters:
listener - the listener to remove

fireContentsChanged

protected final void fireContentsChanged(CardBoardEvent event)
Fire the specified contents changed event

Parameters:
event -
See Also:
CardBoardModelListener.contentsChanged(org.cb.cardboard.CardBoardEvent)

fireIntervalAdded

protected final void fireIntervalAdded(CardBoardEvent event)
Fire the specified interval added event

Parameters:
event -
See Also:
CardBoardModelListener.intervalAdded(org.cb.cardboard.CardBoardEvent)

fireIntervalRemoved

protected final void fireIntervalRemoved(CardBoardEvent event)
Fire the specified interval removed event

Parameters:
event -
See Also:
CardBoardModelListener.intervalRemoved(org.cb.cardboard.CardBoardEvent)


Copyright © 2004 CoffeeBreaks. All Rights Reserved.