クラス ConfirmationInput
java.lang.ObjectSE
org.springframework.shell.jline.tui.component.support.AbstractComponent<C>
org.springframework.shell.jline.tui.component.support.AbstractTextComponent<BooleanSE,ConfirmationInput.ConfirmationInputContext>
org.springframework.shell.jline.tui.component.ConfirmationInput
- 実装されているすべてのインターフェース:
org.springframework.beans.factory.Aware,org.springframework.context.ResourceLoaderAware
public class ConfirmationInput
extends AbstractTextComponent<BooleanSE,ConfirmationInput.ConfirmationInputContext>
確認の質問のコンポーネント。
- 作成者:
- Janne Valkealahti, Piotr Olaszewski
ネストされたクラスの要約
ネストされたクラスクラス org.springframework.shell.jline.tui.component.support.AbstractTextComponent から継承されたネストクラス / インターフェース
AbstractTextComponent.BaseTextComponentContext<T,C extends AbstractTextComponent.TextComponentContext<T, C>>, AbstractTextComponent.TextComponentContext<T, C extends AbstractTextComponent.TextComponentContext<T, C>> フィールドのサマリー
クラス org.springframework.shell.jline.tui.component.support.AbstractComponent から継承されたフィールド
OPERATION_BACKSPACE, OPERATION_CHAR, OPERATION_DOWN, OPERATION_EXIT, OPERATION_SELECT, OPERATION_UNICODE, OPERATION_UPコンストラクターの概要
コンストラクターコンストラクター説明ConfirmationInput(org.jline.terminal.Terminal terminal) ConfirmationInput(org.jline.terminal.Terminal terminal, @Nullable StringSE name) ConfirmationInput(org.jline.terminal.Terminal terminal, @Nullable StringSE name, boolean defaultValue) ConfirmationInput(org.jline.terminal.Terminal terminal, @Nullable StringSE name, boolean defaultValue, @Nullable FunctionSE<ConfirmationInput.ConfirmationInputContext, ListSE<org.jline.utils.AttributedString>> renderer) 方法の概要
修飾子と型メソッド説明getThisContext(@Nullable ComponentContext<?> context) 共通のこのトリックを使用して、実際のコンポーネントコンテキストを取得します。protected booleanread(org.jline.keymap.BindingReader bindingReader, org.jline.keymap.KeyMap<StringSE> keyMap, ConfirmationInput.ConfirmationInputContext context) 入力を読み取ります。クラス org.springframework.shell.jline.tui.component.support.AbstractTextComponent から継承されたメソッド
bindKeyMap, getName, runInternalクラス org.springframework.shell.jline.tui.component.support.AbstractComponent から継承されたメソッド
addPostRunHandler, addPreRunHandler, getTemplateExecutor, getTerminal, hasTty, loop, render, renderTemplateResource, run, runPostRunHandlers, runPreRunHandlers, setPrintResults, setRenderer, setResourceLoader, setTemplateExecutor, setTemplateLocation
コンストラクターの詳細
ConfirmationInput
public ConfirmationInput(org.jline.terminal.Terminal terminal) ConfirmationInput
ConfirmationInput
public ConfirmationInput(org.jline.terminal.Terminal terminal, @Nullable StringSE name, boolean defaultValue) ConfirmationInput
public ConfirmationInput(org.jline.terminal.Terminal terminal, @Nullable StringSE name, boolean defaultValue, @Nullable FunctionSE<ConfirmationInput.ConfirmationInputContext, ListSE<org.jline.utils.AttributedString>> renderer)
メソッドの詳細
getThisContext
public ConfirmationInput.ConfirmationInputContext getThisContext(@Nullable ComponentContext<?> context) クラスからコピーされた説明:AbstractComponent共通のこのトリックを使用して、実際のコンポーネントコンテキストを取得します。- 次で指定:
- クラス
AbstractComponent<ConfirmationInput.ConfirmationInputContext>のgetThisContext - パラメーター:
context- コンテキスト- 戻り値:
- コンポーネントコンテキスト
read
protected boolean read(org.jline.keymap.BindingReader bindingReader, org.jline.keymap.KeyMap<StringSE> keyMap, ConfirmationInput.ConfirmationInputContext context) クラスからコピーされた説明:AbstractComponent入力を読み取ります。- 次で指定:
- クラス
AbstractComponent<ConfirmationInput.ConfirmationInputContext>のread - パラメーター:
bindingReader- バインディングリーダーkeyMap- キーマップcontext- コンテキスト- 戻り値:
- 読み取りが完了した場合は true、停止する場合は false