|
||||||||||
| 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.behavior.ExternalizingCGridArea
@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
This 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).
| Field Summary | |
|---|---|
static Path |
TYPE_ID
The type of this area, returned by getTypeId() |
static String |
UNIQUE_ID_PREFIX
Every unique identifier of a ExternalizingCGridArea starts with this string |
| 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 | |
|---|---|
ExternalizingCGridArea(CControl control)
Creates a new area. |
|
ExternalizingCGridArea(CControl control,
String uniqueId)
Creates a new area. |
|
| Method Summary | |
|---|---|
protected ExternalizedCSplitDockStationHandler |
createSplitDockStationHandle(CControl control)
Creates the handle that will represent this as CNormalModeArea and CMaximizedModeArea. |
protected ExternalizedCSplitDockStationHandler |
getModeManagerHandle()
Access to the object that represents this as CNormalModeArea and as
CMaximizedModeArea. |
Path |
getTypeId()
Gets a unique path denoting the type of this station. |
protected void |
install(CControlAccess access)
Called when this station is added to a CControl. |
boolean |
isAutoRemove()
Tells whether this station can automatically remove itself from its parent and the CControl. |
boolean |
isExternalizable()
Tells whether this CDockable can be externalized by the user. |
boolean |
isMaximizable()
Tells whether this CDockable can be maximized by the user. |
boolean |
isMinimizable()
Tells whether this CDockable can be minimized by the user. |
boolean |
isNormalizeable()
Always true, clients should not override this method unless they know exactly what they are doing. |
protected boolean |
isNormalizingArea()
Tells whether all children of this area are considered to be normalized. |
void |
setAutoRemove(boolean autoRemove)
Sets whether this station can automatically delete itself from the application if the number of children drops to 0.The default value of this property is true. |
protected void |
tryAutoRemove()
Queues up a call to autoRemove() |
protected void |
uninstall(CControlAccess access)
Called when this station is removed from a CControl. |
| 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, suppressTitle |
| 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()
public static final String UNIQUE_ID_PREFIX
ExternalizingCGridArea starts with this string
| Constructor Detail |
|---|
public ExternalizingCGridArea(CControl control)
control - the owner of this area
public ExternalizingCGridArea(CControl control,
String uniqueId)
control - the owner of this areauniqueId - the unique identifier of this station| Method Detail |
|---|
protected ExternalizedCSplitDockStationHandler createSplitDockStationHandle(CControl control)
CGridAreathis as CNormalModeArea and CMaximizedModeArea.
createSplitDockStationHandle in class CGridAreacontrol - the control in whose realm this area is used
nullprotected ExternalizedCSplitDockStationHandler getModeManagerHandle()
CGridAreathis as CNormalModeArea and as
CMaximizedModeArea.
getModeManagerHandle in class CGridAreathis as areaprotected void install(CControlAccess access)
AbstractDockableCStationCControl.
install in class CGridAreaaccess - access to the internals of the new ownerprotected void uninstall(CControlAccess access)
AbstractDockableCStationCControl.
uninstall in class CGridAreaaccess - access to the internals of the old ownerpublic boolean isMaximizable()
CDockableCDockable can be maximized by the user.
isMaximizable in interface CDockableisMaximizable in class CGridAreatrue if this element can be maximizedpublic boolean isExternalizable()
CDockableCDockable can be externalized by the user.
isExternalizable in interface CDockableisExternalizable in class CGridAreatrue if this element can be externalizedpublic boolean isMinimizable()
CDockableCDockable can be minimized by the user.
isMinimizable in interface CDockableisMinimizable in class CGridAreatrue if this element can be minimizedpublic boolean isNormalizeable()
AbstractCDockabletrue, clients should not override this method unless they know exactly what they are doing.
isNormalizeable in interface CDockableisNormalizeable in class AbstractCDockabletrue, unless a subclass requires very special behavior.protected boolean isNormalizingArea()
CGridAreafalse, then the default CSplitDockStationHandle returned
by CGridArea.getModeManagerHandle() will fail, clients must provide a custom implementation of
CSplitDockStationHandle if they override this method.
isNormalizingArea in class CGridAreapublic 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.public void setAutoRemove(boolean autoRemove)
0.true.
autoRemove - whether automatic cleanup is enabledpublic boolean isAutoRemove()
CControl.
setAutoRemove(boolean)protected void tryAutoRemove()
autoRemove()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||