|
||||||||||
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 Dockable
s 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
).
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,
Location history,
AffectedSet set)
This method is called by MaximizedMode just before the mode is applied
to dockable . |
void |
setMaximized(Dockable dockable,
boolean maximized,
Location location,
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, 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, Location history, AffectedSet set)
MaximizedMode
just before the mode is applied
to dockable
.
dockable
- the new child of this areahistory
- future location of dockable
set
- this method has to store all Dockable
s which might have changed their
mode in the set.void setMaximized(Dockable dockable, boolean maximized, Location location, 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
location
- the expected location of dockable
after this method completed, may be null
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 |