Class AbstractCell<T>
java.lang.Object
org.springframework.shell.component.view.control.AbstractControl
org.springframework.shell.component.view.control.cell.AbstractCell<T>
- Direct Known Subclasses:
AbstractListCell
,AbstractTextCell
Base implementation of a
Cell
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
drawBackground
(Screen screen) protected void
drawContent
(Screen screen) int
int
getItem()
Get item bound to a cell.int
getStyle()
void
setBackgroundColor
(int backgroundColor) Sets a background color.void
setForegroundColor
(int foregroundColor) Sets a foreground color.void
Sets an item to bound into a cell.void
setStyle
(int style) Sets a style.Methods inherited from class org.springframework.shell.component.view.control.AbstractControl
getRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeSpinner, 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.Control
getRect, setRect, setThemeName, setThemeResolver
-
Constructor Details
-
AbstractCell
-
-
Method Details
-
getItem
Description copied from interface:Cell
Get item bound to a cell. -
setItem
Description copied from interface:Cell
Sets an item to bound into a cell. -
setStyle
public void setStyle(int style) Description copied from interface:Cell
Sets a style. -
setForegroundColor
public void setForegroundColor(int foregroundColor) Description copied from interface:Cell
Sets a foreground color.- Specified by:
setForegroundColor
in interfaceCell<T>
- Parameters:
foregroundColor
- the background color
-
setBackgroundColor
public void setBackgroundColor(int backgroundColor) Description copied from interface:Cell
Sets a background color.- Specified by:
setBackgroundColor
in interfaceCell<T>
- Parameters:
backgroundColor
- the background color
-
getStyle
public int getStyle() -
getForegroundColor
public int getForegroundColor() -
getBackgroundColor
public int getBackgroundColor() -
draw
Description copied from interface:Control
-
drawBackground
-
drawContent
-