クラス AbsoluteWidthSizeConstraints

java.lang.ObjectSE
org.springframework.shell.table.AbsoluteWidthSizeConstraints
実装されているすべてのインターフェース:
SizeConstraints

public class AbsoluteWidthSizeConstraints extends ObjectSE implements SizeConstraints
文字数で表される固定幅を強制するセルサイズ変更戦略。
  • コンストラクターの詳細

    • AbsoluteWidthSizeConstraints

      public AbsoluteWidthSizeConstraints(int width)
  • メソッドの詳細

    • width

      public SizeConstraints.Extent width(StringSE[] raw, int previous, int tableWidth)
      次で指定:
      インターフェース SizeConstraintswidth 
      パラメーター:
      raw - セルの内容の生の文字列表現 (ラップなど、後で再フォーマットすることができます)
      previous - テーブルの利用可能な幅全体
      tableWidth - テーブルの列数
      戻り値:
      生のコンテンツが与えられたセルの最小幅と最大幅。