Sydney

Class Label

Object
   |
   +--Widget
         |
         +--Label
Direct Known Subclasses:
Clock

class Label
extends Widget

Defined in label.js


Field Summary
<static>  <final> int DEFAULT
          Default format, non-wrapping label.
<static>  <final> int MONOSPACED
          Text is pre formatted using spaces and fixed-width font.
<static>  <final> int MULTILINE
          Text is multiline so any '\n' will be replaced with '
'
<static>  <final> int WRAPPING
          Will allow text to wrap (different the MultiLineLabel).
   
Fields inherited from class Widget
html, id, parent, layoutData, eventTable
 
Constructor Summary
Label (<string> text, <enum> format)
            Creates a label displaying the given text.
 
Method Summary
 function constructor(<string> text, <enum> format)
           Creates a label displaying the given text.
 string getText()
           Returns the label's current display value.
 void setStyle(<enum> format)
           Changes the type of label on the fly.
 void setText(<string> text)
           Sets the label's text to text.
 
Methods inherited from class Widget
installContextMenu, installDefaultContextMenu, uninstallContextMenu, isDraggable, setDraggable, addEventListener, blur, createEventTable, dispose, focus, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getBottom, getBounds, getClientHeight, getClientWidth, getCorner, getHeight, getLeft, getPixelsPerEm, getRight, getToolTip, getTop, getWidth, isDisposed, isEnabled, layout, moveToAbsolute, moveTo, raiseEvent, registerEventType, removeEventListener, setAbsoluteBottom, setAbsoluteLeft, setAbsoluteRight, setAbsoluteTop, setBottom, setBounds, setEnabled, setHeight, setLeft, setRight, setToolTip, setTop, setWidth, setParent, toString
 

Field Detail

DEFAULT

<static> <final> int DEFAULT

MONOSPACED

<static> <final> int MONOSPACED

MULTILINE

<static> <final> int MULTILINE

WRAPPING

<static> <final> int WRAPPING

Constructor Detail

Label

function Label(<string> text, <enum> format)
Method Detail

constructor

function constructor(<string> text, <enum> format)

getText

string getText()

setStyle

void setStyle(<enum> format)

setText

void setText(<string> text)

Sydney

SourceForge.net Logo