bibliothek.gui.dock.common.event
Class CDockableAdapter

java.lang.Object
  extended by bibliothek.gui.dock.common.event.CDockableAdapter
All Implemented Interfaces:
CDockablePropertyListener, CDockableStateListener

public class CDockableAdapter
extends Object
implements CDockableStateListener, CDockablePropertyListener

A class implementing all methods of CDockableStateListener and CDockablePropertyListener. The methods have an empty body and can be overridden by subclasses.

Author:
Benjamin Sigg

Constructor Summary
CDockableAdapter()
           
 
Method Summary
 void actionChanged(CDockable dockable, String key, CAction oldAction, CAction newAction)
          Called when an action that is returned by CDockable.getAction(String) has been exchanged.
 void closeableChanged(CDockable dockable)
          Called when the closeable-property has changed.
 void externalizableChanged(CDockable dockable)
          Called when the externalizable-property has changed.
 void externalized(CDockable dockable)
          Called when the dockable has been externalized.
 void maximizableChanged(CDockable dockable)
          Called when the maximizable-property has changed.
 void maximized(CDockable dockable)
          Called when the dockable has been maximized.
 void minimizableChanged(CDockable dockable)
          Called when the minimizable-property has changed.
 void minimized(CDockable dockable)
          Called when the dockable has been minimized.
 void minimizedHoldChanged(CDockable dockable)
          Called when the CDockable.isMinimizedHold()-property has changed.
 void minimizeSizeChanged(CDockable dockable)
          Called when the property CDockable.getMinimizedSize() has changed.
 void normalized(CDockable dockable)
          Called when the dockable has been normalized.
 void resizeLockedChanged(CDockable dockable)
          Called when the CDockable.isResizeLockedHorizontally() or CDockable.isResizeLockedVertically()-property has changed.
 void singleTabShownChanged(CDockable dockable)
          Called when the property CDockable.isSingleTabShown() has changed.
 void titleShownChanged(CDockable dockable)
          Called when the property CDockable.isTitleShown() has changed.
 void visibilityChanged(CDockable dockable)
          Called when the visibility-property has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDockableAdapter

public CDockableAdapter()
Method Detail

closeableChanged

public void closeableChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called when the closeable-property has changed.

Specified by:
closeableChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event

resizeLockedChanged

public void resizeLockedChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called when the CDockable.isResizeLockedHorizontally() or CDockable.isResizeLockedVertically()-property has changed.

Specified by:
resizeLockedChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event

externalizableChanged

public void externalizableChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called when the externalizable-property has changed.

Specified by:
externalizableChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event

externalized

public void externalized(CDockable dockable)
Description copied from interface: CDockableStateListener
Called when the dockable has been externalized.

Specified by:
externalized in interface CDockableStateListener
Parameters:
dockable - the source of the event

maximizableChanged

public void maximizableChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called when the maximizable-property has changed.

Specified by:
maximizableChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event

maximized

public void maximized(CDockable dockable)
Description copied from interface: CDockableStateListener
Called when the dockable has been maximized.

Specified by:
maximized in interface CDockableStateListener
Parameters:
dockable - the source of the event

minimizableChanged

public void minimizableChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called when the minimizable-property has changed.

Specified by:
minimizableChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event

minimized

public void minimized(CDockable dockable)
Description copied from interface: CDockableStateListener
Called when the dockable has been minimized.

Specified by:
minimized in interface CDockableStateListener
Parameters:
dockable - the source of the event

minimizedHoldChanged

public void minimizedHoldChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called when the CDockable.isMinimizedHold()-property has changed.

Specified by:
minimizedHoldChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event

minimizeSizeChanged

public void minimizeSizeChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called when the property CDockable.getMinimizedSize() has changed.

Specified by:
minimizeSizeChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event

titleShownChanged

public void titleShownChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called when the property CDockable.isTitleShown() has changed.

Specified by:
titleShownChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event

singleTabShownChanged

public void singleTabShownChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called when the property CDockable.isSingleTabShown() has changed.

Specified by:
singleTabShownChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event

actionChanged

public void actionChanged(CDockable dockable,
                          String key,
                          CAction oldAction,
                          CAction newAction)
Description copied from interface: CDockablePropertyListener
Called when an action that is returned by CDockable.getAction(String) has been exchanged.

Specified by:
actionChanged in interface CDockablePropertyListener
Parameters:
dockable - the source of the event
key - the name of the exchanged action
oldAction - the old action, can be null
newAction - the new action, can be null

normalized

public void normalized(CDockable dockable)
Description copied from interface: CDockableStateListener
Called when the dockable has been normalized.

Specified by:
normalized in interface CDockableStateListener
Parameters:
dockable - the source of the event

visibilityChanged

public void visibilityChanged(CDockable dockable)
Description copied from interface: CDockableStateListener
Called when the visibility-property has changed. Please read the notes of CDockable.isVisible() to learn more about the exact meaning of visibility in the context of a CDockable.

Specified by:
visibilityChanged in interface CDockableStateListener
Parameters:
dockable - the source of the event