JDK-8077918 : Complete development work for project two: review and make public relevant CSS API
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: controls
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-16
  • Updated: 2017-11-21
  • Resolved: 2015-09-21
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 9
9Fixed
Related Reports
Blocks :  
Duplicate :  
Description
I've already done a high-level analysis of this and have an idea of what should and should not be made public. There are a few areas where we will run into problems (that is, Scene Builder depends on things we shouldn't make public), but hopefully that should be resolvable. The primary challenge is producing a minimal API that is useful to users other than Scene Builder (I'm very conscious that we shouldn't let Scene Builder dictate the API we make public, as it is likely an edge case).

1) Creating minimal API (without leaking implementation classes): four weeks.
2) Updating 'the world (i.e. Scene Builder, etc)' to use the new APIs: one week.

Total guestimate (with _no_ padding): five weeks.
Comments
Is there an issue to cover the problem with there being no public API to add a stylesheet application-wide? The current Application.setUserAgentStylesheet requires us to implement everything from scratch rather than augment a default. I don't believe it was intended to be so awkward.
21-11-2017

hmmm .. StyleManager didn't make it to public api? Such that it is still not possible to _add_ stylessheets application-wide? Currently: StyleManager.getInstance().addUserAgentStyleSheet(myStyles); is simply dirty (relying on internal api), in future it will be impossible - what else to do (short of adding the styles to each and every popup/dialog that's opened)?
23-09-2015

Resolving as fixed now that the changesets have been pushed (we can file follow-on issues for further work).
21-09-2015

Changeset URL: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/5023330f0526
10-09-2015