クラス DialogView
java.lang.ObjectSE
org.springframework.shell.component.view.control.AbstractControl
org.springframework.shell.component.view.control.AbstractView
org.springframework.shell.component.view.control.WindowView
org.springframework.shell.component.view.control.DialogView
DialogView は、一般的なコンテンツの境界線、ボタンの数、領域を備えた View です。ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明static final recordstatic final recordコンストラクターの概要
コンストラクターコンストラクター説明DialogView(View content, ListSE<ButtonView> buttons) DialogView(View content, ButtonView... buttons) メソッドのサマリー
修飾子と型メソッド説明protected voiddrawInternal(Screen screen) コンポーネント内部の描画方法。protected StringSE登録されたコンシューマーをイベントループにディスパッチすることで、マウスイベントを処理します。voidsetEventLoop(EventLoop eventLoop) EventLoopを設定します。voidsetLayer(int index) このViewが動作するレイヤーインデックスを設定します。voidsetRect(int x, int y, int width, int height) このControlが動作する範囲を設定します。クラス org.springframework.shell.component.view.control.WindowView から継承されたメソッド
getInnerRect, setBackgroundColorクラス org.springframework.shell.component.view.control.AbstractView から継承されたメソッド
destroy, dispatch, dispatchKeyRunCommand, dispatchMouseRunCommand, dispatchRunnable, draw, drawBackground, focus, getDrawFunction, getEventLoop, getHotKeyBindings, getHotKeyHandler, getKeyBindings, getKeyHandler, getLayer, getMouseBindings, getViewCommands, getViewService, hasFocus, init, initInternal, onDestroy, registerHotKeyBinding, registerHotKeyBinding, registerHotKeyBinding, registerKeyBinding, registerKeyBinding, registerKeyBinding, registerMouseBinding, registerMouseBinding, registerMouseBinding, registerViewCommand, runViewCommand, setDrawFunction, setViewService, shortcutクラス org.springframework.shell.component.view.control.AbstractControl から継承されたメソッド
getRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeSpinner, resolveThemeStyle, setThemeName, setThemeResolverクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.shell.component.view.control.Control から継承されたメソッド
getRect, setThemeName, setThemeResolver
コンストラクターの詳細
DialogView
public DialogView()DialogView
DialogView
メソッドの詳細
setEventLoop
クラスからコピーされた説明:AbstractViewEventLoopを設定します。- 次で指定:
- インターフェース
ViewのsetEventLoop - オーバーライド:
- クラス
AbstractViewのsetEventLoop - パラメーター:
eventLoop- イベントループ
getBackgroundStyle
- オーバーライド:
- クラス
WindowViewのgetBackgroundStyle
setLayer
public void setLayer(int index) インターフェースからコピーされた説明:ViewこのViewが動作するレイヤーインデックスを設定します。- 次で指定:
- インターフェース
ViewのsetLayer - オーバーライド:
- クラス
AbstractViewのsetLayer - パラメーター:
index- レイヤーインデックス
getMouseHandler
クラスからコピーされた説明:AbstractView登録されたコンシューマーをイベントループにディスパッチすることで、マウスイベントを処理します。オーバーライドしてデフォルトの動作を変更します。- 次で指定:
- インターフェース
ViewのgetMouseHandler - オーバーライド:
- クラス
AbstractViewのgetMouseHandler - 戻り値:
- ビューマウスハンドラー
- 関連事項:
setRect
public void setRect(int x, int y, int width, int height) インターフェースからコピーされた説明:ControlこのControlが動作する範囲を設定します。- 次で指定:
- インターフェース
ControlのsetRect - オーバーライド:
- クラス
AbstractControlのsetRect - パラメーター:
x- 境界ボックスの x 座標y- 有界ボックスの y 座標width- 境界ボックスの幅height- 境界ボックスの高さ
drawInternal
クラスからコピーされた説明:AbstractViewコンポーネント内部の描画方法。クラスを実装するには、Screenに何かを描画するためにこのメソッドを定義する必要があります。- オーバーライド:
- クラス
WindowViewのdrawInternal - パラメーター:
screen- スクリーン