Klasse Placeholder

java.lang.Object
com.vaadin.componentfactory.Placeholder
Alle implementierten Schnittstellen:
com.vaadin.flow.component.JsonSerializable, Serializable

public class Placeholder extends Object implements com.vaadin.flow.component.JsonSerializable
Siehe auch:
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
    Placeholder(elemental.json.JsonObject placeholder)
    Construct Placeholder from a JsonObject
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    elemental.json.JsonObject
     
    elemental.json.JsonObject
     
    int
    Get the last insertion index of the placeholder, if there are multiple occurrences of the placeholder.
     
    com.vaadin.flow.component.JsonSerializable
    readJson(elemental.json.JsonObject placeholder)
     
    void
    setAltFormat(elemental.json.JsonObject altFormat)
    Set the format for placeholder alternative appearence
    void
    setFormat(elemental.json.JsonObject format)
    Set the format for placeholder appearence
    void
    setIndex(int index)
     
    void
    Set placeholder text
    elemental.json.JsonObject
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • Placeholder

      public Placeholder()
    • Placeholder

      public Placeholder(elemental.json.JsonObject placeholder)
      Construct Placeholder from a JsonObject
      Parameter:
      placeholder - Placeholder as JsonObject
  • Methodendetails

    • getText

      public String getText()
    • setText

      public void setText(String text)
      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:
      toJson in Schnittstelle com.vaadin.flow.component.JsonSerializable
    • readJson

      public com.vaadin.flow.component.JsonSerializable readJson(elemental.json.JsonObject placeholder)
      Angegeben von:
      readJson in Schnittstelle com.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)