Package bibliothek.gui.dock.facile.mode
Interface StationModeArea
- All Superinterfaces:
ModeArea
- All Known Subinterfaces:
CExternalizedModeArea,CMinimizedModeArea,CNormalModeArea,ExternalizedModeArea,MinimizedModeArea,NormalModeArea
- All Known Implementing Classes:
CFlapDockStationHandle,CScreenDockStationHandle.External,CSplitDockStationHandle.Normal,ExternalizedCSplitDockStationHandler.Externalized,FlapDockStationHandle
A representation of a
DockStation which can be accessed
through Modes.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptiongetLocation(Dockable child) Gets the location ofdockablewhich is a child of this station.booleansetLocation(Dockable dockable, DockableProperty location, AffectedSet set) Sets the location ofdockabletolocationand tries to ensure thatdockableis a child of this station.
This method may completely fail to change the location ofdockable, for example because aDockAcceptancedoes not allow the dockable to be moved.Methods inherited from interface bibliothek.gui.dock.facile.mode.ModeArea
addModeAreaListener, autoDefaultArea, getStation, getUniqueId, isChild, isLocationRoot, removeModeAreaListener, setController, setMode
-
Method Details
-
getLocation
Gets the location ofdockablewhich is a child of this station.- Parameters:
child- the child- Returns:
- the location, may be
null
-
setLocation
Sets the location ofdockabletolocationand tries to ensure thatdockableis a child of this station.
This method may completely fail to change the location ofdockable, for example because aDockAcceptancedoes not allow the dockable to be moved. In such casesfalseis returned.- Parameters:
dockable- the new or old childlocation- the new location, may benullset- this method has to store allDockables which might have changed their mode in the set.- Returns:
trueifdockableis now a child of thisStationModeArea,falseif not
-