インターフェース Cell<T>

すべてのスーパーインターフェース:
Control
すべての既知のサブインターフェース:
ListCell<T>TextCell<T>
すべての既知の実装クラス:
AbstractCellAbstractListCellAbstractTextCellListCell.DefaultListCellTextCell.DefaultTextCell

public interface Cell<T> extends Control
すべてのセルの基本インターフェース。通常、CellView の構成要素であり、Screen にどのように描画されるかを認識する必要はありませんが、その「項目」、Control を介した境界、および background などのその他のプロパティを認識する必要があります。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    セルにバインドされた項目を取得します。
    void
    setBackgroundColor(int backgroundColor)
    背景色を設定します。
    void
    setForegroundColor(int foregroundColor)
    前景色を設定します。
    void
    setItem(T item)
    セルにバインドされる項目を設定します。
    void
    setStyle(int style)
    スタイルを設定します。

    インターフェース org.springframework.shell.component.view.control.Control から継承されたメソッド

    draw, getRect, setRect, setThemeName, setThemeResolver
  • メソッドの詳細

    • getItem

      T getItem()
      セルにバインドされた項目を取得します。
      戻り値:
      セルにバインドされた項目
    • setItem

      void setItem(T item)
      セルにバインドされる項目を設定します。
      パラメーター:
      item - セルにバインドする項目
    • setStyle

      void setStyle(int style)
      スタイルを設定します。
      パラメーター:
      style - スタイル
    • setForegroundColor

      void setForegroundColor(int foregroundColor)
      前景色を設定します。
      パラメーター:
      foregroundColor - 背景色
    • setBackgroundColor

      void setBackgroundColor(int backgroundColor)
      背景色を設定します。
      パラメーター:
      backgroundColor - 背景色