Class zwt.ui.tab.TabEvent
Extends
zwt.event.UIEvent.
A tab event is emitted when a tab event occurs on a tab bar.
Defined in: TabEvent.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.tab.TabEvent(event, zwt_ui_tab_TabBar_tabbar, int_type, zwt_ui_tab_TabItem_item, boolean_scroll, boolean_animate)
Construct a tab event.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.ui.tab.TabEvent.TAB_CLOSE
Constant used to indicate a tab close event
|
<static> |
zwt.ui.tab.TabEvent.TAB_DESELECTED
Constant used to indicate a tab deselected event
|
<static> |
zwt.ui.tab.TabEvent.TAB_INSERTED
Constant used to indicate a tab inserted event
|
<static> |
zwt.ui.tab.TabEvent.TAB_REMOVED
Constant used to indicate a tab removed event
|
<static> |
zwt.ui.tab.TabEvent.TAB_SELECTED
Constant used to indicate a tab selected event
|
Method Attributes | Method Name and Description |
---|---|
Return the tab item linked to the event.
|
|
Determine whether the tab bar should use animation to scroll to the new selected tab.
|
|
isScroll()
Determine whether the tab bar should scroll to the new selected tab.
|
- Methods borrowed from class zwt.event.UIEvent:
- getBrowserEvent, getBrowserEventTarget, getReturn, getWidget, setReturn
- Methods borrowed from class zwt.event.Event:
- getType, isCancelBubble, setCancelBubble, touch
Class Detail
zwt.ui.tab.TabEvent(event, zwt_ui_tab_TabBar_tabbar, int_type, zwt_ui_tab_TabItem_item, boolean_scroll, boolean_animate)
Construct a tab event.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Event} event
- The javaScript event object
- {zwt.ui.tab.TabBar} zwt_ui_tab_TabBar_tabbar
- The tab bar linked to the event
- {Integer} int_type
- The event type
- {zwt.ui.tab.TabItem} zwt_ui_tab_TabItem_item
- The tab item affected by the event
- {Boolean} boolean_scroll
- true to scroll to the tab when selecting it, true by default
- {Boolean} boolean_animate
- true to use scroll animation when selecting a tab, false by default
Field Detail
<static>
{Integer}
zwt.ui.tab.TabEvent.TAB_CLOSE
Constant used to indicate a tab close event
<static>
{Integer}
zwt.ui.tab.TabEvent.TAB_DESELECTED
Constant used to indicate a tab deselected event
<static>
{Integer}
zwt.ui.tab.TabEvent.TAB_INSERTED
Constant used to indicate a tab inserted event
<static>
{Integer}
zwt.ui.tab.TabEvent.TAB_REMOVED
Constant used to indicate a tab removed event
<static>
{Integer}
zwt.ui.tab.TabEvent.TAB_SELECTED
Constant used to indicate a tab selected event
Method Detail
{zwt.ui.tab.TabItem}
getTabItem()
Return the tab item linked to the event.
- Returns:
- The tab item
{Boolean}
isAnimateScroll()
Determine whether the tab bar should use animation to scroll to the new selected tab.
- Returns:
- true to use animation, false otherwise
{Boolean}
isScroll()
Determine whether the tab bar should scroll to the new selected tab.
- Returns:
- true if the tab bar should scroll, false otherwise