|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.facile.mode.station.FlapDockStationHandle
public class FlapDockStationHandle
A connection between a FlapDockStation and the
MinimizedModeArea interface.
| Constructor Summary | |
|---|---|
FlapDockStationHandle(String id,
FlapDockStation station)
Creates a new handle. |
|
| Method Summary | |
|---|---|
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. |
DockableProperty |
getLocation(Dockable child)
Gets the location of dockable which is a child
of this station. |
FlapDockStation |
getStation()
Gets the station which is managed by this handle. |
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()
|
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.
This method may completely fail to change the location of dockable, for example because
a DockAcceptance does not allow the dockable to be moved. |
void |
setMode(LocationMode mode)
Informs this area about the mode that uses it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlapDockStationHandle(String id,
FlapDockStation station)
id - unique id of this handlestation - the station managed by this handle| Method Detail |
|---|
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 void addModeAreaListener(ModeAreaListener listener)
ModeArea
addModeAreaListener in interface ModeArealistener - the new listenerpublic void removeModeAreaListener(ModeAreaListener listener)
ModeArea
removeModeAreaListener in interface ModeArealistener - the listener to removepublic void setController(DockController controller)
ModeArea
setController in interface ModeAreacontroller - the controller or nullpublic void setMode(LocationMode mode)
ModeArea
setMode in interface ModeAreamode - the owner of this area, can be nullpublic FlapDockStation getStation()
getStation in interface ModeAreapublic DockableProperty getLocation(Dockable child)
StationModeAreadockable which is a child
of this station.
getLocation in interface StationModeAreachild - the child
nullpublic String getUniqueId()
ModeArea
getUniqueId in interface ModeAreaCStation.getUniqueId()public boolean isChild(Dockable dockable)
ModeAreadockable is a direct child of this station.
isChild in interface ModeAreadockable - some element
true if and only if the parent of dockable
is identical to this stationpublic boolean respectWorkingAreas()
public boolean setLocation(Dockable dockable,
DockableProperty location,
AffectedSet set)
StationModeAreadockable to location
and tries to ensure that dockable is a child of this station.
This method may completely fail to change the location of 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 docakble is now a child of this StationModeArea, false if not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||