|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.gui.config.ComponentConfig
com.threerings.opengl.gui.config.ComponentConfig.Label
public static class ComponentConfig.Label
A label.
| Nested Class Summary |
|---|
| Field Summary | |
|---|---|
Label.Fit |
fit
Determines how to fit overlong text in the label. |
IconConfig |
icon
The label's icon, if any. |
int |
iconTextGap
The gap between icon and text. |
ComponentConfig.Orientation |
orientation
The label orientation. |
int |
preferredWidth
The label's preferred width, or zero for none. |
String |
text
The label's text. |
int |
textRotation
The rotation for the text. |
| Fields inherited from class com.threerings.opengl.gui.config.ComponentConfig |
|---|
alpha, enabled, hoverable, preferredSize, style, tag, tooltipRelativeToMouse, tooltipText, visible |
| Constructor Summary | |
|---|---|
ComponentConfig.Label()
|
|
| 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. |
protected boolean |
shouldSetIcon(GlContext ctx,
Component comp)
Determines whether we should configure the label's icon. |
| 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 |
|---|
@Editable(nullable=true) public IconConfig icon
@Editable(hgroup="t") public String text
@Editable(hgroup="t") public int iconTextGap
@Editable(hgroup="t") public int textRotation
@Editable(hgroup="o") public ComponentConfig.Orientation orientation
@Editable(hgroup="o") public Label.Fit fit
@Editable(min=0.0,
hgroup="o")
public int preferredWidth
| Constructor Detail |
|---|
public ComponentConfig.Label()
| Method Detail |
|---|
public void invalidate()
ComponentConfig
invalidate in class ComponentConfig
protected Component maybeRecreate(GlContext ctx,
Scope scope,
MessageBundle msgs,
Component comp)
ComponentConfig
maybeRecreate in class ComponentConfig
protected void configure(GlContext ctx,
Scope scope,
MessageBundle msgs,
Component comp)
ComponentConfig
configure in class ComponentConfig
protected boolean shouldSetIcon(GlContext ctx,
Component comp)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||