|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.Component
com.threerings.opengl.gui.Container
com.threerings.opengl.gui.ScrollingList<V,C>
public abstract class ScrollingList<V,C extends Component>
Provides a scrollable, lazily instantiated component view of values
| Field Summary |
|---|
| Fields inherited from class com.threerings.opengl.gui.Component |
|---|
DEFAULT, DISABLED, HOVER |
| Constructor Summary | |
|---|---|
ScrollingList(GlContext ctx)
Instantiates an empty ScrollingList. |
|
ScrollingList(GlContext ctx,
Collection<? extends V> values)
Instantiates a ScrollingList with an initial value collection. |
|
| Method Summary | |
|---|---|
void |
addValue(int index,
V value)
Inserts a value into our list at the specified position. |
void |
addValue(V value,
boolean snapToBottom)
Appends a value to our list, possibly scrolling our view to display it. |
void |
addValues(Collection<? extends V> values)
Inserts a collection of values into our list. |
void |
addValues(int index,
Collection<? extends V> values)
Inserts a collection of values into our list starting at the specified position. |
int |
getIndex(V value)
Returns the index of a value. |
void |
removeValues()
Clears all the current values and any related components. |
void |
removeValuesAt(int index,
int num)
Removes values starting at a specific index. |
void |
removeValuesFromTop(int num)
Removes values from the top of the list. |
void |
snapToValue(V value)
Snaps the view so the value is at the top. |
| Methods inherited from class com.threerings.opengl.gui.Container |
|---|
add, add, add, add, getComponent, getComponentCount, getComponentIndex, getHitComponent, getLayoutManager, remove, remove, removeAll, replace, setAlpha, setEnabled, setHoverable, setLayoutManager, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScrollingList(GlContext ctx)
ScrollingList.
public ScrollingList(GlContext ctx,
Collection<? extends V> values)
ScrollingList with an initial value collection.
| Method Detail |
|---|
public void addValue(V value,
boolean snapToBottom)
public void addValue(int index,
V value)
public void addValues(Collection<? extends V> values)
public void addValues(int index,
Collection<? extends V> values)
public void removeValues()
public int getIndex(V value)
public void removeValuesFromTop(int num)
public void removeValuesAt(int index,
int num)
public void snapToValue(V value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||