Class CssParserJavaFacet

  • All Implemented Interfaces:
    JavaFacet

    public class CssParserJavaFacet
    extends java.lang.Object
    implements JavaFacet
    CssParser JavaFacet.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javafx.beans.property.Property<java.lang.String> cssErrorProperty​(javafx.beans.property.Property<java.lang.String> style, javafx.beans.property.Property<java.lang.String> styleUpdater)
      Creates a Property to listen on CSS errors for the style.
      boolean isSupported​(JavaFacetContext context)
      Indicates if the facet is supported.
      static javafx.beans.property.Property<java.lang.String> translateProperty​(javafx.beans.property.Property<java.lang.String> rawStyle, java.util.function.Function<java.lang.String,​java.lang.String> translator)
      Translates the Property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CssParserJavaFacet

        public CssParserJavaFacet()
    • Method Detail

      • translateProperty

        public static javafx.beans.property.Property<java.lang.String> translateProperty​(javafx.beans.property.Property<java.lang.String> rawStyle,
                                                                                         java.util.function.Function<java.lang.String,​java.lang.String> translator)
        Translates the Property.
        Parameters:
        rawStyle - Raw style.
        translator - Translator. May be null.
        Returns:
        Translated Property.
      • cssErrorProperty

        public static javafx.beans.property.Property<java.lang.String> cssErrorProperty​(javafx.beans.property.Property<java.lang.String> style,
                                                                                        javafx.beans.property.Property<java.lang.String> styleUpdater)
        Creates a Property to listen on CSS errors for the style.
        Parameters:
        style - Property specifying the style.
        styleUpdater - Updates the Style.
        Returns:
        Property for CSS errors.
      • isSupported

        public boolean isSupported​(JavaFacetContext context)
                            throws java.lang.Exception
        Description copied from interface: JavaFacet
        Indicates if the facet is supported.
        Specified by:
        isSupported in interface JavaFacet
        Parameters:
        context - JavaFacetContext.
        Returns:
        true if the facet is supported.
        Throws:
        java.lang.Exception - If fails to determine if facet is supported.