Package bibliothek.gui.dock.common
Class CWorkingArea
java.lang.Object
bibliothek.gui.dock.common.intern.AbstractCDockable
bibliothek.gui.dock.common.intern.AbstractDockableCStation<CSplitDockStation>
bibliothek.gui.dock.common.CGridArea
bibliothek.gui.dock.common.CWorkingArea
- All Implemented Interfaces:
CStation<CSplitDockStation>,CDockable,SingleCDockable
A working area is an element which is always visible and contains some
There can be more than one
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.- Author:
- Benjamin Sigg
-
Field Summary
FieldsFields inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable
listenerCollectionFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescription<F extends SingleCDockable>
Fadd(F dockable) Ensures thatthisis the parent ofdockableand addsdockableto theCControlwhich is associated with thisCWorkingArea.Returns a newCStationPerspectivethat representsthisstation.voidExchanges all theCDockables on this area with the elements ofgrid.Gets a location which represents directlyCStation.getStation().Gets a unique path denoting the type of this station.booleanTells whether this station is a special working area or not.<F extends SingleCDockable>
Fshow(F dockable) Methods inherited from class bibliothek.gui.dock.common.CGridArea
asDockable, createCommonDockable, createSplitDockStationHandle, getComponent, getModeManagerHandle, getStation, getTitleIcon, getTitleText, getUniqueId, init, install, isCloseable, isExternalizable, isMaximizable, isMaximizingArea, isMinimizable, isNormalizingArea, isStackable, setMaximizingArea, setTitleIcon, setTitleText, suppressTitle, uninstallMethods inherited from class bibliothek.gui.dock.common.intern.AbstractDockableCStation
asStation, getDropLocation, init, setControlAccess, toStringMethods inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable
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, toFrontMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface bibliothek.gui.dock.common.intern.CDockable
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
-
Field Details
-
TYPE_ID
The result ofgetTypeId()
-
-
Constructor Details
-
CWorkingArea
Creates a new area.- Parameters:
control- the owner of this stationuniqueId- a unique identifier
-
-
Method Details
-
isWorkingArea
public boolean isWorkingArea()Description copied from interface:CStationTells whether this station is a special working area or not. It is not possible drag a child from a working area if it is registered there, or to drop a child onto a working area if it is not registered there.
Working areas must either be registered as root-station (seeCControl.addStation(CStation, boolean)) or must be aSingleCDockable.- Specified by:
isWorkingAreain interfaceCStation<CSplitDockStation>- Overrides:
isWorkingAreain classCGridArea- Returns:
trueif this is a working area,falseotherwise
-
getStationLocation
Description copied from interface:CStationGets a location which represents directlyCStation.getStation().- Specified by:
getStationLocationin interfaceCStation<CSplitDockStation>- Overrides:
getStationLocationin classCGridArea- Returns:
- the location that will always represent the
station
-
createPerspective
Description copied from interface:CStationReturns a newCStationPerspectivethat representsthisstation. This method does not need to set any content of the new perspective. Basically this method just needs to tell the framework what type ofCStationPerspectiveis needed, not what its content is.- Specified by:
createPerspectivein interfaceCStation<CSplitDockStation>- Overrides:
createPerspectivein classCGridArea- Returns:
- the new, empty perspective
- See Also:
-
deploy
Exchanges all theCDockables on this area with the elements ofgrid. This method also callsCDockable.setWorkingArea(CStation)for each dockable ingrid. -
show
Firstaddsdockableto theCControlof thisCWorkingArea, then makes it visible at a good position. A good position isCLocation.aside()the latest focusedDockablethat is child of this station.
This method does not force a focus transfer, clients need to callAbstractCDockable.toFront()if the require a focus switch todockable.- Parameters:
dockable- the element to show- Returns:
dockable
-
show
Firstaddsdockableto theCControlof thisCWorkingArea, then makes it visible at a good position. A good position isCLocation.aside()the latest focusedDockablethat is child of this station.
This method does not force a focus transfer, clients need to callAbstractCDockable.toFront()if the require a focus switch todockable.- Parameters:
dockable- the element to show- Returns:
dockable
-
add
Ensures thatthisis the parent ofdockableand addsdockableto theCControlwhich is associated with thisCWorkingArea. If there is noCControl, then thedockableis added nowhere.- Type Parameters:
F- the type of element to add- Parameters:
dockable- the new element- Returns:
dockable
-
add
Ensures thatthisis the parent ofdockableand addsdockableto theCControlwhich is associated with thisCWorkingArea. If there is noCControl, then thedockableis added nowhere.- Type Parameters:
F- the type of element to add- Parameters:
dockable- the new element- Returns:
dockable
-
getTypeId
Description copied from interface:CStationGets a unique path denoting the type of this station. This path will be given toMissingPerspectiveStrategy.createStation(String, Path)when loading a layout as aCPerspective.- Specified by:
getTypeIdin interfaceCStation<CSplitDockStation>- Overrides:
getTypeIdin classCGridArea- Returns:
- the type of this station. Paths starting with "dock." are reserved for the
framework. A value of
nullwill just be ignored.
-