Package net.officefloor.gef.ide.javafx
Class CssParserJavaFacet
- java.lang.Object
-
- net.officefloor.gef.ide.javafx.CssParserJavaFacet
-
-
Constructor Summary
Constructors Constructor Description CssParserJavaFacet()
-
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 aProperty
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 theProperty
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.frame.compatibility.JavaFacet
isSupported
-
-
-
-
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 theProperty
.- Parameters:
rawStyle
- Raw style.translator
- Translator. May benull
.- 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 aProperty
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 interfaceJavaFacet
- Parameters:
context
-JavaFacetContext
.- Returns:
true
if the facet is supported.- Throws:
java.lang.Exception
- If fails to determine if facet is supported.
-
-