|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.flap.DefaultFlapLayoutManager
public class DefaultFlapLayoutManager
The default implementation of FlapLayoutManager
. Uses the same size for all
children of one FlapDockStation
.
Constructor Summary | |
---|---|
DefaultFlapLayoutManager()
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFlapLayoutManager()
Method Detail |
---|
public void install(FlapDockStation station)
FlapLayoutManager
install
in interface FlapLayoutManager
station
- the station that will use this managerpublic void uninstall(FlapDockStation station)
FlapLayoutManager
uninstall
in interface FlapLayoutManager
station
- the station that will no longer use this managerpublic int getSize(FlapDockStation station, Dockable dockable)
FlapLayoutManager
dockable
is about to open and station
has to find out which size dockable
should have.
getSize
in interface FlapLayoutManager
station
- the callerdockable
- the child of station
that is going to
be shown.
dockable
public boolean isHold(FlapDockStation station, Dockable dockable)
FlapLayoutManager
dockable
is added to station
and
station
does not know whether dockable
should
be hold open even when it is not focused.
isHold
in interface FlapLayoutManager
station
- the callerdockable
- the new element on station
public void setHold(FlapDockStation station, Dockable dockable, boolean hold)
FlapLayoutManager
dockable
.
setHold
in interface FlapLayoutManager
station
- the callerdockable
- the child of station
whose property
has changedhold
- the new valuepublic void setSize(FlapDockStation station, Dockable dockable, int size)
FlapLayoutManager
dockable
.
setSize
in interface FlapLayoutManager
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 |