public class CWorkingArea extends CGridArea
CDockable
s 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() |
listenerCollection
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 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
CDockable s 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, uninstall
asStation, getDropLocation, init, setControlAccess, toString
addCDockableLocationListener, 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, toFront
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addCDockableLocationListener, 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, setWorkingArea
public static final Path TYPE_ID
getTypeId()
public boolean isWorkingArea()
CStation
CControl.addStation(CStation, boolean)
)
or must be a SingleCDockable
.isWorkingArea
in interface CStation<CSplitDockStation>
isWorkingArea
in class CGridArea
true
if this is a working area, false
otherwisepublic CLocation getStationLocation()
CStation
CStation.getStation()
.getStationLocation
in interface CStation<CSplitDockStation>
getStationLocation
in class CGridArea
station
public CWorkingPerspective createPerspective()
CStation
CStationPerspective
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 CGridArea
CStation.getTypeId()
public void deploy(CGrid grid)
CDockable
s 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 showdockable
public <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 showdockable
public <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 elementdockable
public <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 elementdockable
public Path getTypeId()
CStation
MissingPerspectiveStrategy.createStation(String, Path)
when loading a layout
as a CPerspective
.getTypeId
in interface CStation<CSplitDockStation>
getTypeId
in class CGridArea
null
will just be ignored.