JavaScript is disabled on your browser.
All Superinterfaces:
Control
All Known Implementing Classes:
AbstractCell , ListCell
public interface Cell<T>
extends Control
Base interface for all cells. Typically a
Cell is a building block in
a
View not needing to be aware of how it is drawn into a
Screen
but needs to aware of its "item", bounds via
Control and other
properties like
background.
Method Summary
All Methods Instance Methods Abstract Methods
Get item bound to a cell.
boolean
Return if cell is selected.
void
void
void
Sets an item to bound into a cell.
void
void
Method Details
getItem
Get item bound to a cell.
Returns:
item bound to a cell
setItem
Sets an item to bound into a cell.
Parameters:
item - item to bound into a cell
setStyle
void setStyle (int style)
Sets a style.
Parameters:
style - the style
setForegroundColor
void setForegroundColor (int foregroundColor)
Sets a foreground color.
Parameters:
foregroundColor - the background color
setBackgroundColor
void setBackgroundColor (int backgroundColor)
Sets a background color.
Parameters:
backgroundColor - the background color
isSelected
boolean isSelected ()
Return if cell is selected.
Returns:
true if cell is selected
updateSelected
void updateSelected (boolean selected)
Update selected status.
Parameters:
selected - true if cell is selected