|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.vex.SelectionProviderImpl
Implementation of the SelectionProvider
interface. Also acts as
a selection event multiplexor: any events received on its
SelectionListener
interface are relayed to any registered listeners.
Constructor Summary | |
SelectionProviderImpl()
|
Method Summary | |
void |
addSelectionListener(SelectionListener listener)
Add the given SelectionChangeListener to be notified when
the current selection changes. |
void |
fireSelectionChanged(Selection selection)
Call selectionChanged on all registered listeners. |
void |
removeSelectionListener(SelectionListener listener)
Remove the given SelectionChangeListener from the
notification list. |
void |
selectionChanged(Selection selection)
Called by a selection provider when the current selection changes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SelectionProviderImpl()
Method Detail |
public void addSelectionListener(SelectionListener listener)
SelectionProvider
SelectionChangeListener
to be notified when
the current selection changes.
addSelectionListener
in interface SelectionProvider
listener
- SelectionChangeListener to add.net.sf.vex.SelectionProvider#addSelectionChangeListener(net.sf.vex.SelectionListener)
public void fireSelectionChanged(Selection selection)
selectionChanged
on all registered listeners.
selection
- Selection that has changed.public void removeSelectionListener(SelectionListener listener)
SelectionProvider
SelectionChangeListener
from the
notification list.
removeSelectionListener
in interface SelectionProvider
listener
- SelectionChangeListener to remove.net.sf.vex.SelectionProvider#removeSelectionChangeListener(net.sf.vex.SelectionListener)
public void selectionChanged(Selection selection)
SelectionListener
selectionChanged
in interface SelectionListener
selection
- the new Selection
.SelectionListener.selectionChanged(net.sf.vex.Selection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |