com.vaadin.shared.ui.richtextarea.
Class Snippet
- java.lang.Object
-
- com.vaadin.shared.ui.richtextarea.Snippet
-
All Implemented Interfaces:
public class Snippet extends Object implements Serializable
Supporting data structure for snippets feature.
Since:
8.16
See Also:
-
-
Constructor Summary
Constructors Constructor and Description Snippet()
Creates an empty snippet
Snippet(String text)
Creates a snippet with a specified body text.
Snippet(String title, String text)
Creates a snippet with a specified title and text.
-
-
-
Constructor Detail
-
Snippet
public Snippet()
Creates an empty snippet
-
Snippet
public Snippet(String text)
Creates a snippet with a specified body text. Title is automatically generated from the first 20 characters in the text, with ellipsis added if the length exceeds 20 characters.
Parameters:
text
- body text, may contain HTML markup
-
-