public static class CMAEditorInterface.Control extends 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(String helpText)
Adds a new custom help text to the settings.
|
CMAEditorInterface.Control |
addSetting(String key,
String value)
Adds a new custom setting to the settings.
|
CMAEditorInterface.Control.BuildInWidgetId |
getBuildInWidgetId() |
String |
getFieldId() |
String |
getHelpText() |
Map<String,String> |
getSettings() |
String |
getWidgetId() |
CMAEditorInterface.Control |
setBuildInWidgetId(CMAEditorInterface.Control.BuildInWidgetId buildInWidgetId)
Use a build in widget.
|
CMAEditorInterface.Control |
setFieldId(String fieldId)
Change the id of the field for this control.
|
CMAEditorInterface.Control |
setWidgetId(String widgetId)
Set the id of the widget.
|
String |
toString() |
public String getFieldId()
public CMAEditorInterface.Control setFieldId(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 String getWidgetId()
CMAEditorInterface.Control.BuildInWidgetId,
setBuildInWidgetId(BuildInWidgetId)public CMAEditorInterface.Control setWidgetId(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(String key, 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(String helpText)
Side effect: might create a new map, if no map was created before.
helpText - display this text to the user.public String getHelpText()
public Map<String,String> getSettings()
Copyright © 2026 Contentful, GmbH.. All rights reserved.