Class JsonFormlyUtil

java.lang.Object
io.openems.edge.core.appmanager.formly.JsonFormlyUtil

public class JsonFormlyUtil extends Object
Source https://formly.dev/examples/introduction.
  • Method Details

    • buildCheckbox

      public static <T extends Enum<T>> CheckboxBuilder buildCheckbox(T property)
      Creates a JsonObject Formly Checkbox Builder for the given enum.
      Type Parameters:
      T - the type of the enum
      Parameters:
      property - the enum property
      Returns:
      a CheckboxBuilder
    • buildCheckboxFromNameable

      public static CheckboxBuilder buildCheckboxFromNameable(Nameable nameable)
      Creates a JsonObject Formly Checkbox Builder for the given enum.
      Parameters:
      nameable - the Nameable property
      Returns:
      a CheckboxBuilder
    • buildInput

      public static <T extends Enum<T>> InputBuilder buildInput(T property)
      Creates a JsonObject Formly Input Builder for the given enum.
      Type Parameters:
      T - the type of the enum
      Parameters:
      property - the enum property
      Returns:
      a InputBuilder
    • buildInputFromNameable

      public static InputBuilder buildInputFromNameable(Nameable nameable)
      Creates a JsonObject Formly Input Builder for the given enum.
      Parameters:
      nameable - the Nameable property
      Returns:
      a InputBuilder
    • buildFieldGroup

      public static <T extends Enum<T>> FieldGroupBuilder buildFieldGroup(T property)
      Creates a JsonObject Formly Input Builder for the given enum.
      Type Parameters:
      T - the type of the enum
      Parameters:
      property - the enum property
      Returns:
      a InputBuilder
    • buildFieldGroupFromNameable

      public static FieldGroupBuilder buildFieldGroupFromNameable(Nameable nameable)
      Creates a JsonObject Formly Input Builder for the given enum.
      Parameters:
      nameable - the Nameable property
      Returns:
      a InputBuilder
    • buildSelect

      public static <T extends Enum<T>> SelectBuilder buildSelect(T property)
      Creates a JsonObject Formly Select Builder for the given enum.
      Type Parameters:
      T - the type of the enum
      Parameters:
      property - the enum property
      Returns:
      a SelectBuilder
    • buildSelectFromNameable

      public static SelectBuilder buildSelectFromNameable(Nameable nameable)
      Creates a JsonObject Formly Select Builder for the given enum.
      Parameters:
      nameable - the Nameable property
      Returns:
      a SelectBuilder
    • buildSelectGroup

      public static <T extends Enum<T>> SelectGroupBuilder buildSelectGroup(T property)
      Creates a JsonObject Formly Select Group Builder for the given enum.
      Type Parameters:
      T - the type of the enum
      Parameters:
      property - the enum property
      Returns:
      a SelectGroupBuilder
    • buildSelectGroupFromNameable

      public static SelectGroupBuilder buildSelectGroupFromNameable(Nameable nameable)
      Creates a JsonObject Formly Select Group Builder for the given enum.
      Parameters:
      nameable - the Nameable property
      Returns:
      a SelectGroupBuilder
    • buildRange

      public static <T extends Enum<T>> RangeBuilder buildRange(T property)
      Creates a JsonObject Formly Range Builder for the given enum.
      Type Parameters:
      T - the type of the enum
      Parameters:
      property - the enum property
      Returns:
      a RangeBuilder
    • buildRangeFromNameable

      public static RangeBuilder buildRangeFromNameable(Nameable nameable)
      Creates a JsonObject Formly Range Builder for the given enum.
      Parameters:
      nameable - the Nameable property
      Returns:
      a RangeBuilder
    • buildRepeat

      public static <T extends Enum<T>> RepeatBuilder buildRepeat(T property)
      Creates a JsonObject Formly Repeat Builder for the given enum.
      Type Parameters:
      T - the type of the enum
      Parameters:
      property - the enum property
      Returns:
      a RepeatBuilder
    • buildRepeatFromNameable

      public static RepeatBuilder buildRepeatFromNameable(Nameable nameable)
      Creates a JsonObject Formly Repeat Builder for the given enum.
      Parameters:
      nameable - the Nameable property
      Returns:
      a RepeatBuilder
    • buildText

      public static TextBuilder buildText()
      Creates a JsonObject Formly Text Builder for the given enum.
      Returns:
      a TextBuilder
    • single

      public static final com.google.gson.JsonObject single(com.google.gson.JsonObject o)
      Creates a new JsonObject or returns the given JsonObject if it is not null.
      Parameters:
      o - the existing JsonObject; can be null
      Returns:
      the existing or created JsonObject; never null