it.amattioli.applicate.selection
Class SelectionSupport

Show UML class diagram
java.lang.Object
  extended by it.amattioli.applicate.selection.SelectionSupport

public class SelectionSupport
extends Object

Helper class that simplify SelectionListener registration and the notification of SelectionEvent to registered listeners.

Author:
andrea

Constructor Summary
SelectionSupport()
           
 
Method Summary
 void addSelectionListener(SelectionListener listener)
          Register a new listener so that it will be notified of selection events.
 void notifySelectionListeners(SelectionEvent event)
          Notify a new event to all the registered listeners.
 void removeSelectionListener(SelectionListener listener)
          De-register a previously registered listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionSupport

public SelectionSupport()
Method Detail

addSelectionListener

public void addSelectionListener(SelectionListener listener)
Register a new listener so that it will be notified of selection events.

Parameters:
listener - the listener to be registered

removeSelectionListener

public void removeSelectionListener(SelectionListener listener)
De-register a previously registered listener.

Parameters:
listener - the listener to be de-registered

notifySelectionListeners

public void notifySelectionListeners(SelectionEvent event)
Notify a new event to all the registered listeners.

Parameters:
event - the event to be notified


Copyright © 2011. All Rights Reserved.