|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.swing.AbstractCellSpanModel
public abstract class AbstractCellSpanModel
| Field Summary | |
|---|---|
protected EventListenerList |
listenerList
List of listeners |
| Constructor Summary | |
|---|---|
AbstractCellSpanModel()
|
|
| Method Summary | |
|---|---|
void |
addCellSpanListener(CellSpanListener l)
Adds a listener to the list that is notified each time a change to the cell span model occurs. |
protected void |
fireCellMerged(Cell c)
Forwards the given notification event to all CellSpanListeners that registered
themselves as listeners for this cell span model. |
protected void |
fireCellSplitted(Cell c)
Forwards the given notification event to all CellSpanListeners that registered
themselves as listeners for this cell span model. |
CellSpanListener[] |
getCellSpanListeners()
Returns an array of all the table model listeners registered on this model. |
EventListener[] |
getListeners(Class listenerType)
Returns an array of all the objects currently registered as FooListeners
upon this AbstractTableModel. |
void |
removeCellSpanListener(CellSpanListener l)
Removes a listener from the list that is notified each time a change to the cell span model occurs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.zfqjava.swing.CellSpanModel |
|---|
getCellSpans, getCellSpans, getSpannedCells, hasCellSpans, hasCellSpans, isSpannedCell, merge, split |
| Field Detail |
|---|
protected EventListenerList listenerList
| Constructor Detail |
|---|
public AbstractCellSpanModel()
| Method Detail |
|---|
public void addCellSpanListener(CellSpanListener l)
CellSpanModel
addCellSpanListener in interface CellSpanModell - the CellSpanListenerpublic void removeCellSpanListener(CellSpanListener l)
CellSpanModel
removeCellSpanListener in interface CellSpanModell - the CellSpanListenerpublic CellSpanListener[] getCellSpanListeners()
CellSpanListeners
or an empty
array if no table model listeners are currently registeredaddCellSpanListener(com.zfqjava.swing.event.CellSpanListener),
removeCellSpanListener(com.zfqjava.swing.event.CellSpanListener)protected void fireCellMerged(Cell c)
CellSpanListeners that registered
themselves as listeners for this cell span model.
e - the event to be forwardedaddCellSpanListener(com.zfqjava.swing.event.CellSpanListener),
EventListenerListprotected void fireCellSplitted(Cell c)
CellSpanListeners that registered
themselves as listeners for this cell span model.
e - the event to be forwardedaddCellSpanListener(com.zfqjava.swing.event.CellSpanListener),
EventListenerListpublic EventListener[] getListeners(Class listenerType)
FooListeners
upon this AbstractTableModel.
FooListeners are registered using the
addFooListener method.
You can specify the listenerType argument
with a class literal,
such as
FooListener.class.
For example, you can query a
model m
for its table model listeners with the following code:
CellSpanListener[] tmls = (CellSpanListener[])(m.getListeners(CellSpanListener.class));If no such listeners exist, this method returns an empty array.
listenerType - the type of listeners requested; this parameter
should specify an interface that descends from
java.util.EventListener
FooListeners on this component,
or an empty array if no such
listeners have been added
ClassCastException - if listenerType
doesn't specify a class or interface that implements
java.util.EventListenergetCellSpanListeners()
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||