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

-fx-text-overrun does not know about "center-ellipses"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.0.1
    • javafx

      I tried to set the -fx-text-overrun CSS setting on a label to "center-ellipses" as documented here: http://docs.oracle.com/javafx/2.0/api/javafx/scene/doc-files/cssref.html#labeled

      When I start my application I get the following exception:

      java.lang.IllegalArgumentException: No enum const class javafx.scene.control.OverrunStyle.center_ellipses
      at java.lang.Enum.valueOf(Enum.java:196)
      at com.sun.javafx.css.converters.EnumConverter.convert(EnumConverter.java:39)
      at com.sun.javafx.css.converters.EnumConverter.convert(EnumConverter.java:16)
      at com.sun.javafx.css.StyleHelper.lookup(StyleHelper.java:901)
      at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:686)
      at javafx.scene.Node.impl_processCSS(Node.java:6194)
      at javafx.scene.Parent.impl_processCSS(Parent.java:965)
      at javafx.scene.control.Control.impl_processCSS(Control.java:1002)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.control.Control.impl_processCSS(Control.java:1002)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.control.Control.impl_processCSS(Control.java:1002)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.Parent.impl_processCSS(Parent.java:972)
      at javafx.scene.Node.processCSS(Node.java:6173)
      at javafx.scene.Scene.doCSSPass(Scene.java:380)
      at javafx.scene.Scene.access$2700(Scene.java:132)
      at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:1749)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:292)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:398)
      at com.sun.javafx.tk.quantum.QuantumToolkit$10.run(QuantumToolkit.java:330)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
      at java.lang.Thread.run(Thread.java:662)

      If I set the value to "center-ellipsis" JavaFX can parse my CSS document. So either in the documentation or the OverrunStyle-Enum is a typo. Would be nice if you can fix it, as already IDE integrations (like e(fx)clipse) enforce the "center-ellipses" spelling.

            dgrieve David Grieve
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: