クラス ButtonView

実装済みのインターフェース一覧:
ControlView

public class ButtonView extends BoxView
ButtonView は、枠線とテキストがボタンとして機能する View です。
  • コンストラクターの詳細

    • ButtonView

      public ButtonView()
    • ButtonView

      public ButtonView(StringSE text)
    • ButtonView

      public ButtonView(StringSE text, RunnableSE action)
  • 方法の詳細

    • initInternal

      protected void initInternal()
      クラスからコピーされた説明: AbstractView
      AbstractView.init() から呼び出される内部 init メソッド。何か役に立つことを行うためにオーバーライドします。通常、キーとマウスのバインドはこのメソッドから登録されます。
      オーバーライド:
      クラス AbstractViewinitInternal 
    • getKeyHandler

      public KeyHandler getKeyHandler()
      クラスからコピーされた説明: AbstractView
      登録された実行可能なコマンドをイベントループにディスパッチすることでキーを処理します。オーバーライドしてデフォルトの動作を変更します。
      次で指定:
      インターフェース View 内の getKeyHandler 
      オーバーライド:
      クラス AbstractViewgetKeyHandler 
      戻り値:
      ビューキーハンドラー
      関連事項:
    • getMouseHandler

      public MouseHandler getMouseHandler()
      クラスからコピーされた説明: AbstractView
      登録されたコンシューマーをイベントループにディスパッチすることで、マウスイベントを処理します。オーバーライドしてデフォルトの動作を変更します。
      次で指定:
      インターフェース View 内の getMouseHandler 
      オーバーライド:
      クラス AbstractViewgetMouseHandler 
      戻り値:
      ビューマウスハンドラー
      関連事項:
    • getBackgroundStyle

      protected StringSE getBackgroundStyle()
      オーバーライド:
      クラス BoxViewgetBackgroundStyle 
    • drawInternal

      protected void drawInternal(Screen screen)
      クラスからコピーされた説明: BoxView
      場合によっては、ボックス上部の境界でこのビューとタイトルの周囲にボックスを描画します。定義されている場合は、draw function も呼び出します。
      オーバーライド:
      クラス BoxViewdrawInternal 
      パラメーター:
      screen - スクリーン
    • getPreferredDimension

      public Dimension getPreferredDimension()
    • setText

      public void setText(StringSE text)
    • setAction

      public void setAction(RunnableSE action)