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 enabledChanged(CDockable dockable)
          Called if the result of CDockable.isEnabled(bibliothek.gui.dock.common.EnableableItem) changed for any argument.
 void extendedModeChanged(CDockable dockable, ExtendedMode mode)
          Called if the extended mode of dockable 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 minimizeSizeChanged(CDockable dockable)
          Called when the property CDockable.getMinimizedSize() has changed.
 void modeChanged(CDockable dockable, ExtendedMode mode)
          Called by extendedModeChanged(CDockable, ExtendedMode) if none of the default modes was selected
 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 stickyChanged(CDockable dockable)
          Called when the CDockable.isMinimizedHold()-property has changed.
 void stickySwitchableChanged(CDockable dockable)
          Called when the property CDockable.isMinimizedHoldSwitchable() has changed.
 void titleShownChanged(CDockable dockable)
          Called when the property CDockable.isTitleShown() has changed.
 void visibilityChanged(CDockable dockable)
          Called when the visibility-property 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

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

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

stickyChanged

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

Specified by:
stickyChanged 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

stickySwitchableChanged

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

Specified by:
stickySwitchableChanged 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

visibilityChanged

public void visibilityChanged(CDockable dockable)
Description copied from interface: CDockableStateListener
Called when the visibility-property changed. Please read the notes of CDockable.isVisible() to learn more about the exact meaning of visibility in the context of a CDockable.
Clients interested to know whether the user can see the Dockable or not should use a CDockableLocationListener.

Specified by:
visibilityChanged in interface CDockableStateListener
Parameters:
dockable - the source of the event
See Also:
CDockable.isVisible(), CDockable.isShowing()

enabledChanged

public void enabledChanged(CDockable dockable)
Description copied from interface: CDockablePropertyListener
Called if the result of CDockable.isEnabled(bibliothek.gui.dock.common.EnableableItem) changed for any argument.

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

minimized

public void minimized(CDockable dockable)
Called when the dockable has been minimized.

Parameters:
dockable - the source of the event

maximized

public void maximized(CDockable dockable)
Called when the dockable has been maximized.

Parameters:
dockable - the source of the event

normalized

public void normalized(CDockable dockable)
Called when the dockable has been normalized.

Parameters:
dockable - the source of the event

externalized

public void externalized(CDockable dockable)
Called when the dockable has been externalized.

Parameters:
dockable - the source of the event

modeChanged

public void modeChanged(CDockable dockable,
                        ExtendedMode mode)
Called by extendedModeChanged(CDockable, ExtendedMode) if none of the default modes was selected

Parameters:
dockable - the element whose mode changed
mode - the new mode

extendedModeChanged

public void extendedModeChanged(CDockable dockable,
                                ExtendedMode mode)
Description copied from interface: CDockableStateListener
Called if the extended mode of dockable changed.

Specified by:
extendedModeChanged in interface CDockableStateListener
Parameters:
dockable - the element whose mode changed
mode - the new mode