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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected voiddrawBackground(Screen screen) protected voiddrawContent(Screen screen) intintgetItem()Get item bound to a cell.intgetStyle()voidsetBackgroundColor(int backgroundColor) Sets a background color.voidsetForegroundColor(int foregroundColor) Sets a foreground color.voidSets an item to bound into a cell.voidsetStyle(int style) Sets a style.Methods inherited from class org.springframework.shell.component.view.control.AbstractControlgetRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeSpinner, resolveThemeStyle, setRect, setThemeName, setThemeResolverMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.shell.component.view.control.ControlgetRect, setRect, setThemeName, setThemeResolver
- 
Constructor Details- 
AbstractCell
 
- 
- 
Method Details- 
getItemDescription copied from interface:CellGet item bound to a cell.
- 
setItemDescription copied from interface:CellSets an item to bound into a cell.
- 
setStylepublic void setStyle(int style) Description copied from interface:CellSets a style.
- 
setForegroundColorpublic void setForegroundColor(int foregroundColor) Description copied from interface:CellSets a foreground color.- Specified by:
- setForegroundColorin interface- Cell<T>
- Parameters:
- foregroundColor- the background color
 
- 
setBackgroundColorpublic void setBackgroundColor(int backgroundColor) Description copied from interface:CellSets a background color.- Specified by:
- setBackgroundColorin interface- Cell<T>
- Parameters:
- backgroundColor- the background color
 
- 
getStylepublic int getStyle()
- 
getForegroundColorpublic int getForegroundColor()
- 
getBackgroundColorpublic int getBackgroundColor()
- 
drawDescription copied from interface:Control
- 
drawBackground
- 
drawContent
 
-