public class DockFrontend.DockInfo extends Object implements FrontendEntry
Dockable.| Constructor and Description |
|---|
DockInfo(Dockable dockable,
String key)
Creates a new DockInfo.
|
| Modifier and Type | Method and Description |
|---|---|
Dockable |
getDockable()
The element for which this object stores information.
|
String |
getKey()
The name which is used for this object.
|
DockLayoutComposition |
getLayout()
Gets information about the layout of this element.
|
DockableProperty |
getLocation()
Gets the location of
the element which it had
the last time it was made invisible. |
String |
getRoot()
Gets the name of the station on which
the element
was the last time when it was made invisible. |
DefaultDockActionSource |
getSource()
Gets the
DockActionSource which will be added to the offers
of the element. |
boolean |
isEntryLayout()
If set, then every entry
Setting can change the layout
of this element. |
boolean |
isHideable()
Tells whether to show a "close"-action for the
dockable
or not. |
boolean |
isShown()
Tells whether this infos dockable should be shown.
|
void |
setDockable(Dockable dockable)
Exchanges the dockable which is stored in this
DockFrontend.DockInfo |
void |
setEntryLayout(boolean entryLayout)
If set, then every entry
Setting can change the layout
of this element. |
void |
setHideable(boolean hideable)
Sets whether
the element can be made
invisible or not. |
void |
setLayout(DockLayoutComposition layout)
Sets information about the layout of this element.
|
void |
setLocation(String root,
DockableProperty location)
Sets the location of
the element. |
void |
setShown(boolean shown)
Sets whether the dockable of this entry should be shown or not.
|
void |
updateHideAction()
Updates the visibility-state of the hide action
|
void |
updateLocation()
|
public void setShown(boolean shown)
FrontendEntrysetShown in interface FrontendEntryshown - whether the element should be shownpublic boolean isShown()
FrontendEntryisShown in interface FrontendEntrypublic boolean isEntryLayout()
FrontendEntrySetting can change the layout
of this element.isEntryLayout in interface FrontendEntrytrue if the layout of this element should be
stored always.public void setEntryLayout(boolean entryLayout)
FrontendEntrySetting can change the layout
of this element.setEntryLayout in interface FrontendEntryentryLayout - if the layout of this element should be
stored always.public boolean isHideable()
FrontendEntrydockable
or not.isHideable in interface FrontendEntrytrue if the element can be made invisible.public void setHideable(boolean hideable)
FrontendEntrythe element can be made
invisible or not. This method will have an immediate effect.setHideable in interface FrontendEntryhideable - the new statepublic void updateHideAction()
public DefaultDockActionSource getSource()
DockActionSource which will be added to the offers
of the element.public Dockable getDockable()
FrontendEntrygetDockable in interface FrontendEntrynullpublic void setDockable(Dockable dockable)
DockFrontend.DockInfodockable - the new dockable, can be nullpublic String getKey()
FrontendEntrygetKey in interface FrontendEntrypublic void updateLocation()
FrontendEntryupdateLocation in interface FrontendEntrypublic void setLocation(String root, DockableProperty location)
FrontendEntrythe element. Note that this
method will have no effect if the dockable is currently shown.setLocation in interface FrontendEntryroot - the root, might be nulllocation - the location, might be nullpublic String getRoot()
FrontendEntrythe element
was the last time when it was made invisible.getRoot in interface FrontendEntrynullpublic DockableProperty getLocation()
FrontendEntrythe element which it had
the last time it was made invisible.getLocation in interface FrontendEntrynullpublic void setLayout(DockLayoutComposition layout)
FrontendEntrysetLayout in interface FrontendEntrylayout - the layout, can be nullpublic DockLayoutComposition getLayout()
FrontendEntrygetLayout in interface FrontendEntrynullCopyright © 2017 Docking Frames. All rights reserved.