Add "setSelectedTab(Component)" method to TabPane to facilitate selecting tabs
programmatically
-----------------------------------------------------------------------------------------------
Key: PIVOT-816
URL: https://issues.apache.org/jira/browse/PIVOT-816
Project: Pivot
Issue Type: Improvement
Components: wtk
Affects Versions: 2.0.1
Environment: Windows XP SP3, JDK 1.6.0_16
Reporter: Roger Whitcomb
Assignee: Roger Whitcomb
Priority: Trivial
Fix For: 2.0.1
There is already a "setSelectedIndex", "getSelectedIndex" and "getSelectedTab"
methods. It would be nice and orthogonal to have a "setSelectedTab" method
also.
My use case is this: I have TabPane components identified by bxml:id in my
main layout file, and references to these components in the .java code. So,
rather than relying on indexes to programmatically select a tab (which might
change if I reorder the tabs), if I could just use the tab component itself
(since I have a reference to it) to make the selection, then it would be more
reliable.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira