bibliothek.gui.dock.control
Class DockRegister.StationListener

java.lang.Object
  extended by bibliothek.gui.dock.event.DockStationAdapter
      extended by bibliothek.gui.dock.control.DockRegister.StationListener
All Implemented Interfaces:
DockStationListener
Enclosing class:
DockRegister

private class DockRegister.StationListener
extends DockStationAdapter

A listener to the controller of the enclosing register. Ensures that stations and dockables are known even while the tree of elements is changed.

Author:
Benjamin Sigg

Field Summary
private  java.util.Set<Dockable> addedOnPut
          a set of Dockable which were added during a drag and drop operation
private  java.util.Set<Dockable> removedOnPut
          a set of Dockables which were removed during a drag and drop operation
 
Constructor Summary
private DockRegister.StationListener()
           
 
Method Summary
private  void addDockable(Dockable dockable)
          Adds a Dockable either as station or as pure Dockable to this controller.
 void dockableAdding(DockStation station, Dockable dockable)
          Invoked before dockable is added to station.
 void dockableRemoved(DockStation station, Dockable dockable)
          Invoked after dockable has been removed from station.
 void dockableRemoving(DockStation station, Dockable dockable)
          Invoked before dockable is removed from station.
 void fire()
           
private  void removeDockable(Dockable dockable)
          Removes a Dockable either as station or as pure Dockable from this controller.
 
Methods inherited from class bibliothek.gui.dock.event.DockStationAdapter
dockableAdded, dockableVisibiltySet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

removedOnPut

private java.util.Set<Dockable> removedOnPut
a set of Dockables which were removed during a drag and drop operation


addedOnPut

private java.util.Set<Dockable> addedOnPut
a set of Dockable which were added during a drag and drop operation

Constructor Detail

DockRegister.StationListener

private DockRegister.StationListener()
Method Detail

fire

public void fire()

dockableAdding

public void dockableAdding(DockStation station,
                           Dockable dockable)
Description copied from interface: DockStationListener
Invoked before dockable is added to station.

Specified by:
dockableAdding in interface DockStationListener
Overrides:
dockableAdding in class DockStationAdapter
Parameters:
station - the station where the new child will be added
dockable - the new child

addDockable

private void addDockable(Dockable dockable)
Adds a Dockable either as station or as pure Dockable to this controller.

Parameters:
dockable - the Dockable to register

dockableRemoving

public void dockableRemoving(DockStation station,
                             Dockable dockable)
Description copied from interface: DockStationListener
Invoked before dockable is removed from station.

Specified by:
dockableRemoving in interface DockStationListener
Overrides:
dockableRemoving in class DockStationAdapter
Parameters:
station - the station where the old child will be removed
dockable - the old child

dockableRemoved

public void dockableRemoved(DockStation station,
                            Dockable dockable)
Description copied from interface: DockStationListener
Invoked after dockable has been removed from station.

Specified by:
dockableRemoved in interface DockStationListener
Overrides:
dockableRemoved in class DockStationAdapter
Parameters:
station - the station where the old child was removed
dockable - the old child

removeDockable

private void removeDockable(Dockable dockable)
Removes a Dockable either as station or as pure Dockable from this controller.

Parameters:
dockable - the Dockable to unregister