Package com.vaadin.componentfactory
Klasse Placeholder
java.lang.Object
com.vaadin.componentfactory.Placeholder
- Alle implementierten Schnittstellen:
com.vaadin.flow.component.JsonSerializable,Serializable
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPlaceholder(elemental.json.JsonObject placeholder) Construct Placeholder from a JsonObject -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungelemental.json.JsonObjectelemental.json.JsonObjectintgetIndex()Get the last insertion index of the placeholder, if there are multiple occurrences of the placeholder.getText()com.vaadin.flow.component.JsonSerializablereadJson(elemental.json.JsonObject placeholder) voidsetAltFormat(elemental.json.JsonObject altFormat) Set the format for placeholder alternative appearencevoidsetFormat(elemental.json.JsonObject format) Set the format for placeholder appearencevoidsetIndex(int index) voidSet placeholder textelemental.json.JsonObjecttoJson()
-
Konstruktordetails
-
Placeholder
public Placeholder() -
Placeholder
public Placeholder(elemental.json.JsonObject placeholder) Construct Placeholder from a JsonObject- Parameter:
placeholder- Placeholder as JsonObject
-
-
Methodendetails
-
getText
-
setText
Set placeholder text- Parameter:
text- The placeholder text
-
getFormat
public elemental.json.JsonObject getFormat() -
setFormat
public void setFormat(elemental.json.JsonObject format) Set the format for placeholder appearence- Parameter:
format- Format in Quill format as JsonObject, like "{ bold: true, italic: false }"
-
getAltFormat
public elemental.json.JsonObject getAltFormat() -
setAltFormat
public void setAltFormat(elemental.json.JsonObject altFormat) Set the format for placeholder alternative appearence- Parameter:
altFormat- Format in Quill format as JsonObject, like "{ underline: true, bold: false }"
-
toJson
public elemental.json.JsonObject toJson()- Angegeben von:
toJsonin Schnittstellecom.vaadin.flow.component.JsonSerializable
-
readJson
public com.vaadin.flow.component.JsonSerializable readJson(elemental.json.JsonObject placeholder) - Angegeben von:
readJsonin Schnittstellecom.vaadin.flow.component.JsonSerializable
-
getIndex
public int getIndex()Get the last insertion index of the placeholder, if there are multiple occurrences of the placeholder. Populated in PlaceholderBeforeInsertEvent.- Gibt zurück:
- int value
-
setIndex
public void setIndex(int index)
-