com.javadocking.event
Class DockingEventSupport

java.lang.Object
  extended by com.javadocking.event.DockingEventSupport

public class DockingEventSupport
extends java.lang.Object

A utility class that can be used by classes that have docking listeners attached to it. You can use an instance of this class as a member field and delegate docking event work to it.

Author:
Heidi Rakels.

Constructor Summary
DockingEventSupport()
           
 
Method Summary
 void addDockingListener(DockingListener listener)
          Adds a listener for docking events.
 void fireDockingChanged(DockingEvent dockingEvent)
          Notifies all listeners that have registered interest for notification on this event type.
 void fireDockingWillChange(DockingEvent dockingEvent)
          Notifies all listeners that have registered interest for notification on this event type.
 void removeDockingListener(DockingListener listener)
          Removes a listener for docking events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockingEventSupport

public DockingEventSupport()
Method Detail

addDockingListener

public void addDockingListener(DockingListener listener)
Adds a listener for docking events.

Parameters:
listener - A docking listener that will be notified when a dockable or child dock is added, moved or removed from a dock.

removeDockingListener

public void removeDockingListener(DockingListener listener)
Removes a listener for docking events.

Parameters:
listener - A docking listener to remove.

fireDockingWillChange

public void fireDockingWillChange(DockingEvent dockingEvent)
Notifies all listeners that have registered interest for notification on this event type.

Parameters:
dockingEvent - Gives more information about the origin dock, the destination dock, and the object whose docking state changed.

fireDockingChanged

public void fireDockingChanged(DockingEvent dockingEvent)
Notifies all listeners that have registered interest for notification on this event type.

Parameters:
dockingEvent - Gives more information about the origin dock, the destination dock, and the object whose docking state changed.