pivot.wtk
Class Label

java.lang.Object
  extended by pivot.wtk.Component
      extended by pivot.wtk.Label
All Implemented Interfaces:
ConstrainedVisual, Visual
Direct Known Subclasses:
SpinnerItemRenderer, TableViewCellRenderer

public class Label
extends Component

Component that displays a string of text.

Author:
gbrown

Nested Class Summary
 
Nested classes/interfaces inherited from class pivot.wtk.Component
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary
 
Constructor Summary
Label()
           
Label(java.lang.String text)
           
 
Method Summary
 ListenerList<LabelListener> getLabelListeners()
           
 java.lang.String getText()
           
 java.lang.String getTextKey()
          Returns the label's text key.
 void load(Dictionary<java.lang.String,?> context)
          Copies bound values from the bind context to the component.
 void setText(java.lang.String text)
           
 void setTextKey(java.lang.String textKey)
          Sets the label's text key.
 void store(Dictionary<java.lang.String,?> context)
          Copies bound values from the component to the bind context.
 
Methods inherited from class pivot.wtk.Component
clearFocus, clearFocus, finalize, getAttributes, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentDragDropListeners, getComponentKeyListeners, getComponentLayoutListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponents, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getHandle, getHeight, getLocation, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installSkin, invalidate, isBlocked, isDisplayable, isEnabled, isFocusable, isFocused, isMouseOver, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, mapPointFromAncestor, mapPointToAncestor, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, paint, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setCursor, setCursor, setDisplayable, setDragSource, setDropTarget, setEnabled, setFocused, setLocation, setLocation, setParent, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setUserData, setVisible, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Label

public Label()

Label

public Label(java.lang.String text)
Method Detail

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

getTextKey

public java.lang.String getTextKey()
Returns the label's text key.

Returns:
The text key, or null if no text key is set.

setTextKey

public void setTextKey(java.lang.String textKey)
Sets the label's text key.

Parameters:
textKey - The text key, or null to clear the binding.

load

public void load(Dictionary<java.lang.String,?> context)
Description copied from class: Component
Copies bound values from the bind context to the component. This functionality must be provided by the subclass; the base implementation is a no-op.

Overrides:
load in class Component

store

public void store(Dictionary<java.lang.String,?> context)
Description copied from class: Component
Copies bound values from the component to the bind context. This functionality must be provided by the subclass; the base implementation is a no-op.

Overrides:
store in class Component

getLabelListeners

public ListenerList<LabelListener> getLabelListeners()