public static class CMAUiExtension.Extension extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CMAUiExtension.Extension.FieldType
Holder of one field type this extension should be used on.
|
| Constructor and Description |
|---|
Extension() |
| Modifier and Type | Method and Description |
|---|---|
CMAUiExtension.Extension |
addFieldType(Constants.CMAFieldType type)
Add a new content type field type to this UI extension.
|
List<CMAUiExtension.Extension.FieldType> |
getFieldTypes() |
String |
getName() |
CMAUiExtensionParameters |
getParameters() |
String |
getSourceContent() |
String |
getSourceUrl() |
boolean |
isOnSidebar() |
CMAUiExtension.Extension |
setIsOnSidebar(boolean available)
Update whether this element should be appearing on the sidebar.
|
CMAUiExtension.Extension |
setName(String name)
Update the name of this UI extension.
|
CMAUiExtension.Extension |
setParameters(CMAUiExtensionParameters parameters)
Set the UI extension parameters.
|
CMAUiExtension.Extension |
setSourceContent(String sourceContent)
Updates the html sourcode.
|
CMAUiExtension.Extension |
setSourceUrl(String sourceUrl)
Link to the source code to be executed with this UI extension.
|
String |
toString() |
public String getName()
public CMAUiExtension.Extension setName(String name)
name - the new name.public List<CMAUiExtension.Extension.FieldType> getFieldTypes()
public CMAUiExtension.Extension addFieldType(Constants.CMAFieldType type)
type - the new type to be added.public String getSourceContent()
public CMAUiExtension.Extension setSourceContent(String sourceContent)
Either this one or a link to an extension online needs to be present once sending to contentful.
May not be larger then 200kB.
sourceContent - the actual html source code of this UI extension.IllegalArgumentException - if source content is larger then 200kB.setSourceUrl(String)public String getSourceUrl()
public CMAUiExtension.Extension setSourceUrl(String sourceUrl)
Either this one or the direct source code needs to be present once sending to contentful.
sourceUrl - a link to an html page containing the source of the UI extension.setSourceContent(String)public boolean isOnSidebar()
public CMAUiExtension.Extension setIsOnSidebar(boolean available)
available - on sidebar or not?public CMAUiExtensionParameters getParameters()
public CMAUiExtension.Extension setParameters(CMAUiExtensionParameters parameters)
parameters - the installation or instance parameters.Copyright © 2026 Contentful, GmbH.. All rights reserved.