Package org.silverpeas.core.ddwe
Class DragAndDropEditorContent
- java.lang.Object
-
- org.silverpeas.core.ddwe.DragAndDropEditorContent
-
public class DragAndDropEditorContent extends Object
Permits to centralization some content manipulation with Drag and Drop editor.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description DragAndDropEditorContent(String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getEncodedJson()
Gets the JSON content handled by Drag and Drop Editor.String
getInitialRawContent()
Gets the content from which this instance has been initialized.String
getInlinedHtml()
Gets the inlined HTML of the current content.Optional<String>
getSimpleContent()
Gets optional simple content.int
hashCode()
void
setTemporaryInlinedHtml(String html)
Sets a temporary inlined HTML content.
-
-
-
Constructor Detail
-
DragAndDropEditorContent
public DragAndDropEditorContent(String content)
-
-
Method Detail
-
getSimpleContent
public Optional<String> getSimpleContent()
Gets optional simple content.Will be filled if the editor is initialized with a non JSON structure.
- Returns:
- an option simple HTML content.
-
setTemporaryInlinedHtml
public void setTemporaryInlinedHtml(String html)
Sets a temporary inlined HTML content.A temporary inlined HTML content is taken into account by the functionality that detect a potential loss od modified data.
- Parameters:
html
- an inlined HTML as string.
-
getInlinedHtml
public String getInlinedHtml()
Gets the inlined HTML of the current content.The inlined HTML content is the HTML which HTML and CSS have been performed in order to have hte style computed on each HTML element.
- Returns:
- an inlined HTML content.
-
getEncodedJson
public String getEncodedJson()
Gets the JSON content handled by Drag and Drop Editor.- Returns:
- a string representing a JSON structure.
-
getInitialRawContent
public String getInitialRawContent()
Gets the content from which this instance has been initialized.- Returns:
- string representing the initialized content.
-
-