Uses of Interface
org.springframework.shell.component.view.control.View
Packages that use View
Package
Description
-
Uses of View in org.springframework.shell.component
Methods in org.springframework.shell.component with parameters of type ViewModifier and TypeMethodDescriptionBuild a newViewComponent
instance and configure it using this builder.Constructors in org.springframework.shell.component with parameters of type ViewModifierConstructorDescriptionViewComponent
(TerminalUI terminalUI, org.jline.terminal.Terminal terminal, ViewComponentExecutor viewComponentExecutor, View view) Construct view component with a givenTerminal
andView
. -
Uses of View in org.springframework.shell.component.message
Methods in org.springframework.shell.component.message that return ViewModifier and TypeMethodDescriptionShellMessageHeaderAccessor.getView()
static View
StaticShellMessageHeaderAccessor.getView
(org.springframework.messaging.Message<?> message) Methods in org.springframework.shell.component.message with parameters of type ViewModifier and TypeMethodDescriptionstatic org.springframework.messaging.Message<?>
static org.springframework.messaging.Message<String>
ShellMessageBuilder.ofViewFocus
(String action, View view) -
Uses of View in org.springframework.shell.component.view
Methods in org.springframework.shell.component.view that return ViewMethods in org.springframework.shell.component.view with parameters of type ViewModifier and TypeMethodDescriptionvoid
void
void
void
Sets a root view.Method parameters in org.springframework.shell.component.view with type arguments of type ViewModifier and TypeMethodDescriptionvoid
TerminalUI.setFullScreenViewRect
(BiFunction<org.jline.terminal.Terminal, View, Rectangle> fullScreenViewRect) Sets a view rect function for full screen mode.void
TerminalUI.setNonfullScreenViewRect
(BiFunction<org.jline.terminal.Terminal, View, Rectangle> nonfullScreenViewRect) Sets a view rect function for full screen mode. -
Uses of View in org.springframework.shell.component.view.control
Classes in org.springframework.shell.component.view.control that implement ViewModifier and TypeClassDescriptionclass
class
AppView
provides an opinionated terminal UI application view controlling main viewing area, menubar, statusbar and modal window system.class
BoxView
is aView
with an empty background and optional border and title.class
ButtonView
is aView
with border and text acting as a button.class
DialogView
is aView
with border, number of buttons and area for a generic content.class
GridView
is a layout container with no initialviews
.class
InputView
is used as a text input.class
ListView<T>
ListView
is aView
showing items in a vertical list.class
MenuBarView
showsitems
horizontally and is typically used in layouts which builds complete terminal UI's.class
class
ProgressView
is used to show a progress indicator.class
StatusBarView
showsitems
horizontally and is typically used in layouts which builds complete terminal UI's.class
WindowView
is aView
defining area within view itself.Methods in org.springframework.shell.component.view.control that return ViewModifier and TypeMethodDescriptionViewService.getModal()
Gets a current modal view.AppView.AppViewEvent.view()
Returns the value of theview
record component.ButtonView.ButtonViewSelectEvent.view()
Returns the value of theview
record component.DialogView.DialogViewCloseEvent.view()
Returns the value of theview
record component.InputView.InputViewTextChangeEvent.view()
Returns the value of theview
record component.ListView.ListViewOpenSelectedItemEvent.view()
Returns the value of theview
record component.ListView.ListViewSelectedItemChangedEvent.view()
Returns the value of theview
record component.MenuView.MenuViewOpenSelectedItemEvent.view()
Returns the value of theview
record component.MenuView.MenuViewSelectedItemChangedEvent.view()
Returns the value of theview
record component.ProgressView.ProgressViewEndEvent.view()
Returns the value of theview
record component.ProgressView.ProgressViewStartEvent.view()
Returns the value of theview
record component.ProgressView.ProgressViewStateChangeEvent.view()
Returns the value of theview
record component.StatusBarView.StatusBarViewOpenSelectedItemEvent.view()
Returns the value of theview
record component.ViewDoneEvent.GenericViewDoneEvent.view()
Returns the value of theview
record component.ViewEvent.view()
Methods in org.springframework.shell.component.view.control with parameters of type ViewModifier and TypeMethodDescriptionGridView.addItem
(View view, int row, int column, int rowSpan, int colSpan, int minGridHeight, int minGridWidth) Adds aView
and its position to the grid.void
void
Called whenView
gets or loses a focus.static AppView.AppViewEvent
AppView.AppViewEvent.of
(View view, AppView.AppViewEventArgs.Direction direction) static <T> ListView.ListViewOpenSelectedItemEvent<T>
static <T> ListView.ListViewSelectedItemChangedEvent<T>
MenuView.MenuViewOpenSelectedItemEvent.of
(View view, MenuView.MenuItem item) MenuView.MenuViewSelectedItemChangedEvent.of
(View view, MenuView.MenuItem item) ProgressView.ProgressViewEndEvent.of
(View view, ProgressView.ProgressState state) ProgressView.ProgressViewStartEvent.of
(View view, ProgressView.ProgressState state) ProgressView.ProgressViewStateChangeEvent.of
(View view, ProgressView.ProgressState state) StatusBarView.StatusBarViewOpenSelectedItemEvent.of
(View view, StatusBarView.StatusItem item) static ViewDoneEvent
Create a generic event with empty view args.void
Sets a view to be focused.void
Sets a new modal view.Constructors in org.springframework.shell.component.view.control with parameters of type ViewModifierConstructorDescriptionAppViewEvent
(View view, AppView.AppViewEventArgs args) Creates an instance of aAppViewEvent
record class.Creates an instance of aButtonViewSelectEvent
record class.DialogView
(View content, List<ButtonView> buttons) DialogView
(View content, ButtonView... buttons) Creates an instance of aDialogViewCloseEvent
record class.GenericViewDoneEvent
(View view, ViewEventArgs args) Creates an instance of aGenericViewDoneEvent
record class.Creates an instance of aInputViewTextChangeEvent
record class.ListViewOpenSelectedItemEvent
(View view, ListView.ListViewItemEventArgs<T> args) Creates an instance of aListViewOpenSelectedItemEvent
record class.Creates an instance of aListViewSelectedItemChangedEvent
record class.Creates an instance of aMenuViewOpenSelectedItemEvent
record class.Creates an instance of aMenuViewSelectedItemChangedEvent
record class.Creates an instance of aProgressViewEndEvent
record class.Creates an instance of aProgressViewStartEvent
record class.Creates an instance of aProgressViewStateChangeEvent
record class.Creates an instance of aStatusBarViewOpenSelectedItemEvent
record class. -
Uses of View in org.springframework.shell.component.view.event
Methods in org.springframework.shell.component.view.event that return ViewModifier and TypeMethodDescriptionKeyHandler.KeyHandlerResult.capture()
Returns the value of thecapture
record component.MouseHandler.MouseHandlerResult.capture()
Returns the value of thecapture
record component.KeyHandler.KeyHandlerResult.focus()
Returns the value of thefocus
record component.MouseHandler.MouseHandlerResult.focus()
Returns the value of thefocus
record component.Methods in org.springframework.shell.component.view.event with parameters of type ViewModifier and TypeMethodDescriptionstatic KeyHandler.KeyHandlerResult
MouseHandler.resultOf
(MouseEvent event, boolean consumed, View focus, View capture) <T extends ViewEvent>
reactor.core.publisher.Flux<T>DefaultEventLoop.viewEvents
(Class<T> clazz, View filterBy) <T extends ViewEvent>
reactor.core.publisher.Flux<T>DefaultEventLoop.viewEvents
(org.springframework.core.ParameterizedTypeReference<T> typeRef, View filterBy) <T extends ViewEvent>
reactor.core.publisher.Flux<T>EventLoop.viewEvents
(Class<T> clazz, View filterBy) Specialisation ofEventLoop.events()
which returns type safeViewEvent
s.<T extends ViewEvent>
reactor.core.publisher.Flux<T>EventLoop.viewEvents
(org.springframework.core.ParameterizedTypeReference<T> typeRef, View filterBy) Specialisation ofEventLoop.events()
which returns type safeViewEvent
s.Constructors in org.springframework.shell.component.view.event with parameters of type ViewModifierConstructorDescriptionKeyHandlerResult
(KeyEvent event, boolean consumed, View focus, View capture) Creates an instance of aKeyHandlerResult
record class.MouseHandlerResult
(MouseEvent event, boolean consumed, View focus, View capture) Creates an instance of aMouseHandlerResult
record class.