com.threerings.opengl.gui
Class CommandButton
java.lang.Object
com.threerings.opengl.gui.Component
com.threerings.opengl.gui.TextComponent
com.threerings.opengl.gui.Label
com.threerings.opengl.gui.Button
com.threerings.opengl.gui.CommandButton
- All Implemented Interfaces:
- ConfigUpdateListener<ManagedConfig>, UIConstants
Deprecated. Just use Button.
@Deprecated
public class CommandButton
- extends Button
A button that fires a CommandEvent when clicked.
| Nested classes/interfaces inherited from class com.threerings.opengl.gui.Label |
Label.Fit |
| Fields inherited from class com.threerings.opengl.gui.Label |
_label |
| 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 |
| 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 |
CommandButton(GlContext ctx,
Icon icon,
ActionListener listener,
String action,
Object argument)
Deprecated. Creates a button with the specified icon, action, and argument. |
CommandButton(GlContext ctx,
Icon icon,
String action,
Object argument)
Deprecated. Creates a button with the specified icon, action, and argument. |
CommandButton(GlContext ctx,
String text)
Deprecated. Creates a command button with the specified textual label. |
CommandButton(GlContext ctx,
String text,
ActionListener listener,
String action,
Object argument)
Deprecated. Creates a button with the specified label, action, and argument. |
CommandButton(GlContext ctx,
String text,
String action,
Object argument)
Deprecated. Creates a button with the specified label, action, and argument. |
| Methods inherited from class com.threerings.opengl.gui.Button |
dispatchEvent, doClick, fireAction, getAction, getArgument, getDefaultStyleConfig, getFeedbackSound, getState, getStateCount, getStatePseudoClass, playFeedbackSound, setAction, setArgument, updateFromStyleConfig |
| Methods inherited from class com.threerings.opengl.gui.Label |
computePreferredSize, getFit, getIcon, getIconTextGap, getLabelRenderer, getText, layout, renderComponent, setFit, setIcon, setIconTextGap, setOrientation, setPreferredWidth, setText, setTextRotation |
| Methods inherited from class com.threerings.opengl.gui.Component |
acceptsFocus, addListener, boundsToString, changeCursor, configUpdated, contains, createDefaultTooltipComponent, createDefaultTooltipComponent, createTooltipComponent, emitEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getContext, getCursor, getFallbackState, getFirstDescendantFocus, getFocusTarget, getHeight, getHitComponent, getInsets, getLastDescendantFocus, getNextFocus, getParent, getPreferredSize, getPreviousFocus, getProperty, getStyleConfigs, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, getTransferHandler, getWidth, getWindow, getX, getY, hasFocus, intersectScissor, invalidate, isAdded, isEnabled, isHoverable, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeAllListeners, removeListener, render, renderBackground, renderBorder, requestFocus, scrollRectToVisible, scrollRectToVisible, setAlpha, setBackground, setBounds, setCursor, setEnabled, setHoverable, setLocation, setParent, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleConfig, setStyleConfig, setStyleConfig, setStyleConfigs, setTooltipRelativeToMouse, setTooltipText, setTransferHandler, setVisible, stateDidChange, updateCursor, updateFromStyleConfig, validate, wasAdded, wasRemoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandButton
public CommandButton(GlContext ctx,
String text)
- Deprecated.
- Creates a command button with the specified textual label.
CommandButton
public CommandButton(GlContext ctx,
String text,
String action,
Object argument)
- Deprecated.
- Creates a button with the specified label, action, and argument. The action will be
dispatched via a
CommandEvent when the button is clicked.
CommandButton
public CommandButton(GlContext ctx,
String text,
ActionListener listener,
String action,
Object argument)
- Deprecated.
- Creates a button with the specified label, action, and argument. The action will be
dispatched via a
CommandEvent to the specified ActionListener when the
button is clicked.
CommandButton
public CommandButton(GlContext ctx,
Icon icon,
String action,
Object argument)
- Deprecated.
- Creates a button with the specified icon, action, and argument. The action will be
dispatched via a
CommandEvent when the button is clicked.
CommandButton
public CommandButton(GlContext ctx,
Icon icon,
ActionListener listener,
String action,
Object argument)
- Deprecated.
- Creates a button with the specified icon, action, and argument. The action will be
dispatched via a
CommandEvent to the specified ActionListener when the
button is clicked.