de.tkuhn.util.prefs.gui.event
Class PrefSelectionSupport

java.lang.Object
  extended by de.tkuhn.util.prefs.gui.event.PrefSelectionSupport
All Implemented Interfaces:
PrefSelectionListener, java.util.EventListener

public class PrefSelectionSupport
extends java.lang.Object
implements PrefSelectionListener

An Object helping to keep track of registered PrefSelectionListeners

Author:
Tilmann Kuhn

Constructor Summary
PrefSelectionSupport()
          Creates a new instance of PrefSelectionSupport
 
Method Summary
 void addPrefSelectionListener(PrefSelectionListener psl)
          Adds a PrefSelectionListener to this support's list of listeners.
 void fireValueChanged(java.lang.Object source, java.util.prefs.Preferences prefs)
          Issue a valueChanged at all registered PrefSelectionListeners with a PrefSelectionEvent constructed with the given values.
 void removePrefSelectionListener(PrefSelectionListener psl)
          Remove a PrefSelectionListener from this support't list of listeners.
 void valueChanged(PrefSelectionEvent pse)
          Issue a valueChanged at all registered PrefSelectionListeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefSelectionSupport

public PrefSelectionSupport()
Creates a new instance of PrefSelectionSupport

Method Detail

addPrefSelectionListener

public void addPrefSelectionListener(PrefSelectionListener psl)
Adds a PrefSelectionListener to this support's list of listeners.

Parameters:
psl - the listener to be added

removePrefSelectionListener

public void removePrefSelectionListener(PrefSelectionListener psl)
Remove a PrefSelectionListener from this support't list of listeners.

Parameters:
psl - the listener to be removed

valueChanged

public void valueChanged(PrefSelectionEvent pse)
Issue a valueChanged at all registered PrefSelectionListeners.

Specified by:
valueChanged in interface PrefSelectionListener
Parameters:
pse - the PrefSelectionEvent to be transmitted.

fireValueChanged

public void fireValueChanged(java.lang.Object source,
                             java.util.prefs.Preferences prefs)
Issue a valueChanged at all registered PrefSelectionListeners with a PrefSelectionEvent constructed with the given values.

Parameters:
source - the Object issuing the event
prefs - the new Preferences node being selected


Copyright © Tilmann Kuhn