Enum Class FramingOption
- All Implemented Interfaces:
Serializable,Comparable<FramingOption>,Constable
An enumeration of the supported methods for presenting the authentication challenge UI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAJsonSerializerandJsonDeserializerimplementation for serializing and de-serializingFramingOptionobjects to / from JSON using GSON APIs.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FramingOptionfromJsonTree(com.inductiveautomation.ignition.common.gson.JsonElement jsonElement) Attempts to parse aFramingOptionfrom aJsonElementstatic Optional<FramingOption>com.inductiveautomation.ignition.common.gson.JsonElementstatic FramingOptionReturns the enum constant of this class with the specified name.static FramingOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELF
Open the authentication UI using the current tab / window -
NEW
Open the authentication UI in a new tab / window -
EMBEDDED
Open the authentication UI within an embedded iframe
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
parse
- Parameters:
str- a string to parse into aFramingOption- Returns:
- an
Optionalcontaining theFramingOptionparsed from the provided string, or an empty Optional if the string is null or if the string could not be parsed into one of the FramingOptions
-
fromJsonTree
public static FramingOption fromJsonTree(com.inductiveautomation.ignition.common.gson.JsonElement jsonElement) Attempts to parse aFramingOptionfrom aJsonElement- Parameters:
jsonElement- theJsonElementto parse- Returns:
- the
FramingOptionparsed from the providedJsonElement - Throws:
com.inductiveautomation.ignition.common.gson.JsonParseException- if aFramingOptioncannot be parsed from the providedJsonElement- See Also:
-
toJsonTree
public com.inductiveautomation.ignition.common.gson.JsonElement toJsonTree()- Returns:
- this
FramingOptionas aJsonElement
-