Class ExternalizingCGridArea
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.behavior.ExternalizingCGridArea
- All Implemented Interfaces:
CStation<CSplitDockStation>,CDockable,SingleCDockable
@Todo(priority=MAJOR,
target=VERSION_1_1_2,
compatibility=COMPATIBLE,
description="The \'unmaximize\' button appears at the wrong location. And during drag and drop layout information is lost due to the listener that inserts the station after the dockable was inserted. Also perspectives will not yet work.")
public class ExternalizingCGridArea
extends CGridArea
This
This station will allow its children to be "maximized" on itself. Additionally the station can be "maximized" itself, but it cannot be "normalized" or "minimized" (it always remains floating on the screen).
CStation is intended to be set between a ScreenDockStation and a Dockable.
It can clean up itself when it is no longer required.This station will allow its children to be "maximized" on itself. Additionally the station can be "maximized" itself, but it cannot be "normalized" or "minimized" (it always remains floating on the screen).
- Author:
- Benjamin Sigg
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PathThe type of this area, returned bygetTypeId()static final StringEvery unique identifier of aExternalizingCGridAreastarts with this stringFields 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
ConstructorsConstructorDescriptionExternalizingCGridArea(CControl control) Creates a new area.ExternalizingCGridArea(CControl control, String uniqueId) Creates a new area. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExternalizedCSplitDockStationHandlercreateSplitDockStationHandle(CControl control) protected ExternalizedCSplitDockStationHandlerGets a unique path denoting the type of this station.protected voidinstall(CControlAccess access) Called when this station is added to aCControl.booleanTells whether this station can automatically remove itself from its parent and theCControl.booleanTells whether thisCDockablecan be externalized by the user.booleanTells whether thisCDockablecan be maximized by the user.booleanTells whether thisCDockablecan be minimized by the user.booleanAlwaystrue, clients should not override this method unless they know exactly what they are doing.protected booleanTells whether all children of this area are considered to be normalized.voidsetAutoRemove(boolean autoRemove) Sets whether this station can automatically delete itself from the application if the number of children drops to0.
The default value of this property istrue.protected voidQueues up a call toautoRemove()protected voiduninstall(CControlAccess access) Called when this station is removed from aCControl.Methods inherited from class bibliothek.gui.dock.common.CGridArea
asDockable, createCommonDockable, createPerspective, deploy, getComponent, getStation, getStationLocation, getTitleIcon, getTitleText, getUniqueId, init, isCloseable, isMaximizingArea, isStackable, isWorkingArea, setMaximizingArea, setTitleIcon, setTitleText, suppressTitleMethods 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, 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, 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 type of this area, returned bygetTypeId() -
UNIQUE_ID_PREFIX
Every unique identifier of aExternalizingCGridAreastarts with this string- See Also:
-
-
Constructor Details
-
ExternalizingCGridArea
Creates a new area.- Parameters:
control- the owner of this area
-
ExternalizingCGridArea
Creates a new area.- Parameters:
control- the owner of this areauniqueId- the unique identifier of this station
-
-
Method Details
-
createSplitDockStationHandle
Description copied from class:CGridArea- Overrides:
createSplitDockStationHandlein classCGridArea- Parameters:
control- the control in whose realm this area is used- Returns:
- the new handle, not
null
-
getModeManagerHandle
Description copied from class:CGridArea- Overrides:
getModeManagerHandlein classCGridArea- Returns:
- a representation of
thisas area
-
install
Description copied from class:AbstractDockableCStationCalled when this station is added to aCControl. -
uninstall
Description copied from class:AbstractDockableCStationCalled when this station is removed from aCControl. -
isMaximizable
public boolean isMaximizable()Description copied from interface:CDockableTells whether thisCDockablecan be maximized by the user.- Specified by:
isMaximizablein interfaceCDockable- Overrides:
isMaximizablein classCGridArea- Returns:
trueif this element can be maximized
-
isExternalizable
public boolean isExternalizable()Description copied from interface:CDockableTells whether thisCDockablecan be externalized by the user.- Specified by:
isExternalizablein interfaceCDockable- Overrides:
isExternalizablein classCGridArea- Returns:
trueif this element can be externalized
-
isMinimizable
public boolean isMinimizable()Description copied from interface:CDockableTells whether thisCDockablecan be minimized by the user.- Specified by:
isMinimizablein interfaceCDockable- Overrides:
isMinimizablein classCGridArea- Returns:
trueif this element can be minimized
-
isNormalizeable
public boolean isNormalizeable()Description copied from class:AbstractCDockableAlwaystrue, clients should not override this method unless they know exactly what they are doing.- Specified by:
isNormalizeablein interfaceCDockable- Overrides:
isNormalizeablein classAbstractCDockable- Returns:
true, unless a subclass requires very special behavior.
-
isNormalizingArea
protected boolean isNormalizingArea()Description copied from class:CGridAreaTells whether all children of this area are considered to be normalized. Clients should not override this method.
Note that if this method returnsfalse, then the defaultCSplitDockStationHandlereturned byCGridArea.getModeManagerHandle()will fail, clients must provide a custom implementation ofCSplitDockStationHandleif they override this method.- Overrides:
isNormalizingAreain classCGridArea- Returns:
- whether the children are normalized per default
-
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.
-
setAutoRemove
public void setAutoRemove(boolean autoRemove) Sets whether this station can automatically delete itself from the application if the number of children drops to0.
The default value of this property istrue.- Parameters:
autoRemove- whether automatic cleanup is enabled
-
isAutoRemove
public boolean isAutoRemove()Tells whether this station can automatically remove itself from its parent and theCControl.- Returns:
- whether automatic cleanup is enabled
- See Also:
-
tryAutoRemove
protected void tryAutoRemove()Queues up a call toautoRemove()
-