|
||||||||||
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<S>
S
- the kind of station represented by this wrapperpublic abstract class AbstractDockableCStation<S extends DockStation>
An abstract implementation of CStation
that can be docked like a CDockable
.
Field Summary |
---|
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_NORMALIZE, ACTION_KEY_UNEXTERNALIZE, ACTION_KEY_UNMAXIMIZE_EXTERNALIZED |
Constructor Summary | |
---|---|
protected |
AbstractDockableCStation()
Creates a new station but does not yet initialize its fields. |
|
AbstractDockableCStation(S station,
java.lang.String id,
CLocation location,
CommonDockable dockable)
Creates a new station. |
Method Summary | |
---|---|
CDockable |
asDockable()
If this station is a CDockable as well, then this method returns
the representation of this station as CDockable . |
CStation<?> |
asStation()
Gets this or an object representing this as
CStation . |
protected CommonDockable |
createCommonDockable()
Creates the CommonDockable that is associated with this dockable, called the first
time the CommonDockable is required for an operation. |
S |
getStation()
Gets the internal representation of this CStation . |
CLocation |
getStationLocation()
Gets a location which represents directly CStation.getStation() . |
java.lang.String |
getUniqueId()
Gets a unique and constant identifier for this station |
protected void |
init(S station,
java.lang.String id,
CLocation location,
CommonDockable dockable)
Initializes the fields of this station. |
protected abstract void |
install(CControlAccess access)
Called when this station is added to a CControl . |
boolean |
isWorkingArea()
Tells whether this station is a special working area or not. |
void |
setControl(CControlAccess access)
Sets the CControl which is responsible for this dockable. |
protected abstract void |
uninstall(CControlAccess access)
Called when this station is removed from a CControl . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.common.CStation |
---|
createPerspective, getTypeId |
Methods inherited from interface bibliothek.gui.dock.common.intern.CDockable |
---|
isCloseable, isExternalizable, isMaximizable, isMinimizable, isStackable |
Constructor Detail |
---|
public AbstractDockableCStation(S station, java.lang.String id, CLocation location, CommonDockable dockable)
station
- the internal representation of this stationid
- the unique id of this stationlocation
- a location that points directly to this stationdockable
- how this station appears as dockableprotected AbstractDockableCStation()
init(DockStation, String, CLocation, CommonDockable)
.
Method Detail |
---|
protected void init(S station, java.lang.String id, CLocation location, CommonDockable dockable)
station
- the internal representation of this stationid
- the unique id of this stationlocation
- a location that points directly to this stationdockable
- how this station appears as dockableprotected CommonDockable createCommonDockable()
AbstractCDockable
CommonDockable
that is associated with this dockable, called the first
time the CommonDockable
is required for an operation.
createCommonDockable
in class AbstractCDockable
public CLocation getStationLocation()
CStation
CStation.getStation()
.
getStationLocation
in interface CStation<S extends DockStation>
station
public java.lang.String getUniqueId()
CStation
getUniqueId
in interface CStation<S extends DockStation>
public S getStation()
CStation
CStation
.
getStation
in interface CStation<S extends DockStation>
public CStation<?> asStation()
CDockable
this
or an object representing this
as
CStation
.
asStation
in interface CDockable
null
public void setControl(CControlAccess access)
AbstractCDockable
CControl
which is responsible for this dockable.
setControl
in interface CStation<S extends DockStation>
setControl
in interface CDockable
setControl
in class AbstractCDockable
access
- the new controlpublic boolean isWorkingArea()
CStation
CControl.addStation(CStation, boolean)
)
or must be a SingleCDockable
.
isWorkingArea
in interface CStation<S extends DockStation>
true
if this is a working area, false
otherwisepublic CDockable asDockable()
CStation
CDockable
as well, then this method returns
the representation of this station as CDockable
.
asDockable
in interface CStation<S extends DockStation>
null
protected abstract void install(CControlAccess access)
CControl
.
access
- access to the internals of the new ownerprotected abstract void uninstall(CControlAccess access)
CControl
.
access
- access to the internals of the old owner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |