public final class PluginDataFieldCustom extends PluginDataField<java.lang.String>
PluginAction or PluginTrigger.
Custom views allows you to create a more complex visualization for your plugin configuration.IPluginDataFieldCustomViewPluginDataField.FieldTypeJSON_FIELD_VALUE| Constructor and Description |
|---|
PluginDataFieldCustom(int id,
java.lang.String title,
java.lang.String description,
java.lang.Class<? extends IPluginDataFieldCustomView> customViewClass)
Instantiates a new plugin data field of type custom.
|
PluginDataFieldCustom(org.json.JSONObject fieldJson)
Do not use - for internal use only
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCustomViewHandlerClass()
Gets the custom view handler class name.
|
protected java.lang.String |
getFieldValue(org.json.JSONObject fieldJson,
java.lang.String jsonFieldValue)
Gets the field value.
|
org.json.JSONObject |
serialize()
Do not use - for internal use only
|
createNewField, getDescription, getId, getTitle, getType, getValue, setValue, setValueGenericpublic PluginDataFieldCustom(org.json.JSONObject fieldJson)
public PluginDataFieldCustom(int id,
java.lang.String title,
java.lang.String description,
java.lang.Class<? extends IPluginDataFieldCustomView> customViewClass)
id - The field id. To be used with PluginDataFieldCollection.getFieldById(int) to retrieve the field from a data fields collectiontitle - The field title to show within AutomateIt when editing the related PluginAction or PluginTriggerdescription - The field description to show within AutomateIt when editing the related PluginAction or PluginTriggercustomViewClass - The component class that is to be used for the custom view. This class must extend View (or any of its subclasses), and implement the IPluginDataFieldCustomView interfacepublic java.lang.String getCustomViewHandlerClass()
public org.json.JSONObject serialize()
PluginDataFieldserialize in class PluginDataField<java.lang.String>protected java.lang.String getFieldValue(org.json.JSONObject fieldJson,
java.lang.String jsonFieldValue)
PluginDataFieldgetFieldValue in class PluginDataField<java.lang.String>fieldJson - the field jsonjsonFieldValue - the json field value