|
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.AbstractCellSelectionModel
public abstract class AbstractCellSelectionModel
| Field Summary | |
|---|---|
protected SwingPropertyChangeSupport |
changeSupport
Used to messaged registered listeners. |
protected EventListenerList |
listenerList
List of listeners |
| Fields inherited from interface com.zfqjava.swing.CellSelectionModel |
|---|
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION |
| Constructor Summary | |
|---|---|
AbstractCellSelectionModel()
|
|
| Method Summary | |
|---|---|
void |
addCellSelectionListener(CellSelectionListener l)
Adds listener to the list of listeners that are notified each time the set of selected cells changes. |
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Supports reporting bound property changes. |
protected void |
fireValueChanged(CellSelectionEvent e)
Forwards the given notification event to all CellSelectionListeners that registered
themselves as listeners for this table model. |
CellSelectionListener[] |
getCellSelectionListeners()
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 |
removeCellSelectionListener(CellSelectionListener l)
Removes listener from the list of listeners that are notified each time the set of selected cells changes. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EventListenerList listenerList
protected SwingPropertyChangeSupport changeSupport
| Constructor Detail |
|---|
public AbstractCellSelectionModel()
| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener l)
CellSelectionModelA PropertyChangeEvent will get fired when the selection mode changes.
addPropertyChangeListener in interface CellSelectionModell - the PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener l)
CellSelectionModel
removePropertyChangeListener in interface CellSelectionModell - the PropertyChangeListener to be removed
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
PropertyChangeEvent to any registered
PropertyChangeListeners.
public void addCellSelectionListener(CellSelectionListener l)
CellSelectionModel
addCellSelectionListener in interface CellSelectionModell - the new listener to be addedpublic void removeCellSelectionListener(CellSelectionListener l)
CellSelectionModel
removeCellSelectionListener in interface CellSelectionModell - the listener to removepublic CellSelectionListener[] getCellSelectionListeners()
CellSelectionListeners
or an empty
array if no table model listeners are currently registeredaddCellSelectionListener(com.zfqjava.swing.event.CellSelectionListener),
removeCellSelectionListener(com.zfqjava.swing.event.CellSelectionListener)protected void fireValueChanged(CellSelectionEvent e)
CellSelectionListeners that registered
themselves as listeners for this table model.
e - the event to be forwardedaddCellSelectionListener(com.zfqjava.swing.event.CellSelectionListener),
TableModelEvent,
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:
CellSelectionListener[] tmls = (CellSelectionListener[])(m.getListeners(CellSelectionListener.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.EventListenergetCellSelectionListeners()
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||