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

Support for "Tab.pseudoClassChanged" method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u40
    • javafx
    • JDK 8u40, Win 7 Pro SP1, 64 Bit

      I'd like to request support for "Tab.pseudoClassChanged" method.

      Currently Tab implements Styleable but does not have a method "pseudoClassChanged". As a consequence, a request to "getPseudoClassStates" always is responded with an empty list.

      In some programming scenarios it might be beneficial to have working support for pseudo classes for tabs. For example, when a tab's content is made up of nodes visualizing user data taken from a model, that user data might be bound to some sort of state (like "valid", "invalid", "urgent", "done", "changed", you name it). A designer might want to use that state to change the visualization of the tab's label (like "background red when state is 'urgent'"). Typically he'd like to bind a listener to the state property which invokes "pseudoClassChanged" on the tab -- which simply is not supported in 8u40 -- and write a CSS selector for ".tab:urgent" to declare the visual change.

      To sum up, please add "Tab.pseudoClassChanged" to the interface of the Tab.java class! :-)

            Unassigned Unassigned
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: