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 TypeMethodDescriptionboolean
Returns 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.CmsUUID
Gets the element view.org.opencms.gwt.shared.I_CmsEditableDataExtensions
Gets 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.CmsUUID
Returns the structure id.boolean
Returns if the delete button should be present.boolean
hasEdit()
Returns if the edit button should be present.boolean
Returns whether an edit handler is available for the resource type.boolean
hasNew()
Returns if the new button should be present.boolean
Returns true if there is an actual resource behind the editable element.boolean
Returns if the given resource is unreleased or expired.static CmsEditableDataJSO
parseEditableData
(String jsonText) Parses the given JSON text and returns the editable data object.void
setSitePath
(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_CmsEditableData
Gets the collector context id.- Specified by:
getContextId
in interfaceI_CmsEditableData
- Returns:
- the collector context id
- See Also:
-
getEditId
Description copied from interface:I_CmsEditableData
Returns the edit id.- Specified by:
getEditId
in interfaceI_CmsEditableData
- Returns:
- the edit id
- See Also:
-
getElementId
Description copied from interface:I_CmsEditableData
Gets the element id.- Specified by:
getElementId
in interfaceI_CmsEditableData
- Returns:
- the element id
- See Also:
-
getElementLanguage
Description copied from interface:I_CmsEditableData
Returns the element language.- Specified by:
getElementLanguage
in interfaceI_CmsEditableData
- Returns:
- the element language
- See Also:
-
getElementName
Description copied from interface:I_CmsEditableData
Returns the element name.- Specified by:
getElementName
in interfaceI_CmsEditableData
- Returns:
- the element name
- See Also:
-
getElementView
Gets the element view.- Returns:
- the element view
-
getExtensions
Description copied from interface:I_CmsEditableData
Gets the extended attributes.- Specified by:
getExtensions
in interfaceI_CmsEditableData
- Returns:
- the extended attributes
- See Also:
-
getNewLink
Description copied from interface:I_CmsEditableData
Returns the new link url.- Specified by:
getNewLink
in interfaceI_CmsEditableData
- Returns:
- the new link url
- See Also:
-
getNewTitle
Description copied from interface:I_CmsEditableData
Returns the new link url.- Specified by:
getNewTitle
in interfaceI_CmsEditableData
- Returns:
- the new link url
- See Also:
-
getNoEditReason
Description copied from interface:I_CmsEditableData
Returns the no edit reason.- Specified by:
getNoEditReason
in interfaceI_CmsEditableData
- Returns:
- the no edit reason
- See Also:
-
getPostCreateHandler
Description copied from interface:I_CmsEditableData
Gets the (fully qualified) name of the post-create handler class to use.- Specified by:
getPostCreateHandler
in interfaceI_CmsEditableData
- Returns:
- the post-create handler class name
- See Also:
-
getSitePath
Description copied from interface:I_CmsEditableData
Returns the site path.- Specified by:
getSitePath
in interfaceI_CmsEditableData
- Returns:
- the site path
- See Also:
-
getStructureId
Description copied from interface:I_CmsEditableData
Returns the structure id.- Specified by:
getStructureId
in interfaceI_CmsEditableData
- Returns:
- the structure id
- See Also:
-
hasDelete
Returns if the delete button should be present.- Returns:
true
if the delete button should be present
-
hasEdit
Returns if the edit button should be present.- Returns:
true
if the edit button should be present
-
hasEditHandler
Description copied from interface:I_CmsEditableData
Returns whether an edit handler is available for the resource type.- Specified by:
hasEditHandler
in interfaceI_CmsEditableData
- Returns:
true
if an edit handler is available for the resource type- See Also:
-
hasNew
Returns if the new button should be present.- Returns:
true
if the new button should be present
-
hasResource
Description copied from interface:I_CmsEditableData
Returns true if there is an actual resource behind the editable element.- Specified by:
hasResource
in interfaceI_CmsEditableData
- Returns:
- true if the editable element represents an actual resource
- See Also:
-
isUnreleasedOrExpired
Description copied from interface:I_CmsEditableData
Returns if the given resource is unreleased or expired.- Specified by:
isUnreleasedOrExpired
in interfaceI_CmsEditableData
- Returns:
true
if the given resource is unreleased or expired- See Also:
-
setSitePath
Description copied from interface:I_CmsEditableData
Sets the site path.- Specified by:
setSitePath
in interfaceI_CmsEditableData
- Parameters:
sitePath
- the site path- See Also:
-