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

FocusTraversable property is not overwriteable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 8u31
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:

      Description

      The focusTraversableProperty() method and its corresponding getter and setter methods are final. This might be a good idea in most cases, but i am currently writing a custom control which integrates already existing components (button, textfield, ...). This means that the control itself is more or less a pane with child controls and some fancy stuff.

      The problem is: The child controls should only be focus traversable if the control itself is traversable. But since there is no way to overwrite the property it will give only the following results:

      true: The children and the control itself are traversable (bad, because the control [the pane] should not get the focus itself)
      false: Nothing is traversable (works, because the control should always not be traversable)

      So far i could not find any clean way to do this.

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            toelgartejfx Tobias Oelgarte (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: