You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (Resolved) (JIRA)" <ji...@apache.org> on 2011/11/04 23:23:51 UTC

[jira] [Resolved] (PIVOT-816) Add "setSelectedTab(Component)" method to TabPane to facilitate selecting tabs programmatically

     [ https://issues.apache.org/jira/browse/PIVOT-816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Whitcomb resolved PIVOT-816.
----------------------------------

    Resolution: Fixed

Sending        wtk\src\org\apache\pivot\wtk\TabPane.java
Transmitting file data .
Committed revision 1197807.
                
> 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
>              Labels: TabPane
>             Fix For: 2.0.1
>
>         Attachments: tab.patch
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> 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