|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MaximizedModeArea
The parent of a set of dockables that are maximized. The MaximizedMode
, which
is feed with this areas, assumes that a MaximizedModeArea
is also
some other kind of area (e.g. a NormalModeArea
).
Method Summary | |
---|---|
Dockable[] |
getMaximized()
Gets the currently maximized elements. |
LocationMode |
getUnmaximizedMode()
Tells which mode would be the preferred mode for unmaximization. |
boolean |
isRepresenting(DockStation station)
Tells whether this area is representing station . |
Runnable |
onApply(LocationModeEvent event)
This method is called before the method apply
is executed of a LocationMode that is not the owner of this area. |
Runnable |
onApply(LocationModeEvent event,
Dockable replacement)
This method is called before the method apply
is executed of a LocationMode that is not the owner of this area. |
void |
prepareApply(Dockable dockable,
AffectedSet affected)
This method is called by MaximizedMode just before the mode is applied
to dockable . |
void |
setMaximized(Dockable dockable,
boolean maximized,
AffectedSet set)
Tells this parent to change the maximization state of dockable . |
Methods inherited from interface bibliothek.gui.dock.facile.mode.ModeArea |
---|
addModeAreaListener, autoDefaultArea, getStation, getUniqueId, isChild, removeModeAreaListener, respectWorkingAreas, setController, setMode |
Method Detail |
---|
Runnable onApply(LocationModeEvent event)
apply
is executed of a LocationMode
that is not the owner of this area. The element
event.getDockable()
may or may not be a child of this station. This method is called
before onApply(LocationModeEvent, Dockable)
is called.
event
- detailed informaion about the event
apply
has finished its jobRunnable onApply(LocationModeEvent event, Dockable replacement)
apply
is executed of a LocationMode
that is not the owner of this area. The element
event.getDockable()
is a direct or indirect child of this area and maximized. The
MaximizedMode
suggests to use replacement
as 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 to null
and
later re-maximize. The result of this method is a Runnable
which will be executed
once the apply
method is finished.onApply(LocationModeEvent)
is called.
event
- detailed information about the eventreplacement
- the suggested new maximized element
apply
has finished its jobvoid prepareApply(Dockable dockable, AffectedSet affected)
MaximizedMode
just before the mode is applied
to dockable
.
dockable
- the element which gets maximizedaffected
- collects dockables which might change their modevoid setMaximized(Dockable dockable, boolean maximized, AffectedSet set)
dockable
. This
area may unmaximize other Dockable
s if necessary.
dockable
- the maximized element, null
to indicate
that no element should be maximized.maximized
- the new state of dockable
set
- this method has to store all Dockable
s which might have changed their
mode in the set.Dockable[] getMaximized()
null
or emptyboolean isRepresenting(DockStation station)
station
. It is
legitimate for an area to represent more than one or no station at all.
station
- some station
true
if this represents station
LocationMode getUnmaximizedMode()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |