Class DwtText
Extends
DwtControl.
This class represents a container for a piece of text.
Defined in: DwtText.js.
Class Summary
Constructor Attributes |
Constructor Name and Description |
|
DwtText(params, parent, className, posStyle, id)
Creates a text control.
|
Method Summary
Method Attributes |
Method Name and Description |
|
Gets the text.
|
|
Gets the text node.
|
|
Sets the text.
|
- Methods borrowed from class DwtControl:
- addClassName, addControlListener, addDisposeListener, addListener, appendElement, blur, clearContent, clearHandler, condClassName, delClassName, dispose, focus, getBounds, getClassName, getContent, getCursor, getData, getDragBox, getDragSource, getDropTarget, getEnabled, getFocusElement, getH, getHtmlElement, getHTMLElId, getInsetBounds, getInsets, getLocation, getMargins, getOpacity, getOuterSize, getPosition, getScrollContainer, getScrollStyle, getSize, getTabGroupMember, getTooltipBase, getToolTipContent, getVisibility, getVisible, getW, getX, getXW, getY, getYH, getZIndex, hasFocus, isAlertShown, isDisposed, isInitialized, isListenerRegistered, notifyListeners, preventContextMenu, preventSelection, removeAllListeners, removeControlListener, removeDisposeListener, removeListener, reparent, reparentHtmlElement, replaceElement, setBounds, setClassName, setContent, setCursor, setData, setDisplay, setDisplayState, setDragBox, setDragSource, setDropTarget, setEnabled, setEventPropagation, setFocusElement, setHandler, setHtmlElementId, setLocation, setOpacity, setPosition, setScrollStyle, setSize, setToolTipContent, setVisibility, setVisible, setZIndex, showAlert, zShow
Class Detail
DwtText(params, parent, className, posStyle, id)
Creates a text control.
Author: Ross Dargahi.
- Parameters:
-
{hash} params
- a hash of parameters
-
{DwtComposite} parent
- the parent widget
-
{string} className
- CSS class
-
{constant} posStyle
- the positioning style (see DwtControl)
-
{string} id
- an explicit ID to use for the control's HTML element
Method Detail
{string}
getText()
Gets the text.
- Returns:
- {string} the text
Gets the text node.
- Returns:
- {Object} the node
setText(text)
Sets the text.
- Parameters:
-
{string} text
- the text
|