|
||||||||||
| 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<CSplitDockStation>
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_MINIMIZE_HOLD, ACTION_KEY_NORMALIZE, ACTION_KEY_UNEXTERNALIZE, ACTION_KEY_UNMAXIMIZE_EXTERNALIZED |
| Constructor Summary | |
|---|---|
CWorkingArea(CControl control,
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 |
isWorkingArea()
Tells whether this station is a special working area or not. |
|
|
show(F dockable)
First adds dockable to the
CControl of this CWorkingArea, then makes it visible at a good position. |
|
|
show(F dockable)
First adds dockable to the
CControl of this CWorkingArea, then makes it visible at a good position. |
|
| 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, getDropLocation, init, setControlAccess, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Path TYPE_ID
getTypeId()
| Constructor Detail |
|---|
public CWorkingArea(CControl control,
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<CSplitDockStation>isWorkingArea in class CGridAreatrue if this is a working area, false
otherwisepublic CLocation getStationLocation()
CStationCStation.getStation().
getStationLocation in interface CStation<CSplitDockStation>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<CSplitDockStation>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 show(F dockable)
adds dockable to the
CControl of this CWorkingArea, then makes it visible at a good position. A good position
is CLocation.aside() the latest focused Dockable that is child of this station.AbstractCDockable.toFront()
if the require a focus switch to dockable.
dockable - the element to show
dockablepublic <F extends MultipleCDockable> F show(F dockable)
adds dockable to the
CControl of this CWorkingArea, then makes it visible at a good position. A good position
is CLocation.aside() the latest focused Dockable that is child of this station. AbstractCDockable.toFront()
if the require a focus switch to dockable.
dockable - the element to show
dockablepublic <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
dockablepublic Path getTypeId()
CStationMissingPerspectiveStrategy.createStation(String, Path) when loading a layout
as a CPerspective.
getTypeId in interface CStation<CSplitDockStation>getTypeId in class CGridAreanull will just be ignored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||