Interface HasReadOnly

All Known Implementing Classes:
CheckBox, ComboBox, DateEditBox, ListBox, Navigator, NumericBox, NumericBoxSpinner, RadioButton, StringEditBox, TextArea, TextBox, TextComboBox

public interface HasReadOnly
Facilitates implementation of methods which allow for the toggle of read only status on a control.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a value indicating whether or not a control is set to read only or not.
    setReadOnly(Boolean editable)
    Sets whether a user can edit the control.
  • Method Details

    • setReadOnly

      HasReadOnly setReadOnly(Boolean editable)
      Sets whether a user can edit the control.
      Parameters:
      editable - True to disable editing, false to enable editing.
      Returns:
      The control itself.
    • isReadOnly

      Boolean isReadOnly()
      Returns a value indicating whether or not a control is set to read only or not.
      Returns:
      Boolean indicating whether or not the user can edit the control.