Class DwtLabel
CSS
Keyboard ActionsNoneEventsNoneDefined in: DwtLabel.js.
Class Detail
DwtLabel(params)
Creates a label.
Author: Ross Dargahi.
Field Detail
<static>
DwtLabel.ALIGN_CENTER
Defines the "center" align label.
<static>
DwtLabel.ALIGN_LEFT
Defines the "left" align label.
<static>
DwtLabel.ALIGN_RIGHT
Defines the "right" align label.
<static>
DwtLabel.IMAGE_BOTH
Defines both "right" and "left" align images (i.e. align to the left and to the right of text, if all present).
<static>
DwtLabel.IMAGE_LEFT
Defines the "left" align image (i.e. align to the left of text, if both present).
<static>
DwtLabel.IMAGE_RIGHT
Defines the "right" align image (i.e. align to the right of text, if both present).
<static>
DwtLabel.LEFT
Defines the "left" side icon
<static>
DwtLabel.RIGHT
Defines the "right" side icon
Method Detail
dispose()
Disposes of the label.
{string}
getImage(direction)
Gets the current image info.
{string}
getText()
Gets the label text.
{boolean}
isStyle(style)
Checks if the given style is set as the current label style.
setAlign(alignStyle)
Sets the align style.
setDisabledImage(imageInfo)
Sets the disabled image. If the label is currently disabled, its image is updated.
setEnabled(enabled)
Sets the enabled/disabled state of the label. A disabled label may have a different
image, and greyed out text. This method overrides DwtControl#setEnabled.
setIconEl(htmlElement/DOM, direction)
Set _iconEl, used for buttons that contains only images
setImage(imageInfo, direction, altText)
Sets the main (enabled) image. If the label is currently enabled, the image is updated.
setText(text)
Sets the label text, and manages the placement and display.
setTextBackground(color)
Sets the text background.
setTextForeground(color)
Sets the text foreground.
{string}
toString()
Returns a string representation of the object.
|
||||||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:28 GMT-0400 (EDT)
|