Package bibliothek.gui.dock.facile.mode
Interface MaximizedModeArea
- All Superinterfaces:
ModeArea
- All Known Subinterfaces:
CMaximizedModeArea
- All Known Implementing Classes:
CScreenDockStationHandle.Maximal,CSplitDockStationHandle.Maximal
The parent of a set of
Dockables that are maximized. The MaximizedMode, which
is feed with these areas, assumes that a MaximizedModeArea is also
some other kind of area (e.g. a NormalModeArea).- Author:
- Benjamin Sigg
-
Method Summary
Modifier and TypeMethodDescriptiongetLocation(Dockable child) Gets the location ofdockablewhich is a child of this station.Dockable[]Gets the currently maximized elements.Tells which mode would be the preferred mode for unmaximization.booleanisRepresenting(DockStation station) Tells whether this area is representingstation.onApply(LocationModeEvent event) This method is called before the methodapplyis executed of aLocationModethat is not the owner of this area.onApply(LocationModeEvent event, Dockable replacement) This method is called before the methodapplyis executed of aLocationModethat is not the owner of this area.voidprepareApply(Dockable dockable, Location history, AffectedSet set) This method is called byMaximizedModejust before the mode is applied todockable.voidsetMaximized(Dockable dockable, boolean maximized, Location location, AffectedSet set) Tells this parent to change the maximization state ofdockable.Methods inherited from interface bibliothek.gui.dock.facile.mode.ModeArea
addModeAreaListener, autoDefaultArea, getStation, getUniqueId, isChild, isLocationRoot, removeModeAreaListener, setController, setMode
-
Method Details
-
onApply
This method is called before the methodapplyis executed of aLocationModethat is not the owner of this area. The elementevent.getDockable()may or may not be a child of this station. This method is called beforeonApply(LocationModeEvent, Dockable)is called.- Parameters:
event- detailed information about the event- Returns:
- a piece of code executed once
applyhas finished its job
-
onApply
This method is called before the methodapplyis executed of aLocationModethat is not the owner of this area. The elementevent.getDockable()is a direct or indirect child of this area and maximized. TheMaximizedModesuggests to usereplacementas direct child once the old element has been removed. This method must decide how this area reacts on the pending change, e.g. set its maximized dockable tonulland later re-maximize. The result of this method is aRunnablewhich will be executed once theapplymethod is finished.
This method is called afteronApply(LocationModeEvent)is called.- Parameters:
event- detailed information about the eventreplacement- the suggested new maximized element- Returns:
- a piece of code executed once
applyhas finished its job
-
prepareApply
This method is called byMaximizedModejust before the mode is applied todockable.- Parameters:
dockable- the new child of this areahistory- future location ofdockableset- this method has to store allDockables which might have changed their mode in the set.
-
setMaximized
Tells this parent to change the maximization state ofdockable. This area may unmaximize otherDockables if necessary.- Parameters:
dockable- the maximized element,nullto indicate that no element should be maximized.maximized- the new state ofdockablelocation- the expected location ofdockableafter this method completed, may benullset- this method has to store allDockables which might have changed their mode in the set.
-
getMaximized
Dockable[] getMaximized()Gets the currently maximized elements.- Returns:
- the currently maximized dockables, can be
nullor empty
-
isRepresenting
Tells whether this area is representingstation. It is legitimate for an area to represent more than one or no station at all.- Parameters:
station- some station- Returns:
trueif this representsstation
-
getUnmaximizedMode
LocationMode getUnmaximizedMode()Tells which mode would be the preferred mode for unmaximization.- Returns:
- the preferred unmaximized mode, can be
null
-
getLocation
Gets the location ofdockablewhich is a child of this station.- Parameters:
child- the child- Returns:
- the location, may be
null
-