|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.jeppers.grid.AbstractSelectionModel
A base for SelectionModel
that provides handling of listeners.
Field Summary | |
protected boolean |
isAdjusting
|
protected EventListenerList |
listenerList
List of event listeners |
Constructor Summary | |
AbstractSelectionModel()
|
Method Summary | |
void |
addSelectionModelListener(SelectionModelListener listener)
Add listener to model |
void |
fireSelectionChanged()
Notifies all SelectionModelListeners that
registered themselves as listeners for this SelectionModel
that the selection has changed |
void |
fireSelectionChanged(SelectionModelEvent e)
Forwards the given notification event to all SelectionModelListeners that registered
themselves as listeners for this SelectionModel. |
EventListener[] |
getListeners(Class listenerType)
Returns an array of all the listeners of the given type that were added to this model. |
boolean |
getValueIsAdjusting()
Returns true if the value is undergoing a series of changes. |
void |
removeSelectionModelListener(SelectionModelListener listener)
Remove listener from model |
void |
setValueIsAdjusting(boolean isAdjusting)
This property is true if upcoming changes to the value of the model should be considered a single event. |
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.SelectionModel |
clearSelection, getAnchorColumn, getAnchorRow, getFirstSelectedColumn, getFirstSelectedRow, getLastSelectedColumn, getLastSelectedRow, getLeadColumn, getLeadRow, isSelected, setAnchor, setLead, setSelectionRange |
Field Detail |
protected EventListenerList listenerList
protected boolean isAdjusting
Constructor Detail |
public AbstractSelectionModel()
Method Detail |
public void addSelectionModelListener(SelectionModelListener listener)
SelectionModel
addSelectionModelListener
in interface SelectionModel
public void removeSelectionModelListener(SelectionModelListener listener)
SelectionModel
removeSelectionModelListener
in interface SelectionModel
public EventListener[] getListeners(Class listenerType)
listenerType
notifications from this modelpublic boolean getValueIsAdjusting()
SelectionModel
getValueIsAdjusting
in interface SelectionModel
public void setValueIsAdjusting(boolean isAdjusting)
SelectionModel
setValueIsAdjusting
in interface SelectionModel
public void fireSelectionChanged(SelectionModelEvent e)
SelectionModelListeners
that registered
themselves as listeners for this SelectionModel.
e
- the event to be forwardedaddSelectionModelListener(net.sf.jeppers.grid.SelectionModelListener)
,
SelectionModelEvent
,
EventListenerList
public void fireSelectionChanged()
SelectionModelListeners
that
registered themselves as listeners for this SelectionModel
that the selection has changed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |