|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
@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 areapublic ExternalizingCGridArea(CControl control, String uniqueId)
control
- the owner of this areauniqueId
- the unique identifier of this stationMethod Detail |
---|
protected ExternalizedCSplitDockStationHandler createSplitDockStationHandle(CControl control)
CGridArea
this
as CNormalModeArea
and CMaximizedModeArea
.
createSplitDockStationHandle
in class CGridArea
control
- the control in whose realm this area is used
null
protected ExternalizedCSplitDockStationHandler getModeManagerHandle()
CGridArea
this
as CNormalModeArea
and as
CMaximizedModeArea
.
getModeManagerHandle
in class CGridArea
this
as areaprotected void install(CControlAccess access)
AbstractDockableCStation
CControl
.
install
in class CGridArea
access
- access to the internals of the new ownerprotected void uninstall(CControlAccess access)
AbstractDockableCStation
CControl
.
uninstall
in class CGridArea
access
- access to the internals of the old ownerpublic boolean isMaximizable()
CDockable
CDockable
can be maximized by the user.
isMaximizable
in interface CDockable
isMaximizable
in class CGridArea
true
if this element can be maximizedpublic boolean isExternalizable()
CDockable
CDockable
can be externalized by the user.
isExternalizable
in interface CDockable
isExternalizable
in class CGridArea
true
if this element can be externalizedpublic boolean isMinimizable()
CDockable
CDockable
can be minimized by the user.
isMinimizable
in interface CDockable
isMinimizable
in class CGridArea
true
if this element can be minimizedpublic boolean isNormalizeable()
AbstractCDockable
true
, clients should not override this method unless they know exactly what they are doing.
isNormalizeable
in interface CDockable
isNormalizeable
in class AbstractCDockable
true
, unless a subclass requires very special behavior.protected boolean isNormalizingArea()
CGridArea
false
, 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 CGridArea
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.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 |