public interface BasicDockableDisplayerDecorator
Modifier and Type | Method and Description |
---|---|
void |
addDecoratorListener(BasicDockableDisplayerDecoratorListener listener)
Adds the listener
listener to this decorator, listener will
be informed if a property of this decorator changes. |
DockActionSource |
getActionSuggestion()
|
java.awt.Component |
getComponent()
Gets the
Component which represents this decorator,
the result of this method may change whenever setController(DockController)
or setDockable(Component, Dockable) is called. |
java.awt.Insets |
getDockableInsets()
Gets an estimate of how much space of
the component is used
by the border around the Dockable . |
DockElementRepresentative |
getMoveableElement()
Gets a
DockElementRepresentative that can be used to move the entire displayer. |
void |
removeDecoratorListener(BasicDockableDisplayerDecoratorListener listener)
Removes the listener
listener from this decorator. |
void |
setController(DockController controller)
Sets the controller in whose realm this decorator works
|
void |
setDockable(java.awt.Component component,
Dockable dockable)
Sets the element to show on this decorator, can be
null |
void addDecoratorListener(BasicDockableDisplayerDecoratorListener listener)
listener
to this decorator, listener
will
be informed if a property of this decorator changes.listener
- the new listener, not null
void removeDecoratorListener(BasicDockableDisplayerDecoratorListener listener)
listener
from this decorator.listener
- the listener to removevoid setDockable(java.awt.Component component, Dockable dockable)
null
component
- the component which represents dockable
dockable
- the element to showvoid setController(DockController controller)
controller
- the controllerjava.awt.Component getComponent()
Component
which represents this decorator,
the result of this method may change whenever setController(DockController)
or setDockable(Component, Dockable)
is called.null
to show nothingDockActionSource getActionSuggestion()
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 setController(DockController)
)
change.null
java.awt.Insets getDockableInsets()
the component
is used
by the border around the Dockable
.DockElementRepresentative getMoveableElement()
DockElementRepresentative
that can be used to move the entire displayer. This method
should not return the Dockable
itself.null