|
||||||||||
| 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.Spinner
public class Spinner
Displays a value with little next and previous buttons.
| Field Summary |
|---|
| Fields inherited from class com.threerings.opengl.gui.Component |
|---|
DEFAULT, DISABLED, HOVER |
| Fields inherited from interface com.threerings.opengl.gui.UIConstants |
|---|
BOTTOM, CENTER, DEFAULT_SIZE, DEFAULT_SPACING, GLOW, HORIZONTAL, LEFT, NORMAL, OUTLINE, OVERLAPPING, PLAIN, RIGHT, SHADOW, TOP, VERTICAL |
| Constructor Summary | |
|---|---|
Spinner(GlContext ctx)
Creates a spinner with a default Number spinner model with no minimum or maximum value, stepSize equal to 1, and an initial value of 0. |
|
Spinner(GlContext ctx,
SpinnerModel model)
Creates a spinner with the specified spinner model. |
|
| Method Summary | |
|---|---|
String |
getAction()
Get the action of this spinner. |
SpinnerModel |
getModel()
Get the current model. |
void |
setAction(String action)
Set the action that will be fired when the state of this spinner changes, the argument will be the current value of the model. |
void |
setEditorStyleConfig(ConfigReference<StyleConfig> ref)
Configures the style of the editor. |
void |
setEnabled(boolean enabled)
Sets this components enabled state. |
void |
setModel(SpinnerModel newModel)
Set a new model. |
void |
setNextStyleConfig(ConfigReference<StyleConfig> ref)
Configures the style of the next button. |
void |
setPreviousStyleConfig(ConfigReference<StyleConfig> ref)
Configures the style of the previous button. |
void |
setStyleConfig(String name)
Sets the style configuration. |
| Methods inherited from class com.threerings.opengl.gui.Container |
|---|
add, add, add, add, getComponent, getComponentCount, getComponentIndex, getHitComponent, getLayoutManager, remove, remove, removeAll, replace, setAlpha, setHoverable, setLayoutManager, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Spinner(GlContext ctx)
public Spinner(GlContext ctx,
SpinnerModel model)
| Method Detail |
|---|
public void setModel(SpinnerModel newModel)
public SpinnerModel getModel()
public void setAction(String action)
public String getAction()
public void setEnabled(boolean enabled)
Component
setEnabled in class Containerpublic void setStyleConfig(String name)
Component
setStyleConfig in class Componentpublic void setEditorStyleConfig(ConfigReference<StyleConfig> ref)
public void setNextStyleConfig(ConfigReference<StyleConfig> ref)
public void setPreviousStyleConfig(ConfigReference<StyleConfig> ref)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||