Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-615

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0
    • tutorials, wtk
    • None
    • 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.

      Attachments

        Activity

          People

            cbartlett Christopher James Bartlett
            cbartlett Christopher James Bartlett
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: