クラス PathInput
java.lang.ObjectSE
org.springframework.shell.jline.tui.component.support.AbstractComponent<C>
org.springframework.shell.jline.tui.component.support.AbstractTextComponent<PathSE,PathInput.PathInputContext>
org.springframework.shell.jline.tui.component.PathInput
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware,org.springframework.context.ResourceLoaderAware
単純なパス入力のコンポーネント。
- 作成者:
- 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コンストラクター概要
コンストラクターコンストラクター説明PathInput(org.jline.terminal.Terminal terminal) PathInput(org.jline.terminal.Terminal terminal, @Nullable StringSE name, @Nullable FunctionSE<PathInput.PathInputContext, ListSE<org.jline.utils.AttributedString>> renderer) 方法の概要
修飾子と型メソッド説明getThisContext(@Nullable ComponentContext<?> context) 共通のこのトリックを使用して、実際のコンポーネントコンテキストを取得します。protected booleanread(org.jline.keymap.BindingReader bindingReader, org.jline.keymap.KeyMap<StringSE> keyMap, PathInput.PathInputContext context) 入力を読み取ります。protected PathSEresolvePath(StringSE path) 与えられた生のpathからPathSE を解決します。voidsetPathProvider(FunctionSE<StringSE, PathSE> pathProvider) パスプロバイダーを設定します。クラス 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
コンストラクターの詳細
PathInput
public PathInput(org.jline.terminal.Terminal terminal) PathInput
PathInput
public PathInput(org.jline.terminal.Terminal terminal, @Nullable StringSE name, @Nullable FunctionSE<PathInput.PathInputContext, ListSE<org.jline.utils.AttributedString>> renderer)
方法の詳細
getThisContext
クラスからコピーされた説明:AbstractComponent共通のこのトリックを使用して、実際のコンポーネントコンテキストを取得します。- 次で指定:
- クラス
AbstractComponent<PathInput.PathInputContext>のgetThisContext - パラメーター:
context- コンテキスト- 戻り値:
- コンポーネントコンテキスト
read
protected boolean read(org.jline.keymap.BindingReader bindingReader, org.jline.keymap.KeyMap<StringSE> keyMap, PathInput.PathInputContext context) クラスからコピーされた説明:AbstractComponent入力を読み取ります。- 次で指定:
- クラス
AbstractComponent<PathInput.PathInputContext>のread - パラメーター:
bindingReader- バインディングリーダーkeyMap- キーマップcontext- コンテキスト- 戻り値:
- 読み取りが完了した場合は true、停止する場合は false
setPathProvider
パスプロバイダーを設定します。- パラメーター:
pathProvider- パスプロバイダー
resolvePath
与えられた生のpathからPathSE を解決します。- パラメーター:
path- 生のパス- 戻り値:
- 解決されたパス