Class zwt.ui.Link
Extends
zwt.ui.Widget.
A basic HTTP link widget.
CSS rules
.zwt_link {}
Defined in: Link.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Construct a link.
|
Method Attributes | Method Name and Description |
---|---|
Return the click event manager attached to the link.
|
|
Return the mouse event manager attached to the link.
|
|
getText()
Return the link text.
|
|
getURL()
Return the destination URL of the link.
|
|
processClickEvent(zwt_event_ClickEvent_event)
Process the specified click event.
|
|
processEvent(zwt_event_Event_event)
Process the specified event.
|
|
processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
|
|
processMouseEvent(zwt_event_MouseEvent_event)
Process the specified mouse event.
|
|
setText(string_text)
Set the text of the link.
|
|
setURL(string_url)
Set the destination URL of the link.
|
- 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, processKeyboardEvent, processWheelEvent, redraw, removeStyle, replaceStyle, setFill, setFocusable, setId, setStyle, setVisible
Method Detail
{zwt.event.ClickEventManager}
getClickEventManager()
Return the click event manager attached to the link.
- Returns:
- The click event manager
{zwt.event.MouseEventManager}
getMouseEventManager()
Return the mouse event manager attached to the link.
- Returns:
- The mouse event manager
{String}
getText()
Return the link text.
- Returns:
- The link text.
{String}
getURL()
Return the destination URL of the link.
- Returns:
- The destination URL.
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
processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
- Parameters:
- {zwt.event.FocusEvent} zwt_event_FocusEvent_event
- The focus 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 link.
- Parameters:
- {String} string_text
- The link text.
setURL(string_url)
Set the destination URL of the link.
- Parameters:
- {String} string_url
- The destination URL.