Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.span
Class AbstractSpanModel

java.lang.Object
  extended by com.sciapp.table.span.AbstractSpanModel
All Implemented Interfaces:
SpanModel
Direct Known Subclasses:
DefaultSpanModel

public abstract class AbstractSpanModel
extends Object
implements SpanModel

AbstractSpanModel provides methods for notifying its listeners.


Field Summary
protected  EventListenerList listenerList
          the list of SpanModelListeners.
 
Constructor Summary
AbstractSpanModel()
          Constructs an AbstractSpanModel.
 
Method Summary
 void addSpanModelListener(SpanModelListener l)
          Adds a SpanModelListener that is notified each time a cell merge or split occurs.
 void fireSpanCellDeleted(CellSpan cellSpan)
          Notifies listeners that a cell span has been removed.
 void fireSpanCellInserted(CellSpan cellSpan)
          Notifies listeners that a cell span has been inserted.
 void fireSpanCellsUpdated(CellSpan cellSpan)
          Notifies listeners that a table's area defined by cellSpan has been updated.
 void fireSpanChanged(SpanModelEvent e)
          Forward the given notification event to all SpanModelListener that registered themselves as listeners for this span model.
 void fireSpanDataChanged()
          Notifies listeners that the table's cell spans have been updated.
 void removeSpanModelListener(SpanModelListener l)
          Removes a SpanModelListener that is notified each time a cell merge or split occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sciapp.table.span.SpanModel
getCellSpanAt
 

Field Detail

listenerList

protected EventListenerList listenerList
the list of SpanModelListeners.

Constructor Detail

AbstractSpanModel

public AbstractSpanModel()
Constructs an AbstractSpanModel.

Method Detail

addSpanModelListener

public void addSpanModelListener(SpanModelListener l)
Adds a SpanModelListener that is notified each time a cell merge or split occurs.

Specified by:
addSpanModelListener in interface SpanModel
Parameters:
l - the SpanModelListener to add

fireSpanCellDeleted

public void fireSpanCellDeleted(CellSpan cellSpan)
Notifies listeners that a cell span has been removed.

Parameters:
cellSpan - the cell's span.
See Also:
SpanModelEvent

fireSpanCellInserted

public void fireSpanCellInserted(CellSpan cellSpan)
Notifies listeners that a cell span has been inserted.

Parameters:
cellSpan - the cell's span.
See Also:
SpanModelEvent

fireSpanCellsUpdated

public void fireSpanCellsUpdated(CellSpan cellSpan)
Notifies listeners that a table's area defined by cellSpan has been updated.

Parameters:
cellSpan - the cell's span.
See Also:
SpanModelEvent

fireSpanChanged

public void fireSpanChanged(SpanModelEvent e)
Forward the given notification event to all SpanModelListener that registered themselves as listeners for this span model.

Parameters:
e - the spanModel event.
See Also:
SpanModelEvent

fireSpanDataChanged

public void fireSpanDataChanged()
Notifies listeners that the table's cell spans have been updated.

See Also:
SpanModelEvent

removeSpanModelListener

public void removeSpanModelListener(SpanModelListener l)
Removes a SpanModelListener that is notified each time a cell merge or split occurs.

Specified by:
removeSpanModelListener in interface SpanModel
Parameters:
l - the SpanModelListener to remove

Copyright © 2005 Scientific Applications. All Rights Reserved.