|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.intern.AbstractCDockable
bibliothek.gui.dock.common.intern.AbstractDockableCStation<SplitDockStation>
bibliothek.gui.dock.common.CGridArea
bibliothek.gui.dock.common.CWorkingArea
public class CWorkingArea
A working area is an element which is always visible and contains some
CDockables which can't be dragged out of it. Also no CDockable
can be dropped in a CWorkingArea.
There can be more than one CWorkingArea, and the working areas
can be nested.
| Field Summary | |
|---|---|
static Path |
TYPE_ID
The result of getTypeId() |
| Fields inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable |
|---|
listenerCollection |
| Fields inherited from interface bibliothek.gui.dock.common.intern.CDockable |
|---|
ACTION_KEY_CLOSE, ACTION_KEY_EXTERNALIZE, ACTION_KEY_MAXIMIZE, ACTION_KEY_MINIMIZE, ACTION_KEY_NORMALIZE, ACTION_KEY_UNEXTERNALIZE, ACTION_KEY_UNMAXIMIZE_EXTERNALIZED |
| Constructor Summary | |
|---|---|
CWorkingArea(CControl control,
java.lang.String uniqueId)
Creates a new area. |
|
| Method Summary | ||
|---|---|---|
|
add(F dockable)
Ensures that this is the parent of dockable
and adds dockable to the CControl which is associated
with this CWorkingArea. |
|
|
add(F dockable)
Ensures that this is the parent of dockable
and adds dockable to the CControl which is associated
with this CWorkingArea. |
|
CWorkingPerspective |
createPerspective()
Returns a new CStationPerspective that represents this station. |
|
void |
deploy(CGrid grid)
Exchanges all the CDockables on this area with the
elements of grid. |
|
CLocation |
getStationLocation()
Gets a location which represents directly CStation.getStation(). |
|
Path |
getTypeId()
Gets a unique path denoting the type of this station. |
|
boolean |
isSuppressTitle()
Deprecated. use AbstractCDockable.isTitleShown() instead |
|
boolean |
isWorkingArea()
Tells whether this station is a special working area or not. |
|
void |
setSuppressTitle(boolean suppressTitle)
Deprecated. use AbstractCDockable.setTitleShown(boolean) instead |
|
| Methods inherited from class bibliothek.gui.dock.common.CGridArea |
|---|
asDockable, createCommonDockable, getComponent, getStation, getTitleIcon, getTitleText, getUniqueId, init, install, isCloseable, isExternalizable, isMaximizable, isMaximizingArea, isMinimizable, isStackable, setMaximizingArea, setTitleIcon, setTitleText, suppressTitle, uninstall |
| Methods inherited from class bibliothek.gui.dock.common.intern.AbstractDockableCStation |
|---|
asStation, init, setControl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Path TYPE_ID
getTypeId()
| Constructor Detail |
|---|
public CWorkingArea(CControl control,
java.lang.String uniqueId)
control - the owner of this stationuniqueId - a unique identifier| Method Detail |
|---|
public boolean isWorkingArea()
CStationCControl.addStation(CStation, boolean))
or must be a SingleCDockable.
isWorkingArea in interface CStation<SplitDockStation>isWorkingArea in class CGridAreatrue if this is a working area, false
otherwisepublic CLocation getStationLocation()
CStationCStation.getStation().
getStationLocation in interface CStation<SplitDockStation>getStationLocation in class CGridAreastationpublic CWorkingPerspective createPerspective()
CStationCStationPerspective that represents this station. This method
does not need to set any content of the new perspective. Basically this method just needs to tell
the framework what type of CStationPerspective is needed, not what its content is.
createPerspective in interface CStation<SplitDockStation>createPerspective in class CGridAreaCStation.getTypeId()public void deploy(CGrid grid)
CDockables on this area with the
elements of grid. This method also calls
CDockable.setWorkingArea(CStation) for each
dockable in grid.
deploy in class CGridAreagrid - a grid containing some new Dockablespublic <F extends SingleCDockable> F add(F dockable)
this is the parent of dockable
and adds dockable to the CControl which is associated
with this CWorkingArea. If there is no CControl, then
the dockable is added nowhere.
F - the type of element to adddockable - the new element
dockablepublic <F extends MultipleCDockable> F add(F dockable)
this is the parent of dockable
and adds dockable to the CControl which is associated
with this CWorkingArea. If there is no CControl, then
the dockable is added nowhere.
F - the type of element to adddockable - the new element
dockable
@Deprecated
@Todo(compatibility=BREAK_MAJOR,
priority=MINOR,
target=VERSION_1_1_1,
description="remove this method")
public void setSuppressTitle(boolean suppressTitle)
AbstractCDockable.setTitleShown(boolean) instead
suppressTitle - true if this area should try
not to have a title.
@Deprecated
@Todo(compatibility=BREAK_MAJOR,
priority=MINOR,
target=VERSION_1_1_1,
description="remove this method")
public boolean isSuppressTitle()
AbstractCDockable.isTitleShown() instead
true if this area normally has no titlepublic Path getTypeId()
CStationMissingPerspectiveStrategy.createRoot(String, Path) when loading a layout
as a CPerspective.
getTypeId in interface CStation<SplitDockStation>getTypeId in class CGridAreanull will just be ignored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||