インターフェース MultiItemSelectorSpec
- すべてのスーパーインターフェース:
BaseInputSpec<MultiItemSelectorSpec>
- すべての既知の実装クラス:
BaseMultiItemSelector,DefaultMultiInputSpec
複数入力仕様ビルダーのインターフェース。
- 作成者:
- Janne Valkealahti
方法の概要
修飾子と型メソッド説明and()親ビルダーをビルドして返します。max(int max) セレクタリスト内の項目の最大数を設定します。名前を設定します。next(FunctionSE<MultiItemSelector.MultiItemSelectorContext<StringSE, SelectorItem<StringSE>>, StringSE> next) 次のコンポーネントの ID を返す関数を定義します。postHandler(ConsumerSE<MultiItemSelector.MultiItemSelectorContext<StringSE, SelectorItem<StringSE>>> handler) 実行後のコンテキストハンドラーを追加します。preHandler(ConsumerSE<MultiItemSelector.MultiItemSelectorContext<StringSE, SelectorItem<StringSE>>> handler) 実行前のコンテキストハンドラーを追加します。renderer(FunctionSE<MultiItemSelector.MultiItemSelectorContext<StringSE, SelectorItem<StringSE>>, ListSE<org.jline.utils.AttributedString>> renderer) レンダラー関数を設定します。resultMode(ResultMode resultMode) 結果モードを設定します。resultValues(ListSE<StringSE> resultValues) 結果値を設定します。selectItems(ListSE<SelectItem> selectItems) 選択項目のリストを追加します。sort(ComparatorSE<SelectorItem<StringSE>> comparator) 項目をソートするためのComparatorSE を設定します。storeResult(boolean store) ビルダーに与えられたキーを使用して、MultiItemSelector.MultiItemSelectorContextからの結果をComponentContextに自動的に格納します。デフォルトのレンダラーテンプレートの場所を設定します。インターフェース org.springframework.shell.jline.tui.component.flow.BaseInputSpec から継承されたメソッド
getThis, order
メソッドの詳細
name
名前を設定します。- パラメーター:
name- 名前- 戻り値:
- ビルド業者
resultValues
結果値を設定します。- パラメーター:
resultValues- 結果値- 戻り値:
- ビルド業者
resultMode
結果モードを設定します。- パラメーター:
resultMode- 結果モード- 戻り値:
- ビルド業者
selectItems
選択項目のリストを追加します。- パラメーター:
selectItems- 選択項目- 戻り値:
- ビルド業者
sort
項目をソートするためのComparatorSE を設定します。- パラメーター:
comparator- アイテム比較- 戻り値:
- ビルド業者
renderer
MultiItemSelectorSpec renderer(FunctionSE<MultiItemSelector.MultiItemSelectorContext<StringSE, SelectorItem<StringSE>>, ListSE<org.jline.utils.AttributedString>> renderer) レンダラー関数を設定します。- パラメーター:
renderer- レンダラー- 戻り値:
- ビルド業者
template
デフォルトのレンダラーテンプレートの場所を設定します。- パラメーター:
location- テンプレートの場所- 戻り値:
- ビルド業者
max
セレクタリスト内の項目の最大数を設定します。- パラメーター:
max- アイテムの最大数- 戻り値:
- ビルド業者
preHandler
MultiItemSelectorSpec preHandler(ConsumerSE<MultiItemSelector.MultiItemSelectorContext<StringSE, SelectorItem<StringSE>>> handler) 実行前のコンテキストハンドラーを追加します。- パラメーター:
handler- コンテキストハンドラー- 戻り値:
- ビルド業者
postHandler
MultiItemSelectorSpec postHandler(ConsumerSE<MultiItemSelector.MultiItemSelectorContext<StringSE, SelectorItem<StringSE>>> handler) 実行後のコンテキストハンドラーを追加します。- パラメーター:
handler- コンテキストハンドラー- 戻り値:
- ビルド業者
storeResult
ビルダーに与えられたキーを使用して、MultiItemSelector.MultiItemSelectorContextからの結果をComponentContextに自動的に格納します。デフォルトはtrueです。- パラメーター:
store- 結果を格納する場合のフラグ- 戻り値:
- ビルド業者
next
MultiItemSelectorSpec next(FunctionSE<MultiItemSelector.MultiItemSelectorContext<StringSE, SelectorItem<StringSE>>, StringSE> next) 次のコンポーネントの ID を返す関数を定義します。nullまたは存在しない ID を返すことは、フローを停止する必要があることを示します。- パラメーター:
next- 次のコンポーネント関数- 戻り値:
- ビルド業者
and
ComponentFlow.Builder and()親ビルダーをビルドして返します。- 戻り値:
- 親ビルダー