Class Index | File Index

Classes


Class zwt.ui.tab.TabItem


Extends zwt.ui.Widget.

A tab item widget. A tab item is an element in a tab bar.

CSS rules

.zwt_tabBarItem {}
.zwt_tabBarItem-selected {}
.zwt_tabBarItem .zwt_tabBarItem-before {}
.zwt_tabBarItem .zwt_tabBarItem-body {}
.zwt_tabBarItem .zwt_tabBarItem-body-closable {}
.zwt_tabBarItem .zwt_tabBarItem-body .zwt_tabBarItem-label {}
.zwt_tabBarItem .zwt_tabBarItem-body .zwt_tabBarItem-close {}
.zwt_tabBarItem .zwt_tabBarItem-body .zwt_tabBarItem-close-over {}
.zwt_tabBarItem .zwt_tabBarItem-after {}

Defined in: TabItem.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Construct a tab item.
Method Summary
Method Attributes Method Name and Description
 
Deselect the item
 
Return the click event manager attached to the label.
 
Return the HTML text of the item.
 
Return the mouse event manager attached to the label.
 
Return the text of the item.
 
Determine whether the item is closable.
 
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.
 
processMouseEvent(zwt_event_MouseEvent_event)
Process the specified mouse event.
 
select(boolean_scroll, boolean_animate)
Select the item.
 
setClosable(boolean_closable)
Make the item closable.
 
setHTML(string_html)
Set the HTML text of the item.
 
setText(string_text)
Set the text of the item.
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
Class Detail
zwt.ui.tab.TabItem()
Construct a tab item.
Author: Jeremy KUHN.
See:
zwt.ui.tab.TabBar
zwt.ui.tab.TabPanel
Method Detail
deselect()
Deselect the item

{zwt.event.ClickEventManager} getClickEventManager()
Return the click event manager attached to the label.
Returns:
The click event manager

{String} getHTML()
Return the HTML text of the item.
Returns:
The HTML text of the item

{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 item.
Returns:
The text of the item

{Boolean} isClosable()
Determine whether the item is closable.
Returns:
true if the item is closable

{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

processMouseEvent(zwt_event_MouseEvent_event)
Process the specified mouse event.
Parameters:
{zwt.event.MouseEvent} zwt_event_MouseEvent_event
The mouse event to process

select(boolean_scroll, boolean_animate)
Select the item.
Parameters:
{Boolean} boolean_scroll
true to scroll to the tab, true by default
{Boolean} boolean_animate
true to use scroll animation, false by default

setClosable(boolean_closable)
Make the item closable.
Parameters:
{Boolean} boolean_closable
true to make the item closable

setHTML(string_html)
Set the HTML text of the item.
Parameters:
{String} string_html
The HTML text to set

setText(string_text)
Set the text of the item.
Parameters:
{String} string_text
The text to set

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jan 12 2012 02:07:53 GMT+0100 (CET)