Interface Editable<T extends Component<?>>

Type Parameters:
T - The component type
All Known Implementing Classes:
ColorPicker, DatePicker, DateRangePicker, IntegerItem, NumberItem, NumberRangeFilter, PasswordItem, TextItem

public interface Editable<T extends Component<?>>

Editable components

Components that can edited by the user. These components are input ones, such as TextItem or Combobox. The interface handles the addition of editing event handlers to the component.

Editing events that are connected to the interface:

Since:
4.0
Author:
JBStrap
See Also:
  • Method Details

    • addInputHandler

      default T addInputHandler(InputEventHandler handler)
      Adds an input event handler to the component. This handler will run when the user modifies the component's value.
      Parameters:
      handler - The InputEventHandler implementation
      Returns:
      The component
      See Also:
    • addCopyHandler

      default T addCopyHandler(CopyEventHandler handler)
      Adds a copy event handler to the component. This handler will run when the user copies the component's value.
      Parameters:
      handler - The CopyEventHandler implementation
      Returns:
      The component
      See Also:
    • addCutHandler

      default T addCutHandler(CutEventHandler handler)
      Adds a cut event handler to the component. This handler will run when the user cuts the component's value.
      Parameters:
      handler - A CutEventHandler implementation
      Returns:
      The component
      See Also:
    • addPasteHandler

      default T addPasteHandler(PasteEventHandler handler)
      Adds a paste event handler to the component. This handler will run when the user pastes in data to the component
      Parameters:
      handler - A PasteEventHandler implementation
      Returns:
      The component
      See Also:
    • addEnterPressedHandler

      default T addEnterPressedHandler(EnterPressedEventHandler handler)
      Adds an enter pressed event handler to the component. This handler will run when the user presses the Enter key, while being on the component
      Parameters:
      handler - The EnterPressedEventHandler implementation
      Returns:
      The component
      See Also: