Package org.opencms.gwt.client
Class CmsEditableDataJSO
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
org.opencms.gwt.client.CmsEditableDataJSO
- All Implemented Interfaces:
I_CmsEditableData
public final class CmsEditableDataJSO
extends com.google.gwt.core.client.JavaScriptObject
implements I_CmsEditableData
Javascript overlay object holding data needed to edit a content collector list element.
- Since:
- 8.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the element can be favorited.Gets the collector context id.Returns the edit id.Gets the element id.Returns the element language.Returns the element name.org.opencms.util.CmsUUIDGets the element view.org.opencms.gwt.shared.I_CmsEditableDataExtensionsGets the extended attributes.Returns the new link url.Returns the new link url.Returns the no edit reason.Gets the (fully qualified) name of the post-create handler class to use.Returns the site path.org.opencms.util.CmsUUIDReturns the structure id.booleanReturns if the delete button should be present.booleanhasEdit()Returns if the edit button should be present.booleanReturns whether an edit handler is available for the resource type.booleanhasNew()Returns if the new button should be present.booleanReturns true if there is an actual resource behind the editable element.booleanReturns if the given resource is unreleased or expired.static CmsEditableDataJSOparseEditableData(String jsonText) Parses the given JSON text and returns the editable data object.voidsetSitePath(String sitePath) Sets the site path.Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
CmsEditableDataJSO
protected CmsEditableDataJSO()Constructor.
-
-
Method Details
-
parseEditableData
Parses the given JSON text and returns the editable data object.- Parameters:
jsonText- the JSON text to parse- Returns:
- the data object
-
canFavorite
Returns true if the element can be favorited.- Returns:
- true if the element can be favorited
-
getContextId
Description copied from interface:I_CmsEditableDataGets the collector context id.- Specified by:
getContextIdin interfaceI_CmsEditableData- Returns:
- the collector context id
- See Also:
-
getEditId
Description copied from interface:I_CmsEditableDataReturns the edit id.- Specified by:
getEditIdin interfaceI_CmsEditableData- Returns:
- the edit id
- See Also:
-
getElementId
Description copied from interface:I_CmsEditableDataGets the element id.- Specified by:
getElementIdin interfaceI_CmsEditableData- Returns:
- the element id
- See Also:
-
getElementLanguage
Description copied from interface:I_CmsEditableDataReturns the element language.- Specified by:
getElementLanguagein interfaceI_CmsEditableData- Returns:
- the element language
- See Also:
-
getElementName
Description copied from interface:I_CmsEditableDataReturns the element name.- Specified by:
getElementNamein interfaceI_CmsEditableData- Returns:
- the element name
- See Also:
-
getElementView
Gets the element view.- Returns:
- the element view
-
getExtensions
Description copied from interface:I_CmsEditableDataGets the extended attributes.- Specified by:
getExtensionsin interfaceI_CmsEditableData- Returns:
- the extended attributes
- See Also:
-
getNewLink
Description copied from interface:I_CmsEditableDataReturns the new link url.- Specified by:
getNewLinkin interfaceI_CmsEditableData- Returns:
- the new link url
- See Also:
-
getNewTitle
Description copied from interface:I_CmsEditableDataReturns the new link url.- Specified by:
getNewTitlein interfaceI_CmsEditableData- Returns:
- the new link url
- See Also:
-
getNoEditReason
Description copied from interface:I_CmsEditableDataReturns the no edit reason.- Specified by:
getNoEditReasonin interfaceI_CmsEditableData- Returns:
- the no edit reason
- See Also:
-
getPostCreateHandler
Description copied from interface:I_CmsEditableDataGets the (fully qualified) name of the post-create handler class to use.- Specified by:
getPostCreateHandlerin interfaceI_CmsEditableData- Returns:
- the post-create handler class name
- See Also:
-
getSitePath
Description copied from interface:I_CmsEditableDataReturns the site path.- Specified by:
getSitePathin interfaceI_CmsEditableData- Returns:
- the site path
- See Also:
-
getStructureId
Description copied from interface:I_CmsEditableDataReturns the structure id.- Specified by:
getStructureIdin interfaceI_CmsEditableData- Returns:
- the structure id
- See Also:
-
hasDelete
Returns if the delete button should be present.- Returns:
trueif the delete button should be present
-
hasEdit
Returns if the edit button should be present.- Returns:
trueif the edit button should be present
-
hasEditHandler
Description copied from interface:I_CmsEditableDataReturns whether an edit handler is available for the resource type.- Specified by:
hasEditHandlerin interfaceI_CmsEditableData- Returns:
trueif an edit handler is available for the resource type- See Also:
-
hasNew
Returns if the new button should be present.- Returns:
trueif the new button should be present
-
hasResource
Description copied from interface:I_CmsEditableDataReturns true if there is an actual resource behind the editable element.- Specified by:
hasResourcein interfaceI_CmsEditableData- Returns:
- true if the editable element represents an actual resource
- See Also:
-
isUnreleasedOrExpired
Description copied from interface:I_CmsEditableDataReturns if the given resource is unreleased or expired.- Specified by:
isUnreleasedOrExpiredin interfaceI_CmsEditableData- Returns:
trueif the given resource is unreleased or expired- See Also:
-
setSitePath
Description copied from interface:I_CmsEditableDataSets the site path.- Specified by:
setSitePathin interfaceI_CmsEditableData- Parameters:
sitePath- the site path- See Also:
-