|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.mode.station.CScreenDockStationHandle.Maximal
protected class CScreenDockStationHandle.Maximal
A representation of CScreenDockStationHandle
as CMaximizedModeArea
.
Constructor Summary | |
---|---|
protected |
CScreenDockStationHandle.Maximal()
|
Method Summary | |
---|---|
void |
addModeAreaListener(ModeAreaListener listener)
Adds a listener to this area. |
boolean |
autoDefaultArea()
Tells whether this ModeArea can automatically become
the default area of some mode. |
CLocation |
getCLocation(Dockable dockable)
Assuming dockable is a child of this area, returns
the location of dockable . |
CLocation |
getCLocation(Dockable dockable,
Location location)
Assuming dockable would be at location location
if it would be a child of this station, returns the CLocation that
matches location . |
Dockable[] |
getMaximized()
Gets the currently maximized elements. |
ScreenDockStation |
getStation()
Gets the station which is represented by this area. |
java.lang.String |
getUniqueId()
Gets a unique identifier for this area. |
LocationMode |
getUnmaximizedMode()
Tells which mode would be the preferred mode for unmaximization. |
boolean |
isChild(Dockable dockable)
Tells whether dockable is a direct child of this station. |
boolean |
isRepresenting(DockStation station)
Tells whether this area is representing station . |
ModeAreaListener[] |
listeners()
Gets all the listeners that are registered at this area. |
java.lang.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. |
java.lang.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 |
removeModeAreaListener(ModeAreaListener listener)
Removes a listener from this area. |
boolean |
respectWorkingAreas()
Tells whether children of this area have to respect the settings for CWorkingArea s. |
void |
setController(DockController controller)
Connects this area with a controller. |
void |
setMaximized(Dockable dockable,
boolean maximized,
Location history,
AffectedSet set)
Tells this parent to change the maximization state of dockable . |
void |
setMode(LocationMode mode)
Informs this area about the mode that uses it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CScreenDockStationHandle.Maximal()
Method Detail |
---|
public Dockable[] getMaximized()
MaximizedModeArea
getMaximized
in interface MaximizedModeArea
null
or emptypublic boolean isRepresenting(DockStation station)
MaximizedModeArea
station
. It is
legitimate for an area to represent more than one or no station at all.
isRepresenting
in interface MaximizedModeArea
station
- some station
true
if this represents station
public boolean autoDefaultArea()
ModeArea
ModeArea
can automatically become
the default area of some mode.
autoDefaultArea
in interface ModeArea
true
if this can be a default area, false
if notpublic java.lang.Runnable onApply(LocationModeEvent event)
MaximizedModeArea
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 MaximizedModeArea.onApply(LocationModeEvent, Dockable)
is called.
onApply
in interface MaximizedModeArea
event
- detailed informaion about the event
apply
has finished its jobpublic java.lang.Runnable onApply(LocationModeEvent event, Dockable replacement)
MaximizedModeArea
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.MaximizedModeArea.onApply(LocationModeEvent)
is called.
onApply
in interface MaximizedModeArea
event
- detailed information about the eventreplacement
- the suggested new maximized element
apply
has finished its jobpublic void prepareApply(Dockable dockable, Location history, AffectedSet set)
MaximizedModeArea
MaximizedMode
just before the mode is applied
to dockable
.
prepareApply
in interface MaximizedModeArea
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.public LocationMode getUnmaximizedMode()
MaximizedModeArea
getUnmaximizedMode
in interface MaximizedModeArea
null
public void setMaximized(Dockable dockable, boolean maximized, Location history, AffectedSet set)
MaximizedModeArea
dockable
. This
area may unmaximize other Dockable
s if necessary.
setMaximized
in interface MaximizedModeArea
dockable
- the maximized element, null
to indicate
that no element should be maximized.maximized
- the new state of dockable
history
- 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.public void addModeAreaListener(ModeAreaListener listener)
ModeArea
addModeAreaListener
in interface ModeArea
listener
- the new listenerpublic void removeModeAreaListener(ModeAreaListener listener)
ModeArea
removeModeAreaListener
in interface ModeArea
listener
- the listener to removepublic ModeAreaListener[] listeners()
public ScreenDockStation getStation()
ModeArea
getStation
in interface ModeArea
null
public java.lang.String getUniqueId()
ModeArea
getUniqueId
in interface ModeArea
CStation.getUniqueId()
public boolean isChild(Dockable dockable)
ModeArea
dockable
is a direct child of this station.
isChild
in interface ModeArea
dockable
- some element
true
if and only if the parent of dockable
is identical to this stationpublic boolean respectWorkingAreas()
CModeArea
CWorkingArea
s.
respectWorkingAreas
in interface CModeArea
public void setController(DockController controller)
ModeArea
setController
in interface ModeArea
controller
- the controller or null
public void setMode(LocationMode mode)
ModeArea
setMode
in interface ModeArea
mode
- the owner of this area, can be null
public CLocation getCLocation(Dockable dockable)
CModeArea
dockable
is a child of this area, returns
the location of dockable
.
getCLocation
in interface CModeArea
dockable
- some child
null
if not foundpublic CLocation getCLocation(Dockable dockable, Location location)
CModeArea
dockable
would be at location location
if it would be a child of this station, returns the CLocation
that
matches location
.
getCLocation
in interface CModeArea
dockable
- some element which may or may not be a child of this stationlocation
- the location dockable
would have if it would
be a child of this station
null
if not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |