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