public class CWorkingArea extends CGridArea
CDockables which can't be dragged out of it. Also no CDockable
can be dropped in a CWorkingArea.CWorkingArea, and the working areas
can be nested.| Modifier and Type | Field and Description |
|---|---|
static Path |
TYPE_ID
The result of
getTypeId() |
listenerCollectionACTION_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 and Description |
|---|
CWorkingArea(CControl control,
String uniqueId)
Creates a new area.
|
| Modifier and Type | Method and Description |
|---|---|
<F extends MultipleCDockable> |
add(F dockable)
Ensures that
this is the parent of dockable
and adds dockable to the CControl which is associated
with this CWorkingArea. |
<F extends SingleCDockable> |
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.
|
<F extends MultipleCDockable> |
show(F dockable)
|
<F extends SingleCDockable> |
show(F dockable)
|
asDockable, createCommonDockable, createSplitDockStationHandle, getComponent, getModeManagerHandle, getStation, getTitleIcon, getTitleText, getUniqueId, init, install, isCloseable, isExternalizable, isMaximizable, isMaximizingArea, isMinimizable, isNormalizingArea, isStackable, setMaximizingArea, setTitleIcon, setTitleText, suppressTitle, uninstallasStation, getDropLocation, init, setControlAccess, toStringaddCDockableLocationListener, addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, addVetoClosingListener, control, getAction, getAndClearResizeRequest, getAutoBaseLocation, getBaseLocation, getClose, getColors, getControl, getControlAccess, getDefaultLocation, getDockableUniqueId, getExtendedMode, getFocusComponent, getFonts, getGrouping, getMinimizedSize, getParentStation, getWorkingArea, hasParent, init, intern, isDockableVisible, isEnabled, isNormalizeable, isResizeLocked, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isSticky, isStickySwitchable, isTitleShown, isVisible, propertyListeners, putAction, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setDefaultLocation, setEnabled, setExtendedMode, setFocusComponent, setGrouping, setLocation, setLocationsAside, setLocationsAside, setLocationsAsideFocused, setMinimizedSize, setResizeLocked, setResizeLockedHorizontally, setResizeLockedVertically, setResizeRequest, setResizeRequest, setSingleTabShown, setSticky, setStickySwitchable, setTitleShown, setVisible, setWorkingArea, stateListeners, toFront, toFrontclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCDockableLocationListener, addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, addVetoClosingListener, asStation, getAction, getAndClearResizeRequest, getAutoBaseLocation, getBaseLocation, getColors, getControl, getControlAccess, getExtendedMode, getFocusComponent, getFonts, getGrouping, getMinimizedSize, getParentStation, getWorkingArea, hasParent, intern, isDockableVisible, isEnabled, isNormalizeable, isResizeLockedHorizontally, isResizeLockedVertically, isShowing, isSingleTabShown, isSticky, isStickySwitchable, isTitleShown, isVisible, removeCDockableLocationListener, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, removeVetoClosingListener, setControlAccess, setExtendedMode, setLocation, setLocationsAside, setLocationsAside, setLocationsAsideFocused, setMinimizedSize, setSticky, setStickySwitchable, setVisible, setWorkingAreapublic static final Path TYPE_ID
getTypeId()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.public <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 showdockablepublic <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 showdockablepublic <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 elementdockablepublic <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 elementdockablepublic 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.Copyright © 2018. All rights reserved.