Package com.morpheusdata.model
Class OptionType.InputType
java.lang.Object
com.morpheusdata.model.OptionType.InputType
- Enclosing class:
- OptionType
Represents the input type for an OptionType field. This class provides
standard
input types as constants and also supports custom input types defined by
plugins.
To use a custom input type, create a new InputType instance with a custom
string value
that matches the registration name in your plugin's JavaScript component:
OptionType.InputType customType = new OptionType.InputType("my-custom-input");
The JavaScript component should be registered in your plugin's assets using:
window.Morpheus.components.registry.register("my-custom-input", MyComponent, {...});
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputTypestatic final OptionType.InputType -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TEXT
-
PASSWORD
-
NUMBER
-
TEXTAREA
-
SELECT
-
MULTI_SELECT
-
CHECKBOX
-
RADIO
-
CREDENTIAL
-
TYPEAHEAD
-
MULTI_TYPEAHEAD
-
CODE_EDITOR
-
HIDDEN
-
BYTESIZE
-
-
Constructor Details
-
InputType
Creates a new InputType with the specified string value. This constructor allows plugins to define custom input types.- Parameters:
value- the string identifier for this input type (should match the JavaScript component registration name)
-
-
Method Details
-
toString
Returns the string value of this input type. This value is used by the UI to determine which component to render. -
getValue
Returns the string value of this input type.- Returns:
- the string identifier for this input type
-
equals
-
hashCode
public int hashCode()
-