Class JsonFormlyUtil
java.lang.Object
io.openems.edge.core.appmanager.formly.JsonFormlyUtil
Source https://formly.dev/examples/introduction.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<T>>
CheckboxBuilderbuildCheckbox
(T property) Creates a JsonObject Formly Checkbox Builder for the given enum.static CheckboxBuilder
buildCheckboxFromNameable
(Nameable nameable) Creates a JsonObject Formly Checkbox Builder for the given enum.static DateTimeBuilder
buildDateTimeFromNameable
(Nameable nameable) Creates a JsonObject Formly DateTime Builder for the given enum.static <T extends Enum<T>>
FieldGroupBuilderbuildFieldGroup
(T property) Creates a JsonObject Formly Input Builder for the given enum.static FieldGroupBuilder
buildFieldGroupFromNameable
(Nameable nameable) Creates a JsonObject Formly Input Builder for the given enum.static <T extends Enum<T>>
InputBuilderbuildInput
(T property) Creates a JsonObject Formly Input Builder for the given enum.static InputBuilder
buildInputFromNameable
(Nameable nameable) Creates a JsonObject Formly Input Builder for the given enum.static <T extends Enum<T>>
RangeBuilderbuildRange
(T property) Creates a JsonObject Formly Range Builder for the given enum.static RangeBuilder
buildRangeFromNameable
(Nameable nameable) Creates a JsonObject Formly Range Builder for the given enum.static <T extends Enum<T>>
RepeatBuilderbuildRepeat
(T property) Creates a JsonObject Formly Repeat Builder for the given enum.static RepeatBuilder
buildRepeatFromNameable
(Nameable nameable) Creates a JsonObject Formly Repeat Builder for the given enum.static <T extends Enum<T>>
SelectBuilderbuildSelect
(T property) Creates a JsonObject Formly Select Builder for the given enum.static SelectBuilder
buildSelectFromNameable
(Nameable nameable) Creates a JsonObject Formly Select Builder for the given enum.static <T extends Enum<T>>
SelectGroupBuilderbuildSelectGroup
(T property) Creates a JsonObject Formly Select Group Builder for the given enum.static SelectGroupBuilder
buildSelectGroupFromNameable
(Nameable nameable) Creates a JsonObject Formly Select Group Builder for the given enum.static TextBuilder
Creates a JsonObject Formly Text Builder for the given enum.static final com.google.gson.JsonObject
single
(com.google.gson.JsonObject o) Creates a newJsonObject
or returns the givenJsonObject
if it is not null.
-
Method Details
-
buildCheckbox
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
Creates a JsonObject Formly Checkbox Builder for the given enum.- Parameters:
nameable
- theNameable
property- Returns:
- a
CheckboxBuilder
-
buildInput
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
Creates a JsonObject Formly Input Builder for the given enum.- Parameters:
nameable
- theNameable
property- Returns:
- a
InputBuilder
-
buildFieldGroup
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
Creates a JsonObject Formly Input Builder for the given enum.- Parameters:
nameable
- theNameable
property- Returns:
- a
InputBuilder
-
buildSelect
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
Creates a JsonObject Formly Select Builder for the given enum.- Parameters:
nameable
- theNameable
property- Returns:
- a
SelectBuilder
-
buildSelectGroup
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
Creates a JsonObject Formly Select Group Builder for the given enum.- Parameters:
nameable
- theNameable
property- Returns:
- a
SelectGroupBuilder
-
buildRange
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
Creates a JsonObject Formly Range Builder for the given enum.- Parameters:
nameable
- theNameable
property- Returns:
- a
RangeBuilder
-
buildDateTimeFromNameable
Creates a JsonObject Formly DateTime Builder for the given enum.- Parameters:
nameable
- theNameable
property- Returns:
- a
DateTimeBuilder
-
buildRepeat
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
Creates a JsonObject Formly Repeat Builder for the given enum.- Parameters:
nameable
- theNameable
property- Returns:
- a
RepeatBuilder
-
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 newJsonObject
or returns the givenJsonObject
if it is not null.- Parameters:
o
- the existingJsonObject
; can be null- Returns:
- the existing or created
JsonObject
; never null
-