Pivot
  1. Pivot
  2. PIVOT-615

Add 'collapsible' utility methods and a closeTab method to TabPane

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: tutorials, wtk
    • Labels:
      None
    • Environment:
      n/a

      Description

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Chris Bartlett
            Reporter:
            Chris Bartlett
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development