|
|||||||||
| 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.ScrollButton
public class ScrollButton
Displays a scroll button for all your horizontal and vertical scrolling needs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.opengl.gui.Container |
|---|
Container.ChildOp |
| Field Summary | |
|---|---|
protected Button |
_btn
|
protected ActionListener |
_buttoner
|
protected boolean |
_less
|
protected BoundedRangeModel |
_model
|
protected int |
_orient
|
| Fields inherited from class com.threerings.opengl.gui.Container |
|---|
_children, _layout |
| Fields inherited from class com.threerings.opengl.gui.Component |
|---|
_alpha, _backgrounds, _borders, _colors, _ctx, _cursor, _enabled, _height, _hover, _hoverable, _insets, _listeners, _parent, _preferredSize, _properties, _rect, _styleConfigs, _tipmouse, _tiptext, _tooltipStyle, _transferHandler, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| 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 | |
|---|---|
ScrollButton(GlContext ctx,
boolean less)
Creates a vertical scroll button with the default range, value and extent. |
|
ScrollButton(GlContext ctx,
boolean less,
int orientation)
Creates a scroll button with the default range, value and extent. |
|
ScrollButton(GlContext ctx,
boolean less,
int orientation,
BoundedRangeModel model)
Creates a scroll button with the specified orientation which will interact with the supplied model. |
|
ScrollButton(GlContext ctx,
boolean less,
int orientation,
int min,
int value,
int extent,
int max)
Creates a scroll button with the specified orientation, range, value and extent. |
|
| Method Summary | |
|---|---|
protected String |
getDefaultStyleConfig()
Returns the name of the default config to be used for all instances of this component. |
BoundedRangeModel |
getModel()
Returns a reference to the scrollbar's range model. |
void |
wasAdded()
This method is called when we are added to a hierarchy that is connected to a top-level window (at which point we can rely on having a look and feel and can set ourselves up). |
void |
wasRemoved()
This method is called when we are removed from a hierarchy that is connected to a top-level window. |
| Methods inherited from class com.threerings.opengl.gui.Container |
|---|
add, add, add, add, applyOperation, computePreferredSize, getComponent, getComponentCount, getComponentIndex, getFirstDescendantFocus, getHitComponent, getLastDescendantFocus, getLayoutManager, getNextFocus, getPreviousFocus, layout, remove, remove, removeAll, renderComponent, replace, setAlpha, setEnabled, setHoverable, setLayoutManager, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ActionListener _buttoner
protected BoundedRangeModel _model
protected int _orient
protected boolean _less
protected Button _btn
| Constructor Detail |
|---|
public ScrollButton(GlContext ctx,
boolean less)
public ScrollButton(GlContext ctx,
boolean less,
int orientation)
public ScrollButton(GlContext ctx,
boolean less,
int orientation,
int min,
int value,
int extent,
int max)
public ScrollButton(GlContext ctx,
boolean less,
int orientation,
BoundedRangeModel model)
| Method Detail |
|---|
public BoundedRangeModel getModel()
public void wasAdded()
Component
wasAdded in class Containerpublic void wasRemoved()
ComponentComponent.wasAdded(), this is a fine place
to do so.
wasRemoved in class Containerprotected String getDefaultStyleConfig()
Component
getDefaultStyleConfig in class Container
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||