|
|||||||||
| 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.ScrollPane
public class ScrollPane
Provides a scrollable clipped view on a sub-heirarchy of components.
| Nested Class Summary | |
|---|---|
protected static class |
ScrollPane.Viewport
Does all the heavy lifting for the ScrollPane. |
| Nested classes/interfaces inherited from class com.threerings.opengl.gui.Container |
|---|
Container.ChildOp |
| Field Summary | |
|---|---|
protected ScrollBar |
_hbar
|
protected ScrollButton |
_hlbtn
|
protected ScrollButton |
_hmbtn
|
protected boolean |
_layingOut
|
protected boolean |
_showAlways
|
protected ScrollBar |
_vbar
|
protected ScrollButton |
_vlbtn
|
protected ScrollButton |
_vmbtn
|
protected ScrollPane.Viewport |
_vport
|
| 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 |
| Constructor Summary | |
|---|---|
ScrollPane(GlContext ctx,
Component child)
|
|
ScrollPane(GlContext ctx,
Component child,
boolean vert,
boolean horiz)
|
|
ScrollPane(GlContext ctx,
Component child,
boolean vert,
boolean horiz,
int snap)
|
|
ScrollPane(GlContext ctx,
Component child,
boolean vert,
boolean horiz,
int snap,
boolean buttons)
|
|
| Method Summary | |
|---|---|
Component |
getChild()
Returns a reference to the child of this scroll pane. |
ScrollBar |
getHorizontalScrollBar()
Returns a reference to the horizontal scroll bar. |
ScrollBar |
getVerticalScrollBar()
Returns a reference to the vertical scroll bar. |
void |
layout()
Instructs this component to lay itself out. |
void |
setShowScrollbarAlways(boolean showAlways)
Toggles the scroll bar policy. |
void |
setViewportStyleConfig(ConfigReference<StyleConfig> ref)
Configures the style of the viewport (the non-scrolling container that will hold the scrolling contents). |
| Methods inherited from class com.threerings.opengl.gui.Container |
|---|
add, add, add, add, applyOperation, computePreferredSize, getComponent, getComponentCount, getComponentIndex, getDefaultStyleConfig, getFirstDescendantFocus, getHitComponent, getLastDescendantFocus, getLayoutManager, getNextFocus, getPreviousFocus, remove, remove, removeAll, renderComponent, replace, setAlpha, setEnabled, setHoverable, setLayoutManager, validate, wasAdded, wasRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ScrollPane.Viewport _vport
protected ScrollBar _vbar
protected ScrollBar _hbar
protected ScrollButton _vlbtn
protected ScrollButton _vmbtn
protected ScrollButton _hlbtn
protected ScrollButton _hmbtn
protected boolean _showAlways
protected boolean _layingOut
| Constructor Detail |
|---|
public ScrollPane(GlContext ctx,
Component child)
public ScrollPane(GlContext ctx,
Component child,
boolean vert,
boolean horiz)
public ScrollPane(GlContext ctx,
Component child,
boolean vert,
boolean horiz,
int snap)
public ScrollPane(GlContext ctx,
Component child,
boolean vert,
boolean horiz,
int snap,
boolean buttons)
| Method Detail |
|---|
public Component getChild()
public ScrollBar getVerticalScrollBar()
public ScrollBar getHorizontalScrollBar()
public void setShowScrollbarAlways(boolean showAlways)
public void setViewportStyleConfig(ConfigReference<StyleConfig> ref)
public void layout()
Component
layout in class Container
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||