Class zwt.ui.Label
Extends
zwt.ui.Widget.
A label widget.
CSS rules
.zwt_label {}
Defined in: Label.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Construct a label.
|
Method Attributes | Method Name and Description |
---|---|
Return the click event manager attached to the label.
|
|
Return the mouse event manager attached to the label.
|
|
getText()
Return the text of the label.
|
|
processClickEvent(zwt_event_ClickEvent_event)
Process the specified click event.
|
|
processEvent(zwt_event_Event_event)
Process the specified event.
|
|
processMouseEvent(zwt_event_MouseEvent_event)
Process the specified mouse event.
|
|
setText(string_text)
Set the text of the label.
|
- Methods borrowed from class zwt.ui.Widget:
- addStyle, draw, getContextFill, getDimension, getElement, getElementDimension, getFill, getFocusEventManager, getId, getKeyboardEventManager, getParent, getRelativeLeft, getRelativeTop, getStyle, getWheelEventManager, hasFocus, hasStyle, isFocusable, isVisible, onEvent, processContentEvent, processFocusEvent, processKeyboardEvent, processWheelEvent, redraw, removeStyle, replaceStyle, setFill, setFocusable, setId, setStyle, setVisible
Method Detail
{zwt.event.ClickEventManager}
getClickEventManager()
Return the click event manager attached to the label.
- Returns:
- The click event manager
{zwt.event.MouseEventManager}
getMouseEventManager()
Return the mouse event manager attached to the label.
- Returns:
- The mouse event manager
{String}
getText()
Return the text of the label.
- Returns:
- The text.
processClickEvent(zwt_event_ClickEvent_event)
Process the specified click event.
- Parameters:
- {zwt.event.ClickEvent} zwt_event_ClickEvent_event
- The click event to process
processEvent(zwt_event_Event_event)
Process the specified event.
- Parameters:
- {zwt.event.Event} zwt_event_Event_event
- The event to process
processMouseEvent(zwt_event_MouseEvent_event)
Process the specified mouse event.
- Parameters:
- {zwt.event.MouseEvent} zwt_event_MouseEvent_event
- The mouse event to process
setText(string_text)
Set the text of the label.
- Parameters:
- {String} string_text
- The label text.