Package com.jbstrap.ui
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:
Input
eventCopy
eventCut
eventPaste
eventEnterPressed
event
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
addCopyHandler
(CopyEventHandler handler) Adds a copy event handler to the component.default T
addCutHandler
(CutEventHandler handler) Adds a cut event handler to the component.default T
Adds an enter pressed event handler to the component.default T
addInputHandler
(InputEventHandler handler) Adds an input event handler to the component.default T
addPasteHandler
(PasteEventHandler handler) Adds a paste event handler to the component.
-
Method Details
-
addInputHandler
Adds an input event handler to the component. This handler will run when the user modifies the component's value.- Parameters:
handler
- TheInputEventHandler
implementation- Returns:
- The component
- See Also:
-
addCopyHandler
Adds a copy event handler to the component. This handler will run when the user copies the component's value.- Parameters:
handler
- TheCopyEventHandler
implementation- Returns:
- The component
- See Also:
-
addCutHandler
Adds a cut event handler to the component. This handler will run when the user cuts the component's value.- Parameters:
handler
- ACutEventHandler
implementation- Returns:
- The component
- See Also:
-
addPasteHandler
Adds a paste event handler to the component. This handler will run when the user pastes in data to the component- Parameters:
handler
- APasteEventHandler
implementation- Returns:
- The component
- See Also:
-
addEnterPressedHandler
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
- TheEnterPressedEventHandler
implementation- Returns:
- The component
- See Also:
-