public class Snippet extends Object implements Serializable
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getText()
Get the snippet content text.
|
String |
getTitle()
Get the set title text (either a user-specified string or up to 20
characters of the main snippet text.
|
public Snippet()
public Snippet(String text)
text - body text, may contain HTML markupCopyright © 2023 Vaadin Ltd. All rights reserved.