Class StatusBarView
java.lang.Object
org.springframework.shell.component.view.control.AbstractControl
org.springframework.shell.component.view.control.AbstractView
org.springframework.shell.component.view.control.BoxView
org.springframework.shell.component.view.control.StatusBarView
StatusBarView shows items horizontally and is
 typically used in layouts which builds complete terminal UI's.
 item primary denotes if item is drawn to left
 or right, priority on which order items are drawn until bar runs
 out of space. Default primary is true and priority
 is 0.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordViewEventindicating that selected item has been requested to open.static classStatusBarView.StatusItemrepresents an item in aStatusBarView.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddrawInternal(Screen screen) Possibly draws a box around this view and title in a box top boundary.protected StringgetItems()Gets a status items.Gets the item separator.Handles mouse events by dispatching registered consumers into an event loop.voidsetItems(List<StatusBarView.StatusItem> items) Sets items.voidsetItemSeparator(String itemSeparator) Sets the item separator.Methods inherited from class org.springframework.shell.component.view.control.BoxViewdrawBackground, getInnerRect, isShowBorder, setBackgroundColor, setBorderPadding, setFocusedTitleColor, setFocusedTitleStyle, setRect, setShowBorder, setTitle, setTitleAlign, setTitleColor, setTitleStyleMethods inherited from class org.springframework.shell.component.view.control.AbstractViewdestroy, 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, shortcutMethods inherited from class org.springframework.shell.component.view.control.AbstractControlgetRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeSpinner, resolveThemeStyle, setThemeName, setThemeResolverMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.shell.component.view.control.ControlgetRect, setThemeName, setThemeResolver
- 
Constructor Details- 
StatusBarViewpublic StatusBarView()
- 
StatusBarView
- 
StatusBarView
 
- 
- 
Method Details- 
getBackgroundStyle- Overrides:
- getBackgroundStylein class- BoxView
 
- 
getItemSeparatorGets the item separator.- Returns:
- a separator
 
- 
setItemSeparatorSets the item separator. Separator can benullor empty which essentially disables it.- Parameters:
- itemSeparator- the item separator
 
- 
drawInternalDescription copied from class:BoxViewPossibly draws a box around this view and title in a box top boundary. Also calls adraw functionif defined.- Overrides:
- drawInternalin class- BoxView
- Parameters:
- screen- the screen
 
- 
getMouseHandlerDescription copied from class:AbstractViewHandles mouse events by dispatching registered consumers into an event loop. Override to change default behaviour.- Specified by:
- getMouseHandlerin interface- View
- Overrides:
- getMouseHandlerin class- AbstractView
- Returns:
- a view mouse handler
- See Also:
 
- 
setItemsSets items.- Parameters:
- items- status items
 
- 
getItemsGets a status items.- Returns:
- the status items
 
 
-