クラス StringInput

実装済みのインターフェース一覧:
org.springframework.beans.factory.Awareorg.springframework.context.ResourceLoaderAware

単純な文字列入力のコンポーネント。
作成者:
Janne Valkealahti, Piotr Olaszewski
  • コンストラクターの詳細

  • 方法の詳細

    • setMaskCharacter

      public void setMaskCharacter(@Nullable CharacterSE maskCharacter)
      入力値と結果値のマスク文字を設定します。
      パラメーター:
      maskCharacter - マスクのキャラクター
    • setRequired

      public void setRequired(boolean required)
      結果が空でないことを確認するために必須フラグを設定します
      パラメーター:
      required - 入力が必要な場合
    • getThisContext

      public StringInput.StringInputContext getThisContext(@Nullable ComponentContext<?> context)
      クラスからコピーされた説明: AbstractComponent
      共通のこのトリックを使用して、実際のコンポーネントコンテキストを取得します。
      次で指定:
      クラス AbstractComponent<StringInput.StringInputContext>getThisContext 
      パラメーター:
      context - コンテキスト
      戻り値:
      コンポーネントコンテキスト
    • read

      protected boolean read(org.jline.keymap.BindingReader bindingReader, org.jline.keymap.KeyMap<StringSE> keyMap, StringInput.StringInputContext context)
      クラスからコピーされた説明: AbstractComponent
      入力を読み取ります。
      次で指定:
      クラス AbstractComponent<StringInput.StringInputContext>read 
      パラメーター:
      bindingReader - バインディングリーダー
      keyMap - キーマップ
      context - コンテキスト
      戻り値:
      読み取りが完了した場合は true、停止する場合は false