Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8101093

CheckBox should have one property that combines both selected and indeterminate

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: fx2.0
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      any

      Description

      It certainly is good to see indeterminate is supported in the core (unlike JCheckBox). But coming from a business model background I see the need to write a wrapper on top of it, because in the business model the indeterminate state is not something separate from the actual value; a boolean itself can have three values: true, false and null. So binding the checkbox to a business model directly is not possible with the current implementation in JFX; we need to introduce a virtual Boolean (capital is intentional) property that deligates to selected and indeterminate.

        Attachments

          Activity

            People

            Assignee:
            psomashe Parvathi Somashekar (Inactive)
            Reporter:
            tbee Tom Eugelink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: