You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Chris Bartlett (JIRA)" <ji...@apache.org> on 2010/08/26 19:19:55 UTC
[jira] Created: (PIVOT-615) Add 'collapsible' utility methods and a
closeTab method to TabPane
Add 'collapsible' utility methods and a closeTab method to TabPane
------------------------------------------------------------------
Key: PIVOT-615
URL: https://issues.apache.org/jira/browse/PIVOT-615
Project: Pivot
Issue Type: Improvement
Components: tutorials, wtk
Environment: n/a
Reporter: Chris Bartlett
Priority: Minor
Fix For: 2.0
Add user friendly methods for handling the collapsed state of the TabPane
tabPane.setCollapsed(boolean collapsed)
tabPane.isCollapsed()
These will wrap the following lines respectively
tabPane.setSelectedIndex(-1 / 0..n)
((tabPane.getSelectedIndex() == -1) && tabPane.isCollapsible())
Add a closeTab(int) method to TabPane which will replicate the logic in the TabPaneListener in /tutorials/src/org/apache/pivot/tutorials/navigation/TabPanes.java
Update TabPanes.java to use the new method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (PIVOT-615) Add 'collapsible' utility methods and
a closeTab method to TabPane
Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Bartlett reassigned PIVOT-615:
------------------------------------
Assignee: Chris Bartlett
> Add 'collapsible' utility methods and a closeTab method to TabPane
> ------------------------------------------------------------------
>
> Key: PIVOT-615
> URL: https://issues.apache.org/jira/browse/PIVOT-615
> Project: Pivot
> Issue Type: Improvement
> Components: tutorials, wtk
> Environment: n/a
> Reporter: Chris Bartlett
> Assignee: Chris Bartlett
> Priority: Minor
> Fix For: 2.0
>
>
> Add user friendly methods for handling the collapsed state of the TabPane
> tabPane.setCollapsed(boolean collapsed)
> tabPane.isCollapsed()
> These will wrap the following lines respectively
> tabPane.setSelectedIndex(-1 / 0..n)
> ((tabPane.getSelectedIndex() == -1) && tabPane.isCollapsible())
> Add a closeTab(int) method to TabPane which will replicate the logic in the TabPaneListener in /tutorials/src/org/apache/pivot/tutorials/navigation/TabPanes.java
> Update TabPanes.java to use the new method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIVOT-615) Add 'collapsible' utility methods and
a closeTab method to TabPane
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902942#action_12902942 ]
Greg Brown commented on PIVOT-615:
----------------------------------
Just to be clear - I don't think we necessarily need a closeTab() method. My suggestion was simply to intelligently select the next or previous tab whenever the active tab is removed (basically, move the selection logic from the example application into TabPane itself).
> Add 'collapsible' utility methods and a closeTab method to TabPane
> ------------------------------------------------------------------
>
> Key: PIVOT-615
> URL: https://issues.apache.org/jira/browse/PIVOT-615
> Project: Pivot
> Issue Type: Improvement
> Components: tutorials, wtk
> Environment: n/a
> Reporter: Chris Bartlett
> Priority: Minor
> Fix For: 2.0
>
>
> Add user friendly methods for handling the collapsed state of the TabPane
> tabPane.setCollapsed(boolean collapsed)
> tabPane.isCollapsed()
> These will wrap the following lines respectively
> tabPane.setSelectedIndex(-1 / 0..n)
> ((tabPane.getSelectedIndex() == -1) && tabPane.isCollapsible())
> Add a closeTab(int) method to TabPane which will replicate the logic in the TabPaneListener in /tutorials/src/org/apache/pivot/tutorials/navigation/TabPanes.java
> Update TabPanes.java to use the new method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PIVOT-615) Add 'collapsible' utility methods and
a closeTab method to TabPane
Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Bartlett resolved PIVOT-615.
----------------------------------
Resolution: Fixed
> Add 'collapsible' utility methods and a closeTab method to TabPane
> ------------------------------------------------------------------
>
> Key: PIVOT-615
> URL: https://issues.apache.org/jira/browse/PIVOT-615
> Project: Pivot
> Issue Type: Improvement
> Components: tutorials, wtk
> Environment: n/a
> Reporter: Chris Bartlett
> Assignee: Chris Bartlett
> Priority: Minor
> Fix For: 2.0
>
>
> Add user friendly methods for handling the collapsed state of the TabPane
> tabPane.setCollapsed(boolean collapsed)
> tabPane.isCollapsed()
> These will wrap the following lines respectively
> tabPane.setSelectedIndex(-1 / 0..n)
> ((tabPane.getSelectedIndex() == -1) && tabPane.isCollapsible())
> Add a closeTab(int) method to TabPane which will replicate the logic in the TabPaneListener in /tutorials/src/org/apache/pivot/tutorials/navigation/TabPanes.java
> Update TabPanes.java to use the new method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIVOT-615) Add 'collapsible' utility methods and
a closeTab method to TabPane
Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907691#action_12907691 ]
Chris Bartlett commented on PIVOT-615:
--------------------------------------
I added the isCollapsed & setCollapsed methods, but didn't touch the tab re-selection logic when tabs are removed.
Having thought it through a little more, the logic to use when re-selecting a tab seems be application specific.
For instance, different applications might differ as to whether disabled tabs should be selected.
> Add 'collapsible' utility methods and a closeTab method to TabPane
> ------------------------------------------------------------------
>
> Key: PIVOT-615
> URL: https://issues.apache.org/jira/browse/PIVOT-615
> Project: Pivot
> Issue Type: Improvement
> Components: tutorials, wtk
> Environment: n/a
> Reporter: Chris Bartlett
> Assignee: Chris Bartlett
> Priority: Minor
> Fix For: 2.0
>
>
> Add user friendly methods for handling the collapsed state of the TabPane
> tabPane.setCollapsed(boolean collapsed)
> tabPane.isCollapsed()
> These will wrap the following lines respectively
> tabPane.setSelectedIndex(-1 / 0..n)
> ((tabPane.getSelectedIndex() == -1) && tabPane.isCollapsible())
> Add a closeTab(int) method to TabPane which will replicate the logic in the TabPaneListener in /tutorials/src/org/apache/pivot/tutorials/navigation/TabPanes.java
> Update TabPanes.java to use the new method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.