Interface Editable.Builder<B extends Builder<B>>

All Superinterfaces:
BuilderInterface
All Known Implementing Classes:
EditableLabel.Builder, Entry.Builder, EntryRow.Builder, PasswordEntry.Builder, PasswordEntryRow.Builder, SearchEntry.Builder, SpinButton.Builder, SpinRow.Builder, Text.Builder
Enclosing interface:
Editable

public static interface Editable.Builder<B extends Builder<B>> extends BuilderInterface
  • Method Summary

    Modifier and Type
    Method
    Description
    default B
    setEditable(boolean editable)
    Whether the entry contents can be edited.
    default B
    setEnableUndo(boolean enableUndo)
    If undo/redo should be enabled for the editable.
    default B
    setMaxWidthChars(int maxWidthChars)
    The desired maximum width of the entry, in characters.
    default B
    The contents of the entry.
    default B
    setWidthChars(int widthChars)
    Number of characters to leave space for in the entry.
    default B
    setXalign(float xalign)
    The horizontal alignment, from 0 (left) to 1 (right).

    Methods inherited from interface BuilderInterface

    addBuilderProperty, connect, connect, getArena
  • Method Details

    • setEditable

      default B setEditable(boolean editable)
      Whether the entry contents can be edited.
      Parameters:
      editable - the value for the editable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setEnableUndo

      default B setEnableUndo(boolean enableUndo)
      If undo/redo should be enabled for the editable.
      Parameters:
      enableUndo - the value for the enable-undo property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMaxWidthChars

      default B setMaxWidthChars(int maxWidthChars)
      The desired maximum width of the entry, in characters.
      Parameters:
      maxWidthChars - the value for the max-width-chars property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setText

      default B setText(String text)
      The contents of the entry.
      Parameters:
      text - the value for the text property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setWidthChars

      default B setWidthChars(int widthChars)
      Number of characters to leave space for in the entry.
      Parameters:
      widthChars - the value for the width-chars property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setXalign

      default B setXalign(float xalign)

      The horizontal alignment, from 0 (left) to 1 (right).

      Reversed for RTL layouts.

      Parameters:
      xalign - the value for the xalign property
      Returns:
      the Builder instance is returned, to allow method chaining