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