|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.DockFrontend.DockInfo
public class DockFrontend.DockInfo
Information about a Dockable
.
Constructor Summary | |
---|---|
DockFrontend.DockInfo(Dockable dockable,
String key)
Creates a new DockInfo. |
Method Summary | |
---|---|
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()
Updates the values of root and location
according to the current location of the element . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockFrontend.DockInfo(Dockable dockable, String key)
dockable
- the element whose informations are storedkey
- the name of the elementMethod Detail |
---|
public void setShown(boolean shown)
FrontendEntry
setShown
in interface FrontendEntry
shown
- whether the element should be shownpublic boolean isShown()
FrontendEntry
isShown
in interface FrontendEntry
public boolean isEntryLayout()
FrontendEntry
Setting
can change the layout
of this element.
isEntryLayout
in interface FrontendEntry
true
if the layout of this element should be
stored always.public void setEntryLayout(boolean entryLayout)
FrontendEntry
Setting
can change the layout
of this element.
setEntryLayout
in interface FrontendEntry
entryLayout
- if the layout of this element should be
stored always.public boolean isHideable()
FrontendEntry
dockable
or not.
isHideable
in interface FrontendEntry
true
if the element can be made invisible.public void setHideable(boolean hideable)
FrontendEntry
the element
can be made
invisible or not. This method will have an immediate effect.
setHideable
in interface FrontendEntry
hideable
- the new statepublic void updateHideAction()
public DefaultDockActionSource getSource()
DockActionSource
which will be added to the offers
of the element
.
public Dockable getDockable()
FrontendEntry
getDockable
in interface FrontendEntry
null
public void setDockable(Dockable dockable)
DockFrontend.DockInfo
dockable
- the new dockable, can be null
public String getKey()
FrontendEntry
getKey
in interface FrontendEntry
public void updateLocation()
FrontendEntry
root
and location
according to the current location of the element
.
updateLocation
in interface FrontendEntry
public void setLocation(String root, DockableProperty location)
FrontendEntry
the element
. Note that this
method will have no effect if the dockable is currently shown.
setLocation
in interface FrontendEntry
root
- the root, might be null
location
- the location, might be null
public String getRoot()
FrontendEntry
the element
was the last time when it was made invisible.
getRoot
in interface FrontendEntry
null
public DockableProperty getLocation()
FrontendEntry
the element
which it had
the last time it was made invisible.
getLocation
in interface FrontendEntry
null
public void setLayout(DockLayoutComposition layout)
FrontendEntry
setLayout
in interface FrontendEntry
layout
- the layout, can be null
public DockLayoutComposition getLayout()
FrontendEntry
getLayout
in interface FrontendEntry
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |