|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.flap.AbstractFlapLayoutManager
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. |
boolean |
isHoldSwitchable(FlapDockStation station,
Dockable dockable)
Tells whether the user is supposed to switch the hold property. |
void |
setHold(FlapDockStation station,
Dockable dockable,
boolean hold)
Called when the user changes the hold property of dockable. |
void |
setHoldSwitchable(FlapDockStation station,
Dockable dockable,
boolean switchable)
Sets the result of isHoldSwitchable(FlapDockStation, 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 bibliothek.gui.dock.station.flap.AbstractFlapLayoutManager |
|---|
addListener, fireHoldSwitchableChanged, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bibliothek.gui.dock.station.flap.FlapLayoutManager |
|---|
addListener, removeListener |
| Constructor Detail |
|---|
public DefaultFlapLayoutManager()
| Method Detail |
|---|
public void install(FlapDockStation station)
FlapLayoutManager
install in interface FlapLayoutManagerstation - the station that will use this managerpublic void uninstall(FlapDockStation station)
FlapLayoutManager
uninstall in interface FlapLayoutManagerstation - the station that will no longer use this manager
public int getSize(FlapDockStation station,
Dockable dockable)
FlapLayoutManagerdockable is about to open and station
has to find out which size dockable should have.
getSize in interface FlapLayoutManagerstation - the callerdockable - the child of station that is going to
be shown.
dockable
public boolean isHold(FlapDockStation station,
Dockable dockable)
FlapLayoutManagerdockable is added to station and
station does not know whether dockable should
be hold open even when it is not focused.
isHold in interface FlapLayoutManagerstation - the callerdockable - the new element on station
public void setHold(FlapDockStation station,
Dockable dockable,
boolean hold)
FlapLayoutManagerdockable.
setHold in interface FlapLayoutManagerstation - the callerdockable - the child of station whose property
has changedhold - the new value
public void setSize(FlapDockStation station,
Dockable dockable,
int size)
FlapLayoutManagerdockable.
setSize in interface FlapLayoutManagerstation - the callerdockable - the element whose size has been changedsize - the new size
public boolean isHoldSwitchable(FlapDockStation station,
Dockable dockable)
FlapLayoutManagerhold property.
isHoldSwitchable in interface FlapLayoutManagerstation - 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 property
public void setHoldSwitchable(FlapDockStation station,
Dockable dockable,
boolean switchable)
isHoldSwitchable(FlapDockStation, Dockable). The result will be
reset to true if dockable is removed from station.
station - the station for which the setting should be changeddockable - a child of stationswitchable - whether the hold property of dockable is switchable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||