Class FormDecoration

java.lang.Object
no.ntnu.principes.components.validations.FormDecoration

public class FormDecoration extends Object
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 Type
    Method
    Description
    createGraphicDecoration(net.synedra.validatorfx.ValidationMessage message)
    Creates a new graphic decoration based on the provided validation message.
    static net.synedra.validatorfx.StyleClassDecoration
    createStyleClassDecoration(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 void
    setFactory(Function<net.synedra.validatorfx.ValidationMessage,net.synedra.validatorfx.Decoration> factory)
    Sets the factory for creating decorations.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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