Class zwt.ui.stack.StackItem
Extends
zwt.ui.container.SingleContainer.
A stack item is linked to a widget in a zwt.ui.stack.StackPanel and triggers the selection or deselection of this Widget.
CSS rules
.zwt_stackItem {}
.zwt_stackItem-selected {}
.zwt_stackItem-first {}
.zwt_stackItem-last {}
.zwt_stackItem-focus {}
.zwt_stackItem .zwt_stackItem-label {}
.zwt_stackItem .zwt_stackItem-control {}
Defined in: StackItem.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Construct a StackItem object.
|
Method Attributes | Method Name and Description |
---|---|
deselect()
Deselect the item.
|
|
Return the click event manager attached to the stack item.
|
|
getHTML()
Return the HTML text displayed in the label.
|
|
Return the mouse event manager attached to the stack item.
|
|
getText()
Return the text displayed in the label.
|
|
Determine whether the item is selected.
|
|
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.
|
|
select()
Select the item.
|
|
setHTML(string_html)
Set the HTML text to be displayed in the label.
|
|
setText(string_text)
Set the text to be displayed in the label.
|
- Methods borrowed from class zwt.ui.container.SingleContainer:
- getContent, isFocusable, setContent
- Methods borrowed from class zwt.ui.container.Container:
- getContentEventManager, isFocusContainer, processContentEvent, setFocusContainer
- Methods borrowed from class zwt.ui.Widget:
- addStyle, draw, getContextFill, getDimension, getElement, getElementDimension, getFill, getFocusEventManager, getId, getKeyboardEventManager, getParent, getRelativeLeft, getRelativeTop, getStyle, getWheelEventManager, hasFocus, hasStyle, isVisible, onEvent, processKeyboardEvent, processWheelEvent, redraw, removeStyle, replaceStyle, setFill, setFocusable, setId, setStyle, setVisible
Method Detail
deselect()
Deselect the item.
{zwt.event.ClickEventManager}
getClickEventManager()
Return the click event manager attached to the stack item.
- Returns:
- The click event manager
{String}
getHTML()
Return the HTML text displayed in the label.
- Returns:
- The HTML text of the item.
{zwt.event.MouseEventManager}
getMouseEventManager()
Return the mouse event manager attached to the stack item.
- Returns:
- The mouse event manager
{String}
getText()
Return the text displayed in the label.
- Returns:
- The text of the item.
{Boolean}
isSelected()
Determine whether the item is selected.
- Returns:
- true if the item is selected, false otherwise.
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
select()
Select the item.
setHTML(string_html)
Set the HTML text to be displayed in the label.
- Parameters:
- {String} string_html
- The HTML text to set.
setText(string_text)
Set the text to be displayed in the label.
- Parameters:
- {String} string_text
- The text to set.