|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.themes.basic.MinimalDecorator
public class MinimalDecorator
Minimalistic implementation of a BasicDockableDisplayerDecorator
. Just shows the
element which represents the selected Dockable
.
Constructor Summary | |
---|---|
MinimalDecorator()
|
Method Summary | |
---|---|
DockActionSource |
getActionSuggestion()
Gets a DockActionSource which is forwarded to the DockTitle through
a ActionsDockTitleEvent . |
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. |
Insets |
getDockableInsets()
Gets an estimate of how much space of the component is used
by the border around the Dockable . |
void |
setController(DockController controller)
Sets the controller in whose realm this decorator works |
void |
setDockable(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 |
---|
public MinimalDecorator()
Method Detail |
---|
public Component getComponent()
BasicDockableDisplayerDecorator
Component
which represents this decorator,
the result of this method may change whenever BasicDockableDisplayerDecorator.setController(DockController)
or BasicDockableDisplayerDecorator.setDockable(Component, Dockable)
is called.
getComponent
in interface BasicDockableDisplayerDecorator
null
to show nothingpublic void setController(DockController controller)
BasicDockableDisplayerDecorator
setController
in interface BasicDockableDisplayerDecorator
controller
- the controllerpublic void setDockable(Component content, Dockable dockable)
BasicDockableDisplayerDecorator
null
setDockable
in interface BasicDockableDisplayerDecorator
content
- the component which represents dockable
dockable
- the element to showpublic DockActionSource getActionSuggestion()
BasicDockableDisplayerDecorator
DockActionSource
which is forwarded to the DockTitle
through
a ActionsDockTitleEvent
. This method may be called at any time, the action source
must update itself if the settings of this decorator (like BasicDockableDisplayerDecorator.setController(DockController)
)
change.
getActionSuggestion
in interface BasicDockableDisplayerDecorator
null
public Insets getDockableInsets()
BasicDockableDisplayerDecorator
the component
is used
by the border around the Dockable
.
getDockableInsets
in interface BasicDockableDisplayerDecorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |