|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FlapLayoutManager
A FlapLayoutManager
stores properties of FlapDockStation
s
and can influence the behavior of a FlapDockStation
.
An implementation might be interested in these methods:
FlapDockStation.updateHold(Dockable)
when the hold property of a Dockable
needs to be changedFlapDockStation.updateWindowSize(Dockable)
when the size of a Dockable
needs to be updated
Method Summary | |
---|---|
void |
addListener(FlapLayoutManagerListener listener)
Adds an observer to this manager, the observer is to be informed if an important property changes. |
int |
getSize(FlapDockStation station,
Dockable dockable)
Called when dockable is about to open and station
has to find out which size dockable should have. |
void |
install(FlapDockStation station)
Called before this manager is used. |
boolean |
isHold(FlapDockStation station,
Dockable dockable)
Called when dockable is added to station and
station does not know whether dockable should
be hold open even when it is not focused. |
boolean |
isHoldSwitchable(FlapDockStation station,
Dockable dockable)
Tells whether the user is supposed to switch the hold property. |
void |
removeListener(FlapLayoutManagerListener listener)
Removes the observer listener from this manager. |
void |
setHold(FlapDockStation station,
Dockable dockable,
boolean hold)
Called when the user changes the hold property of dockable . |
void |
setSize(FlapDockStation station,
Dockable dockable,
int size)
Called when the user changes the size of dockable . |
void |
uninstall(FlapDockStation station)
Called when this manager is no longer used. |
Method Detail |
---|
void install(FlapDockStation station)
station
- the station that will use this managervoid uninstall(FlapDockStation station)
station
- the station that will no longer use this managervoid addListener(FlapLayoutManagerListener listener)
listener
- the new observer, not null
void removeListener(FlapLayoutManagerListener listener)
listener
from this manager.
listener
- the observer to removeboolean isHold(FlapDockStation station, Dockable dockable)
dockable
is added to station
and
station
does not know whether dockable
should
be hold open even when it is not focused.
station
- the callerdockable
- the new element on station
void setHold(FlapDockStation station, Dockable dockable, boolean hold)
dockable
.
station
- the callerdockable
- the child of station
whose property
has changedhold
- the new valueboolean isHoldSwitchable(FlapDockStation station, Dockable dockable)
hold
property.
station
- the callerdockable
- the child of station
whose property is asked
true
if the hold property can be changed, false
if the user should not be
presented with a button to change the propertyint getSize(FlapDockStation station, Dockable dockable)
dockable
is about to open and station
has to find out which size dockable
should have.
station
- the callerdockable
- the child of station
that is going to
be shown.
dockable
void setSize(FlapDockStation station, Dockable dockable, int size)
dockable
.
station
- the callerdockable
- the element whose size has been changedsize
- the new size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |