Class DwtTabGroup
The root tab group is the only one without a parent tab group, and is the one
that the application interacts with. Focus listeners register with the root
tab group. The root tab group tracks where focus is.
Class Detail
DwtTabGroup(name)
Creates an empty tab group.
Author: Ross Dargahi.
Field Detail
<static>
DwtTabGroup.NOT_ROOT_TABGROUP
Exception string that is thrown when an operation is attempted
on a non-root tab group.
Method Detail
addFocusChangeListener(listener)
Adds a focus change listener to the root tab group. The listener is called
when the focus member changes. Note that the focus member hasn't actually
been focused yet - only its status within the tab group has changed. It is
up to the listener to implement the appropriate focus action.
addMember(member, index)
Adds a member to the tab group.
addMemberAfter(member, afterMember)
Adds a member to the tab group, positioned after another member.
addMemberBefore(member, beforeMember)
Adds a member to the tab group, positioned before another member.
{boolean}
contains(member)
Returns true if this tab group contains
member .
dump(debugLevel)
Pretty-prints the contents of the tab group to the browser console or the
debug window.
{DwtControl|HTMLElement}
getFirstMember(checkEnabled)
Gets the first member of the tab group.
{DwtControl|HTMLElement}
getFocusMember()
Returns the current focus member.
{DwtControl|HTMLElement}
getLastMember(checkEnabled)
Gets the last member of the tab group.
{string}
getName()
Gets the name of this tab group.
{DwtControl|HTMLElement}
getNextFocusMember(checkEnabled, skipNotify)
This method sets and returns the next focus member in this tab group. If there is no next
member, sets and returns the first member in the tab group.
{DwtControl|HTMLElement}
getPrevFocusMember(checkEnabled, skipNotify)
This method sets and returns the previous focus member in this tab group. If there is no
previous member, sets and returns the last member in the tab group.
newParent(newParent)
Sets a new parent for this tab group.
removeAllMembers()
Removes all members.
removeFocusChangeListener(listener)
Removes a focus change listener from the root tab group.
{DwtControl|DwtTabGroup|HTMLElement}
removeMember(member, checkEnabled, skipNotify)
This method removes a member from the tab group. If the member being removed
is currently the focus member, then we will try to set focus to the
previous member. If that fails, we will try the next member.
{DwtControl|DwtTabGroup|HTMLElement}
replaceMember(oldMember, newMember, checkEnabled, skipNotify, focusItem, noFocus)
This method replaces a member in the tab group with a new member. If the member being
replaced is currently the focus member, then we will try to set focus to the
previous member. If that fails, we will try the next member.
{DwtControl|HTMLElement}
resetFocusMember(checkEnabled, skipNotify)
Resets the the focus member to the first element in the tab group.
{boolean}
setFocusMember(member, checkEnabled, skipNotify)
Sets the current focus member.
setMembers(members)
Resets all members of the tab group to the given arguments.
{number}
size()
Gets the size of the group.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:26 GMT-0400 (EDT)
|