インターフェース Cell<T>
- すべてのスーパーインターフェース:
Control
- すべての既知の実装クラス:
AbstractCell、AbstractListCell、AbstractTextCell、ListCell.DefaultListCell、TextCell.DefaultTextCell
メソッドのサマリー
修飾子と型メソッド説明getItem()セルにバインドされた項目を取得します。voidsetBackgroundColor(int backgroundColor) 背景色を設定します。voidsetForegroundColor(int foregroundColor) 前景色を設定します。voidセルにバインドされる項目を設定します。voidsetStyle(int style) スタイルを設定します。インターフェース org.springframework.shell.component.view.control.Control から継承されたメソッド
draw, getRect, setRect, setThemeName, setThemeResolver
メソッドの詳細
getItem
T getItem()セルにバインドされた項目を取得します。- 戻り値:
- セルにバインドされた項目
setItem
セルにバインドされる項目を設定します。- パラメーター:
item- セルにバインドする項目
setStyle
void setStyle(int style) スタイルを設定します。- パラメーター:
style- スタイル
setForegroundColor
void setForegroundColor(int foregroundColor) 前景色を設定します。- パラメーター:
foregroundColor- 背景色
setBackgroundColor
void setBackgroundColor(int backgroundColor) 背景色を設定します。- パラメーター:
backgroundColor- 背景色