bibliothek.gui.dock.themes.basic
Class MinimalDecorator

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.MinimalDecorator
All Implemented Interfaces:
BasicDockableDisplayerDecorator

public class MinimalDecorator
extends java.lang.Object
implements BasicDockableDisplayerDecorator

Minimalistic implementation of a BasicDockableDisplayerDecorator. Just shows the element which represents the selected Dockable.

Author:
Benjamin Sigg

Constructor Summary
MinimalDecorator()
           
 
Method Summary
 java.awt.Component getComponent()
          Gets the Component which represents this decorator, the result of this method may change whenever BasicDockableDisplayerDecorator.setController(DockController) or BasicDockableDisplayerDecorator.setDockable(Component, Dockable) is called.
 void setController(DockController controller)
          Sets the controller in whose realm this decorator works
 void setDockable(java.awt.Component content, Dockable dockable)
          Sets the element to show on this decorator, can be null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinimalDecorator

public MinimalDecorator()
Method Detail

getComponent

public java.awt.Component getComponent()
Description copied from interface: BasicDockableDisplayerDecorator
Gets the Component which represents this decorator, the result of this method may change whenever BasicDockableDisplayerDecorator.setController(DockController) or BasicDockableDisplayerDecorator.setDockable(Component, Dockable) is called.

Specified by:
getComponent in interface BasicDockableDisplayerDecorator
Returns:
the component or null to show nothing

setController

public void setController(DockController controller)
Description copied from interface: BasicDockableDisplayerDecorator
Sets the controller in whose realm this decorator works

Specified by:
setController in interface BasicDockableDisplayerDecorator
Parameters:
controller - the controller

setDockable

public void setDockable(java.awt.Component content,
                        Dockable dockable)
Description copied from interface: BasicDockableDisplayerDecorator
Sets the element to show on this decorator, can be null

Specified by:
setDockable in interface BasicDockableDisplayerDecorator
Parameters:
content - the component which represents dockable
dockable - the element to show