swingx
  1. swingx
  2. SWINGX-1522

JXTaskPaneContainer: support "single-expanded"

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      occasionally read the requirement to have at most one of the contained JXTaskPanes expanded (that is, collapse all others when expanding one), f.i. recently at SO:

      http://stackoverflow.com/questions/12020917/how-to-disable-a-jxtaskpane

      Sounds reasonable to me and easy enough to support:

      // new property on JXTaskPaneContainer
      boolean isSingleExpanded();
      void setSingleExpanded(boolean);
      

      // delegate real work to the BasicTaskPaneContainerUI

      • listen to component addition/removing
      • on receiving add/remove:if singleExpanded, add/remove PCL on collapsed
      • on receiving collapsed == false on one, collapse others
      • listen to singleExpanded
      • on receiving singleExpanded: add/remove PCLs and ensure state as appropriate

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Karl Schaefer
            Reporter:
            kleopatra
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: