JDK-8101787 : Consider making available the CSS Styleable* classes as public API
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-05-21
  • Updated: 2015-06-16
  • Resolved: 2013-01-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Blocks :  
Relates :  
Description
The following Styleable classes are used in controls development. We should consider whether we make them available as public API as part of the RT-21596 effort.

   * com.sun.javafx.css.StyleableProperty
   * com.sun.javafx.css.StyleableBooleanProperty
   * com.sun.javafx.css.StyleableDoubleProperty
   * com.sun.javafx.css.StyleableFloatProperty
   * com.sun.javafx.css.StyleableIntegerProperty
   * com.sun.javafx.css.StyleableLongProperty
   * com.sun.javafx.css.StyleableObjectProperty
   * com.sun.javafx.css.StyleableStringProperty

On a related note, in classes where we use these classes, can we perhaps simplify the need to gather them in the StyleableProperties static class in most skins? Perhaps we can look into options such as annotations, etc to simplify this process (and write less boilerplate).
Comments
Was moved to public and tests are written by sqe => close.
20-05-2013

8.0 b73 package is javafx.css. Unit tests are still in com.sun.javafx.css See also https://wikis.oracle.com/display/OpenJDK/CSS+API+to+support+custom+UI+Controls
17-01-2013

Implements A360 Feature http://oracleplan.oracle.com/gotoEntity?entityType=FEATURE&entityId=708069
15-01-2013

API proposal posted to https://wikis.oracle.com/display/OpenJDK/CSS+API+to+support+custom+UI+Controls
06-12-2012

One problem with annotations is that the StyleableProperty instances need access to internals of the class, primarily to avoid expansion of properties.
21-05-2012