|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.support.ListSpanStrategy
public abstract class ListSpanStrategy
Manages the Span
s of a DockStation
that orderes its Dockable
s like a list.
Constructor Summary | |
---|---|
ListSpanStrategy(String spanFactoryId,
DockStation station)
Creates a new strategy. |
Method Summary | |
---|---|
int |
getGap(int index)
Gets the size of the gap between button index-1 and
button index . |
protected abstract int |
getNumberOfDockables()
Gets the number of Dockable s that are actually shown on the station. |
int |
getTeasing()
Gets the current minimum size of the station. |
protected abstract boolean |
isHorizontal()
Tells whether the orientation of the underlying DockStation currently is horizontal. |
void |
reset()
To be called if the number of children or the orientation changed. |
void |
setController(DockController controller)
Called when the DockController of the FlapDockStation changes. |
void |
size(int index,
int size)
Configures the size of the index 'th Span . |
protected abstract void |
spanResized()
Called if at least one Span changed its size |
void |
tease(int index)
Opens some Span s such that a Dockable could be inserted
at index . |
void |
untease()
Makes all Span s invisible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListSpanStrategy(String spanFactoryId, DockStation station)
spanFactoryId
- the unique identifier used to create a StationSpanFactoryValue
station
- the station that is using this strategyMethod Detail |
---|
public void setController(DockController controller)
DockController
of the FlapDockStation
changes.
controller
- the new controller, can be null
protected abstract boolean isHorizontal()
DockStation
currently is horizontal.
A station is horizontal if the Dockable
s are ordered in a list going from the left side
of the station to the right side.
protected abstract int getNumberOfDockables()
Dockable
s that are actually shown on the station.
Dockable
sprotected abstract void spanResized()
Span
changed its size
public void reset()
public void tease(int index)
Span
s such that a Dockable
could be inserted
at index
.
index
- the index of the new Dockable
public void size(int index, int size)
index
'th Span
. Nothing happens if there
is no span at index
.
index
- the index of the spansize
- the new sizepublic void untease()
Span
s invisible.
public int getTeasing()
public int getGap(int index)
index-1
and
button index
.
index
- the index of the gap, where 0 is the most left gap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |