クラス StatusBarView
java.lang.ObjectSE
org.springframework.shell.jline.tui.component.view.control.AbstractControl
org.springframework.shell.jline.tui.component.view.control.AbstractView
org.springframework.shell.jline.tui.component.view.control.BoxView
org.springframework.shell.jline.tui.component.view.control.StatusBarView
StatusBarView は items を水平に表示し、通常は完全なターミナル UI を構築するレイアウトで使用されます。item、primary はアイテムが左に描画されるか右に描画されるかを示し、priority はバーのスペースがなくなるまでアイテムが描画される順序を示します。デフォルトの primary は true で、priority は 0 です。- 作成者:
- Janne Valkealahti, Piotr Olaszewski
ネストされたクラスの概要
ネストされたクラス修飾子と型クラス説明static final recordstatic final recordViewEventは、選択された項目を開くようにリクエストされたことを示します。static classStatusBarView.StatusItemは、StatusBarView内の項目を表します。コンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明protected voiddrawInternal(Screen screen) 場合によっては、ボックス上部の境界でこのビューとタイトルの周囲にボックスを描画します。protected StringSEgetItems()ステータスアイテムを取得します。@Nullable StringSE項目セパレーターを取得します。登録されたコンシューマーをイベントループにディスパッチすることで、マウスイベントを処理します。voidsetItems(ListSE<StatusBarView.StatusItem> items) 項目を設定します。voidsetItemSeparator(@Nullable StringSE itemSeparator) 項目の区切りを設定します。クラス org.springframework.shell.jline.tui.component.view.control.BoxView から継承されたメソッド
drawBackground, getInnerRect, isShowBorder, setBackgroundColor, setBorderPadding, setFocusedTitleColor, setFocusedTitleStyle, setRect, setShowBorder, setTitle, setTitleAlign, setTitleColor, setTitleStyleクラス org.springframework.shell.jline.tui.component.view.control.AbstractView から継承されたメソッド
destroy, dispatch, dispatchKeyRunCommand, dispatchMouseRunCommand, dispatchRunnable, draw, 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, setEventLoop, setLayer, setViewService, shortcutクラス org.springframework.shell.jline.tui.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.jline.tui.component.view.control.Control から継承されたメソッド
getRect, setThemeName, setThemeResolver
コンストラクターの詳細
StatusBarView
public StatusBarView()StatusBarView
StatusBarView
方法の詳細
getBackgroundStyle
- オーバーライド:
- クラス
BoxViewのgetBackgroundStyle
getItemSeparator
項目セパレーターを取得します。- 戻り値:
- セパレーター
setItemSeparator
アイテムセパレーターを設定します。セパレーターはnullまたは空にすることができ、空の場合は実質的に無効になります。- パラメーター:
itemSeparator- 項目区切り
drawInternal
クラスからコピーされた説明:BoxView場合によっては、ボックス上部の境界でこのビューとタイトルの周囲にボックスを描画します。定義されている場合は、draw functionも呼び出します。- オーバーライド:
- クラス
BoxViewのdrawInternal - パラメーター:
screen- スクリーン
getMouseHandler
クラスからコピーされた説明:AbstractView登録されたコンシューマーをイベントループにディスパッチすることで、マウスイベントを処理します。オーバーライドしてデフォルトの動作を変更します。- 次で指定:
- インターフェース
View内のgetMouseHandler - オーバーライド:
- クラス
AbstractViewのgetMouseHandler - 戻り値:
- ビューマウスハンドラー
- 関連事項:
setItems
項目を設定します。- パラメーター:
items- ステータスアイテム
getItems
ステータスアイテムを取得します。- 戻り値:
- ステータスアイテム