com.threerings.opengl.gui
Class StatusLabel

java.lang.Object
  extended by com.threerings.opengl.gui.Component
      extended by com.threerings.opengl.gui.TextComponent
          extended by com.threerings.opengl.gui.Label
              extended by com.threerings.opengl.gui.StatusLabel
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, UIConstants

public class StatusLabel
extends Label

Provides a convenient component for displaying feedback.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.gui.Label
Label.Fit
 
Field Summary
 
Fields inherited from class com.threerings.opengl.gui.Component
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
StatusLabel(GlContext ctx)
          Creates a new status label.
 
Method Summary
 void setStatus(String message, boolean flash)
          Displays an already translated status message.
 void setStatus(String bundle, String message, boolean flash)
          Translates and displays the specified status message.
 void setText(String text)
          Updates the text displayed by this component.
 
Methods inherited from class com.threerings.opengl.gui.Label
getFit, getIcon, getIconTextGap, getLabelRenderer, getText, setFit, setIcon, setIconTextGap, setOrientation, setPreferredWidth, setTextRotation
 
Methods inherited from class com.threerings.opengl.gui.TextComponent
getEffectColor, getEffectSize, getHorizontalAlignment, getLineSpacing, getTextEffect, getTextFactory, getVerticalAlignment
 
Methods inherited from class com.threerings.opengl.gui.Component
acceptsFocus, addListener, boundsToString, configUpdated, contains, createDefaultTooltipComponent, createDefaultTooltipComponent, dispatchEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getContext, getCursor, getFocusTarget, getHeight, getHitComponent, getInsets, getParent, getPreferredSize, getProperty, getState, getStyleConfigs, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, getTransferHandler, getWidth, getX, getY, hasFocus, invalidate, isAdded, isEnabled, isHoverable, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeAllListeners, removeListener, render, requestFocus, scrollRectToVisible, setAlpha, setBackground, setBounds, setCursor, setEnabled, setHoverable, setLocation, setParent, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleConfig, setStyleConfig, setStyleConfig, setStyleConfigs, setTooltipRelativeToMouse, setTooltipText, setTransferHandler, setVisible, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusLabel

public StatusLabel(GlContext ctx)
Creates a new status label.

Method Detail

setStatus

public void setStatus(String bundle,
                      String message,
                      boolean flash)
Translates and displays the specified status message.

Parameters:
flash - if true, an icon will be flashed three times next to the status message to grab the users attention.

setStatus

public void setStatus(String message,
                      boolean flash)
Displays an already translated status message.

Parameters:
flash - if true, an icon will be flashed three times next to the status message to grab the users attention.

setText

public void setText(String text)
Description copied from class: TextComponent
Updates the text displayed by this component.

Overrides:
setText in class Label


Copyright © 2011. All Rights Reserved.