Class AbstractListCell<T>
java.lang.Object
org.springframework.shell.jline.tui.component.view.control.AbstractControl
org.springframework.shell.jline.tui.component.view.control.cell.AbstractCell<T>
org.springframework.shell.jline.tui.component.view.control.cell.AbstractListCell<T>
- Direct Known Subclasses:
ListCell.DefaultListCell
Base implementation of a
ListCell.- Author:
- Janne Valkealahti, Piotr Olaszewski
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.jline.tui.component.view.control.cell.ListCell
ListCell.DefaultListCell<T> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractListCell(T item) AbstractListCell(T item, ListView.ItemStyle itemStyle) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawBackground(Screen screen) protected voiddrawContent(Screen screen) protected Stringprotected @Nullable String@Nullable ListView.ItemStyleprotected StringgetText()booleanvoidsetItemStyle(ListView.ItemStyle itemStyle) SetListView.ItemStyle.voidsetSelected(boolean selected) Set selection state.Methods inherited from class org.springframework.shell.jline.tui.component.view.control.cell.AbstractCell
draw, getBackgroundColor, getForegroundColor, getItem, getStyle, setBackgroundColor, setForegroundColor, setItem, setStyleMethods inherited from class org.springframework.shell.jline.tui.component.view.control.AbstractControl
getRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeSpinner, resolveThemeStyle, setRect, setThemeName, setThemeResolverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.shell.jline.tui.component.view.control.cell.Cell
getItem, setBackgroundColor, setForegroundColor, setItem, setStyleMethods inherited from interface org.springframework.shell.jline.tui.component.view.control.Control
draw, getRect, setRect, setThemeName, setThemeResolver
-
Constructor Details
-
AbstractListCell
-
AbstractListCell
-
-
Method Details
-
getText
-
getIndicator
-
getBackgroundStyle
-
drawBackground
- Overrides:
drawBackgroundin classAbstractCell<T>
-
drawContent
- Overrides:
drawContentin classAbstractCell<T>
-
setItemStyle
Description copied from interface:ListCellSetListView.ItemStyle.- Specified by:
setItemStylein interfaceListCell<T>- Parameters:
itemStyle- the item style
-
getItemStyle
-
setSelected
public void setSelected(boolean selected) Description copied from interface:ListCellSet selection state.- Specified by:
setSelectedin interfaceListCell<T>- Parameters:
selected- the selection state
-
isSelected
public boolean isSelected()
-