java.lang.Object
no.ntnu.principes.components.validations.FormDecoration
FormDecoration is the default DefaultDecoration provided by atlantafx, but modified to fit the
needs of the project, as the class itself is not extendable.
- Author:
- r.lichtenberger@synedra.com
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtendedGraphicDecorationcreateGraphicDecoration(net.synedra.validatorfx.ValidationMessage message) Creates a new graphic decoration based on the provided validation message.static net.synedra.validatorfx.StyleClassDecorationcreateStyleClassDecoration(net.synedra.validatorfx.ValidationMessage message) Creates a new decoration based on the provided validation message.static Function<net.synedra.validatorfx.ValidationMessage, net.synedra.validatorfx.Decoration> Returns the default factory for creating decorations.static voidsetFactory(Function<net.synedra.validatorfx.ValidationMessage, net.synedra.validatorfx.Decoration> factory) Sets the factory for creating decorations.
-
Method Details
-
getFactory
public static Function<net.synedra.validatorfx.ValidationMessage,net.synedra.validatorfx.Decoration> getFactory()Returns the default factory for creating decorations.- Returns:
- the default factory
-
setFactory
public static void setFactory(Function<net.synedra.validatorfx.ValidationMessage, net.synedra.validatorfx.Decoration> factory) Sets the factory for creating decorations.- Parameters:
factory- the factory to set
-
createStyleClassDecoration
public static net.synedra.validatorfx.StyleClassDecoration createStyleClassDecoration(net.synedra.validatorfx.ValidationMessage message) Creates a new decoration based on the provided validation message.- Parameters:
message- the validation message- Returns:
- the created decoration
-
createGraphicDecoration
public static ExtendedGraphicDecoration createGraphicDecoration(net.synedra.validatorfx.ValidationMessage message) Creates a new graphic decoration based on the provided validation message.- Parameters:
message- the validation message- Returns:
- the created graphic decoration
-