bibliothek.gui.dock.event
Class DockFrontendAdapter

java.lang.Object
  extended by bibliothek.gui.dock.event.DockFrontendAdapter
All Implemented Interfaces:
DockFrontendListener

public abstract class DockFrontendAdapter
extends Object
implements DockFrontendListener

An class implementing all methods of DockFrontendListener, but not doing anything inside these methodes.

Author:
Benjamin Sigg

Constructor Summary
DockFrontendAdapter()
           
 
Method Summary
 void added(DockFrontend frontend, Dockable dockable)
          Informs this listener that an additional dockable has been added to the list of known Dockables of frontend.
 void deleted(DockFrontend frontend, String name)
          Invoked if a setting was deleted.
 void hidden(DockFrontend fronend, Dockable dockable)
          Invoked if a Dockable was made invisible.
 void hideable(DockFrontend frontend, Dockable dockable, boolean hideable)
          Called when the hideable-state of dockable changes.
 void loaded(DockFrontend frontend, String name)
          Invoked if a new setting was loaded.
 void read(DockFrontend frontend, String name)
          Called when a setting was read.
 void removed(DockFrontend frontend, Dockable dockable)
          Informs this listener that dockable has been removed from the list of known Dockables of frontend.
 void saved(DockFrontend frontend, String name)
          Invoked if the current setting was saved with the name name.
 void shown(DockFrontend frontend, Dockable dockable)
          Invoked if a Dockable was made visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockFrontendAdapter

public DockFrontendAdapter()
Method Detail

added

public void added(DockFrontend frontend,
                  Dockable dockable)
Description copied from interface: DockFrontendListener
Informs this listener that an additional dockable has been added to the list of known Dockables of frontend.

Specified by:
added in interface DockFrontendListener
Parameters:
frontend - the source of this call
dockable - the new element

deleted

public void deleted(DockFrontend frontend,
                    String name)
Description copied from interface: DockFrontendListener
Invoked if a setting was deleted.

Specified by:
deleted in interface DockFrontendListener
Parameters:
frontend - the invoker
name - the name of the deleted setting

hidden

public void hidden(DockFrontend fronend,
                   Dockable dockable)
Description copied from interface: DockFrontendListener
Invoked if a Dockable was made invisible. This includes Dockables which are not registered in frontend, but known in the DockController.

Specified by:
hidden in interface DockFrontendListener
Parameters:
fronend - the invoker
dockable - the element which is no longer visible

hideable

public void hideable(DockFrontend frontend,
                     Dockable dockable,
                     boolean hideable)
Description copied from interface: DockFrontendListener
Called when the hideable-state of dockable changes.

Specified by:
hideable in interface DockFrontendListener
Parameters:
frontend - the source of the event
dockable - the element whose state changed
hideable - the new state

loaded

public void loaded(DockFrontend frontend,
                   String name)
Description copied from interface: DockFrontendListener
Invoked if a new setting was loaded. Only settings that are known to frontend can be loaded. When a setting is loaded, the layout of all DockStations and Dockables is changed such that the layout reflects the properties of the setting.

Specified by:
loaded in interface DockFrontendListener
Parameters:
frontend - the invoker
name - the name of the setting

read

public void read(DockFrontend frontend,
                 String name)
Description copied from interface: DockFrontendListener
Called when a setting was read. The setting could have be known before it was read. Reading a setting does not mean that the setting is applied. It is just available now for loading.

Specified by:
read in interface DockFrontendListener
Parameters:
frontend - the invoker
name - the name of the setting which was read

removed

public void removed(DockFrontend frontend,
                    Dockable dockable)
Description copied from interface: DockFrontendListener
Informs this listener that dockable has been removed from the list of known Dockables of frontend.

Specified by:
removed in interface DockFrontendListener
Parameters:
frontend - the source of this call
dockable - the element that has been removed

saved

public void saved(DockFrontend frontend,
                  String name)
Description copied from interface: DockFrontendListener
Invoked if the current setting was saved with the name name.

Specified by:
saved in interface DockFrontendListener
Parameters:
frontend - the invoker
name - the name of the setting

shown

public void shown(DockFrontend frontend,
                  Dockable dockable)
Description copied from interface: DockFrontendListener
Invoked if a Dockable was made visible. This includes Dockables which are not registered in frontend, but known in the DockController.

Specified by:
shown in interface DockFrontendListener
Parameters:
frontend - the invoker
dockable - the element which was made visible