public static class CMAUiExtension.Extension
extends java.lang.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.
|
java.util.List<CMAUiExtension.Extension.FieldType> |
getFieldTypes() |
java.lang.String |
getName() |
java.lang.String |
getSourceContent() |
java.lang.String |
getSourceUrl() |
boolean |
isOnSidebar() |
CMAUiExtension.Extension |
setIsOnSidebar(boolean available)
Update whether this element should be appearing on the sidebar.
|
CMAUiExtension.Extension |
setName(java.lang.String name)
Update the name of this ui extension.
|
CMAUiExtension.Extension |
setSourceContent(java.lang.String sourceContent)
Updates the html sourcode.
|
CMAUiExtension.Extension |
setSourceUrl(java.lang.String sourceUrl)
Link to the source code to be executed with this ui extension.
|
java.lang.String |
toString() |
public java.lang.String getName()
public CMAUiExtension.Extension setName(java.lang.String name)
name
- the new name.public java.util.List<CMAUiExtension.Extension.FieldType> getFieldTypes()
public CMAUiExtension.Extension addFieldType(Constants.CMAFieldType type)
type
- the new type to be added.public java.lang.String getSourceContent()
public CMAUiExtension.Extension setSourceContent(java.lang.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.java.lang.IllegalArgumentException
- if source content is larger then 200kB.setSourceUrl(String)
public java.lang.String getSourceUrl()
public CMAUiExtension.Extension setSourceUrl(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.