Interface TextFieldInplaceEditor


public interface TextFieldInplaceEditor
This is an inteface for text-field based in-place editor.
  • Method Summary

    Modifier and Type
    Method
    Description
    getText(Widget widget)
    Returns an initial text of the in-place editor.
    boolean
    isEnabled(Widget widget)
    Returns whether the in-place editing is allowed.
    void
    setText(Widget widget, String text)
    Sets a new text approved by an user.
  • Method Details

    • isEnabled

      boolean isEnabled(Widget widget)
      Returns whether the in-place editing is allowed.
      Parameters:
      widget - the widget where the editor will be invoked
      Returns:
      true, if enabled; false if disabled
    • getText

      String getText(Widget widget)
      Returns an initial text of the in-place editor.
      Parameters:
      widget - the edited widget
      Returns:
      the initial text
    • setText

      void setText(Widget widget, String text)
      Sets a new text approved by an user.
      Parameters:
      widget - the edited widget
      text - the new text entered by an user