com.threerings.opengl.gui.config
Class ComponentConfig.ScrollPane

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.gui.config.ComponentConfig
          extended by com.threerings.opengl.gui.config.ComponentConfig.ScrollPane
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ComponentConfig

public static class ComponentConfig.ScrollPane
extends ComponentConfig

A scroll pane.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.gui.config.ComponentConfig
ComponentConfig.Button, ComponentConfig.ChatOverlay, ComponentConfig.CheckBox, ComponentConfig.ColorPicker, ComponentConfig.ComboBox, ComponentConfig.Container, ComponentConfig.HTMLView, ComponentConfig.Label, ComponentConfig.List, ComponentConfig.Orientation, ComponentConfig.PasswordField, ComponentConfig.RenderableView, ComponentConfig.ScrollBar, ComponentConfig.ScrollPane, ComponentConfig.Slider, ComponentConfig.Spacer, ComponentConfig.Spinner, ComponentConfig.StatusLabel, ComponentConfig.TabbedPane, ComponentConfig.TextArea, ComponentConfig.TextComponent, ComponentConfig.TextEditor, ComponentConfig.TextField, ComponentConfig.ToggleButton, ComponentConfig.UserInterface, ComponentConfig.ViewModel
 
Field Summary
 boolean buttons
          If we show only buttons.
 ComponentConfig child
          The child component.
 boolean horizontal
          Whether or not to allow horizontal scrolling.
 boolean showScrollbarAlways
          Whether or not to always show the scrollbar.
 int snap
          The snap value.
 boolean vertical
          Whether or not to allow vertical scrolling.
 ConfigReference<StyleConfig> viewportStyle
          The style for the viewport, if non-default.
 
Fields inherited from class com.threerings.opengl.gui.config.ComponentConfig
alpha, enabled, hoverable, preferredSize, style, tag, tooltipRelativeToMouse, tooltipText, visible
 
Constructor Summary
ComponentConfig.ScrollPane()
           
 
Method Summary
protected  void configure(GlContext ctx, Scope scope, MessageBundle msgs, Component comp)
          Configures the specified component.
 void invalidate()
          Invalidates any cached data.
protected  Component maybeRecreate(GlContext ctx, Scope scope, MessageBundle msgs, Component comp)
          Recreates the component if the supplied component doesn't match the configuration.
 
Methods inherited from class com.threerings.opengl.gui.config.ComponentConfig
getClass, getComponent, getMessage
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

vertical

@Editable(hgroup="v")
public boolean vertical
Whether or not to allow vertical scrolling.


horizontal

@Editable(hgroup="v")
public boolean horizontal
Whether or not to allow horizontal scrolling.


buttons

@Editable(hgroup="v")
public boolean buttons
If we show only buttons.


snap

@Editable(hgroup="s")
public int snap
The snap value.


showScrollbarAlways

@Editable(hgroup="s")
public boolean showScrollbarAlways
Whether or not to always show the scrollbar.


viewportStyle

@Editable(nullable=true)
public ConfigReference<StyleConfig> viewportStyle
The style for the viewport, if non-default.


child

@Editable
public ComponentConfig child
The child component.

Constructor Detail

ComponentConfig.ScrollPane

public ComponentConfig.ScrollPane()
Method Detail

invalidate

public void invalidate()
Description copied from class: ComponentConfig
Invalidates any cached data.

Overrides:
invalidate in class ComponentConfig

maybeRecreate

protected Component maybeRecreate(GlContext ctx,
                                  Scope scope,
                                  MessageBundle msgs,
                                  Component comp)
Description copied from class: ComponentConfig
Recreates the component if the supplied component doesn't match the configuration.

Specified by:
maybeRecreate in class ComponentConfig

configure

protected void configure(GlContext ctx,
                         Scope scope,
                         MessageBundle msgs,
                         Component comp)
Description copied from class: ComponentConfig
Configures the specified component.

Overrides:
configure in class ComponentConfig