Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23079

ButtonbarButton should implement IButtonBarButton for allowDeselection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • Spark: TabBar
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Steps to reproduce:
      1. Extend Toggle button to create your own button implementation
      2. use your button implementation in a custom TabBar skin
      3. set selectionRequired=true on your tab bar

      Actual Results:
      You are able to deselect all tabs

      Expected Results:
      You are not able to deselect all tabs

      Workaround (if any):
      add this code to your button:

      override protected function buttonReleased() : void
      {
      if ( selected )return;

      super.buttonReleased();
      }

      This does not mean that selectionRequired works - it means you can never deselect your button just by clicking on it. It there was a IButtonBarButton then tabbar could set allowDeselection on your button to toggle this behaviour - just like ButtonBarButton does but you would no longer have to extend that class to get this functionality.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: