Package bibliothek.gui.dock.facile.mode
Interface ModeArea
- All Known Subinterfaces:
CExternalizedModeArea,CMaximizedModeArea,CMinimizedModeArea,CModeArea,CNormalModeArea,ExternalizedModeArea,MaximizedModeArea,MinimizedModeArea,NormalModeArea,StationModeArea
- All Known Implementing Classes:
CFlapDockStationHandle,CScreenDockStationHandle.External,CScreenDockStationHandle.Maximal,CSplitDockStationHandle.Maximal,CSplitDockStationHandle.Normal,ExternalizedCSplitDockStationHandler.Externalized,FlapDockStationHandle
public interface ModeArea
A representation of some area that can show
Dockables,
it is a wrapper for a DockStation.- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddModeAreaListener(ModeAreaListener listener) Adds a listener to this area.booleanTells whether thisModeAreacan automatically become the default area of some mode.Gets the station which is represented by this area.Gets a unique identifier for this area.booleanTells whetherdockableis a direct child of this station.booleanTells whether this area can be used as root in aLocation.voidremoveModeAreaListener(ModeAreaListener listener) Removes a listener from this area.voidsetController(DockController controller) Connects this area with a controller.voidsetMode(LocationMode mode) Informs this area about the mode that uses it.
-
Method Details
-
getUniqueId
String getUniqueId()Gets a unique identifier for this area.- Returns:
- the unique identifier
- See Also:
-
autoDefaultArea
boolean autoDefaultArea()Tells whether thisModeAreacan automatically become the default area of some mode.- Returns:
trueif this can be a default area,falseif not
-
isLocationRoot
boolean isLocationRoot()Tells whether this area can be used as root in aLocation. An area that is not a location root will (usually) not be used to set the location of a child.
Most implementations ofModeAreashould returntrue.- Returns:
- whether this
ModeAreaagrees on seeing itsgetUniqueId()in aLocation
-
isChild
Tells whetherdockableis a direct child of this station.- Parameters:
dockable- some element- Returns:
trueif and only if the parent ofdockableis identical to this station
-
getStation
DockStation getStation()Gets the station which is represented by this area.- Returns:
- the station, not
null
-
setController
Connects this area with a controller. It's up to the area to add or remove listeners if necessary.- Parameters:
controller- the controller ornull
-
setMode
Informs this area about the mode that uses it.- Parameters:
mode- the owner of this area, can benull
-
addModeAreaListener
Adds a listener to this area.- Parameters:
listener- the new listener
-
removeModeAreaListener
Removes a listener from this area.- Parameters:
listener- the listener to remove
-