be.ugent.caagt.swirl
Class DefaultGenericSelectionModel<E>
java.lang.Object
be.ugent.caagt.swirl.DefaultGenericSelectionModel<E>
- GenericSelectionModel<E>
public class DefaultGenericSelectionModel<E>
extends java.lang.Object
A default implementation of
GenericSelectionModel
. Uses
equals
to check whether the model has been changed whenever a new selection is set.
protected EventListenerList | listenerList - The list of listeners currently registered
|
listenerList
protected EventListenerList listenerList
The list of listeners currently registered
DefaultGenericSelectionModel
public DefaultGenericSelectionModel()
fireStateChanged
protected void fireStateChanged()
Notifies all listeners of a state change.
setSelection
public void setSelection(E element)
Set the current selection and notify any listeners in case of changes.
- setSelection in interface GenericSelectionModel<E>
element
- object which represents the selected
element, or null if the selection should be cleared