|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.jeppers.grid.AbstractSpanModel
A base for SpanModel
that provides handling of listeners.
Field Summary | |
protected EventListenerList |
listenerList
List of event listeners |
Constructor Summary | |
AbstractSpanModel()
|
Method Summary | |
void |
addSpanModelListener(SpanModelListener listener)
Add listener to model |
void |
fireCellSpanAdded(CellSpan newSpan)
Notifies all SpanModelListeners that
registered themselves as listeners for this SpanModel
that a span was added |
void |
fireCellSpanRemoved(CellSpan removedSpan)
Notifies all SpanModelListeners that
registered themselves as listeners for this SpanModel
that a span was removed |
void |
fireCellSpanUpdated(int anchorRow,
int anchorColumn,
int oldRowCount,
int oldColumnCount,
int newRowCount,
int newColumnCount)
Notifies all SpanModelListeners that
registered themselves as listeners for this SpanModel
that a span was updated |
void |
fireSpanChanged(SpanModelEvent e)
Forwards the given notification event to all SpanModelListeners that registered
themselves as listeners for this SpanModel. |
EventListener[] |
getListeners(Class listenerType)
Returns an array of all the listeners of the given type that were added to this model. |
void |
removeSpanModelListener(SpanModelListener listener)
Remove listener from model |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jeppers.grid.SpanModel |
getSpanIterator, getSpanOver, isCellSpan |
Field Detail |
protected EventListenerList listenerList
Constructor Detail |
public AbstractSpanModel()
Method Detail |
public void addSpanModelListener(SpanModelListener listener)
addSpanModelListener
in interface SpanModel
public void removeSpanModelListener(SpanModelListener listener)
removeSpanModelListener
in interface SpanModel
public EventListener[] getListeners(Class listenerType)
listenerType
notifications from this modelpublic void fireSpanChanged(SpanModelEvent e)
SpanModelListeners
that registered
themselves as listeners for this SpanModel.
e
- the event to be forwardedaddSpanModelListener(net.sf.jeppers.grid.SpanModelListener)
,
SpanModelEvent
,
EventListenerList
public void fireCellSpanAdded(CellSpan newSpan)
SpanModelListeners
that
registered themselves as listeners for this SpanModel
that a span was added
public void fireCellSpanRemoved(CellSpan removedSpan)
SpanModelListeners
that
registered themselves as listeners for this SpanModel
that a span was removed
public void fireCellSpanUpdated(int anchorRow, int anchorColumn, int oldRowCount, int oldColumnCount, int newRowCount, int newColumnCount)
SpanModelListeners
that
registered themselves as listeners for this SpanModel
that a span was updated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |