public static class CMAEditorInterface.Control
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CMAEditorInterface.Control.BuildInWidgetId
Enum holding the build in values of a widget id.
|
Constructor and Description |
---|
Control() |
Modifier and Type | Method and Description |
---|---|
CMAEditorInterface.Control |
addHelpText(java.lang.String helpText)
Adds a new custom help text to the settings.
|
CMAEditorInterface.Control |
addSetting(java.lang.String key,
java.lang.String value)
Adds a new custom setting to the settings.
|
CMAEditorInterface.Control.BuildInWidgetId |
getBuildInWidgetId() |
java.lang.String |
getFieldId() |
java.lang.String |
getHelpText() |
java.util.Map<java.lang.String,java.lang.String> |
getSettings() |
java.lang.String |
getWidgetId() |
CMAEditorInterface.Control |
setBuildInWidgetId(CMAEditorInterface.Control.BuildInWidgetId buildInWidgetId)
Use a build in widget.
|
CMAEditorInterface.Control |
setFieldId(java.lang.String fieldId)
Change the id of the field for this control.
|
CMAEditorInterface.Control |
setWidgetId(java.lang.String widgetId)
Set the id of the widget.
|
java.lang.String |
toString() |
public java.lang.String getFieldId()
public CMAEditorInterface.Control setFieldId(java.lang.String fieldId)
fieldId
- new id to be set.public CMAEditorInterface.Control.BuildInWidgetId getBuildInWidgetId()
public CMAEditorInterface.Control setBuildInWidgetId(CMAEditorInterface.Control.BuildInWidgetId buildInWidgetId)
For custom ids, as in for using a custom ui extension widgets, please take a look at
setWidgetId(String)
.
buildInWidgetId
- an id pointing to a build in widget.public java.lang.String getWidgetId()
CMAEditorInterface.Control.BuildInWidgetId
,
setBuildInWidgetId(BuildInWidgetId)
public CMAEditorInterface.Control setWidgetId(java.lang.String widgetId)
Use this setter if you want to use a custom ui extension widget, and take a look at
setBuildInWidgetId(BuildInWidgetId)
if you want to select a build in editor
widget.
widgetId
- the new widget idCMAEditorInterface.Control.BuildInWidgetId
,
setBuildInWidgetId(BuildInWidgetId)
public CMAEditorInterface.Control addSetting(java.lang.String key, java.lang.String value)
Side effect: might create a new map, if no map was created before.
key
- the settings key to be added.value
- the value of the key to be added.public CMAEditorInterface.Control addHelpText(java.lang.String helpText)
Side effect: might create a new map, if no map was created before.
helpText
- display this text to the user.public java.lang.String getHelpText()
public java.util.Map<java.lang.String,java.lang.String> getSettings()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.