Package app.ui.widgets
Interface ISelectable
- All Known Implementing Classes:
WidgetButton,WidgetPasswordBox,WidgetTextBox,WidgetToggle
public interface ISelectable
Interface for selectable widgets.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddrawSelection(char[][] buffer, com.googlecode.lanterna.TextColor[][] printColor, com.googlecode.lanterna.TextColor[][] backColor) Draws the selection on the buffer.voidselect()Selects the widget.voidunselect()Unselects the widget.
-
Method Details
-
drawSelection
void drawSelection(char[][] buffer, com.googlecode.lanterna.TextColor[][] printColor, com.googlecode.lanterna.TextColor[][] backColor) Draws the selection on the buffer.- Parameters:
buffer- The buffer to draw on.printColor- The color of the text.backColor- The color of the background.
-
select
void select()Selects the widget. -
unselect
void unselect()Unselects the widget.
-