Module com.googlecode.lanterna
Package com.googlecode.lanterna.gui2
Interface InteractableRenderer<T extends Component & Interactable>
-
- Type Parameters:
T
- Type of the component thisInteractableRenderer
is designed for
- All Superinterfaces:
ComponentRenderer<T>
- All Known Subinterfaces:
Button.ButtonRenderer
,TableRenderer<V>
,TextBox.TextBoxRenderer
- All Known Implementing Classes:
AbstractListBox.DefaultListBoxRenderer
,Button.BorderedButtonRenderer
,Button.DefaultButtonRenderer
,Button.FlatButtonRenderer
,CheckBox.CheckBoxRenderer
,CheckBox.DefaultCheckBoxRenderer
,ComboBox.ComboBoxRenderer
,ComboBox.DefaultComboBoxRenderer
,DefaultTableRenderer
,MenuItem.DefaultMenuItemRenderer
,MenuItem.MenuItemRenderer
,TextBox.DefaultTextBoxRenderer
public interface InteractableRenderer<T extends Component & Interactable> extends ComponentRenderer<T>
Extended interface for component renderers used with interactable components. Because only the renderer knows what the component looks like, the component itself cannot know where to place the text cursor, so this method is instead delegated to this interface that extends the regular component renderer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TerminalPosition
getCursorLocation(T component)
-
Methods inherited from interface com.googlecode.lanterna.gui2.ComponentRenderer
drawComponent, getPreferredSize
-
-
-
-
Method Detail
-
getCursorLocation
TerminalPosition getCursorLocation(T component)
-
-