protected class ExternalizedCSplitDockStationHandler.Externalized extends Object implements CExternalizedModeArea
| Modifier | Constructor and Description |
|---|---|
protected |
Externalized() |
| Modifier and Type | Method and Description |
|---|---|
void |
addModeAreaListener(ModeAreaListener listener)
Adds a listener to this area.
|
boolean |
autoDefaultArea()
Tells whether this
ModeArea can automatically become
the default area of some mode. |
CLocation |
getCLocation(Dockable dockable)
Assuming
dockable is a child of this area, returns
the location of dockable. |
CLocation |
getCLocation(Dockable dockable,
Location location)
Assuming
dockable would be at location location
if it would be a child of this station, returns the CLocation that
matches location. |
DockableProperty |
getLocation(Dockable child)
Gets the location of
dockable which is a child
of this station. |
DockStation |
getStation()
Gets the station which is represented by this area.
|
String |
getUniqueId()
Gets a unique identifier for this area.
|
boolean |
isChild(Dockable dockable)
Tells whether
dockable is a direct child of this station. |
boolean |
isLocationRoot()
Tells whether this area can be used as root in a
Location. |
void |
removeModeAreaListener(ModeAreaListener listener)
Removes a listener from this area.
|
boolean |
respectWorkingAreas()
Tells whether children of this area have to respect the settings for
CWorkingAreas. |
void |
setController(DockController controller)
Connects this area with a controller.
|
boolean |
setLocation(Dockable dockable,
DockableProperty location,
AffectedSet set)
Sets the location of
dockable to location
and tries to ensure that dockable is a child of this station. |
void |
setMode(LocationMode mode)
Informs this area about the mode that uses it.
|
public DockableProperty getLocation(Dockable child)
StationModeAreadockable which is a child
of this station.getLocation in interface StationModeAreachild - the childnullpublic boolean setLocation(Dockable dockable, DockableProperty location, AffectedSet set)
StationModeAreadockable to location
and tries to ensure that dockable is a child of this station.dockable, for example because
a DockAcceptance does not allow the dockable to be moved. In such cases false is
returned.setLocation in interface StationModeAreadockable - the new or old childlocation - the new location, may be nullset - this method has to store all Dockables which might have changed their
mode in the set.true if dockable is now a child of this StationModeArea, false if notpublic String getUniqueId()
ModeAreagetUniqueId in interface ModeAreaCStation.getUniqueId()public boolean autoDefaultArea()
ModeAreaModeArea can automatically become
the default area of some mode.autoDefaultArea in interface ModeAreatrue if this can be a default area, false if notpublic boolean isLocationRoot()
ModeAreaLocation. An area that is not
a location root will (usually) not be used to set the location of a child.ModeArea should return true.isLocationRoot in interface ModeAreaModeArea agrees on seeing its ModeArea.getUniqueId() in a Locationpublic boolean isChild(Dockable dockable)
ModeAreadockable is a direct child of this station.public DockStation getStation()
ModeAreagetStation in interface ModeAreanullpublic void setController(DockController controller)
ModeAreasetController in interface ModeAreacontroller - the controller or nullpublic void setMode(LocationMode mode)
ModeAreapublic void addModeAreaListener(ModeAreaListener listener)
ModeAreaaddModeAreaListener in interface ModeArealistener - the new listenerpublic void removeModeAreaListener(ModeAreaListener listener)
ModeArearemoveModeAreaListener in interface ModeArealistener - the listener to removepublic CLocation getCLocation(Dockable dockable)
CModeAreadockable is a child of this area, returns
the location of dockable.getCLocation in interface CModeAreadockable - some childnull if not foundpublic CLocation getCLocation(Dockable dockable, Location location)
CModeAreadockable would be at location location
if it would be a child of this station, returns the CLocation that
matches location.getCLocation in interface CModeAreadockable - some element which may or may not be a child of this stationlocation - the location dockable would have if it would
be a child of this stationnull if not foundpublic boolean respectWorkingAreas()
CModeAreaCWorkingAreas.respectWorkingAreas in interface CModeAreaCopyright © 2018. All rights reserved.