Interface Focusable

All Known Implementing Classes:
Button, CheckBox, ComboBox, DateEditBox, HtmlContainer, HtmlEdit, ListBox, NumericBox, NumericBoxSpinner, RadioButton, Slider, StringEditBox, TextArea, TextBox, TextComboBox

public interface Focusable
Interface which facilitates functionality to be implemented that controls whether or not a control can gain and lose focus.
  • Method Summary

    Modifier and Type
    Method
    Description
    isFocusable returns a value indicating whether or not the user can focus the control.
    setFocusable(Boolean focusable)
    setFocusable sets whether a control can be focused.
  • Method Details

    • isFocusable

      Boolean isFocusable()
      isFocusable returns a value indicating whether or not the user can focus the control. Note: A focused control is the control to which keyboard interaction is directed. Typically, the focused control is indicated visually, often via a dotted grey border. A control which is not focusable, therefore, cannot be manipulated via the keyboard. It is still possible to interact with a non-focusable control via the mouse.
      Returns:
      True if object can be focused, False if not.
    • setFocusable

      Focusable setFocusable(Boolean focusable)
      setFocusable sets whether a control can be focused. Note: A focused control is the control to which keyboard interaction is directed. Typically, the focused control is indicated visually, often via a dotted grey border. A control which is not focusable, therefore, cannot be manipulated via the keyboard. It is still possible to interact with a non-focusable control via the mouse. To disable all interaction, including the mouse, see setEnabled() and setReadOnly().
      Parameters:
      focusable - Boolean True for allowing focusing, False to disable focus
      Returns:
      Object itself