Class InputView
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.InputView
InputView is used as a text input.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddrawInternal(Screen screen) Possibly draws a box around this view and title in a box top boundary.Get a current known input text.Handles keys by dispatching registered command runnable into an event loop.protected voidInternal init method called fromAbstractView.init().Methods inherited from class org.springframework.shell.component.view.control.BoxViewdrawBackground, getBackgroundStyle, 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, getLayer, getMouseBindings, getMouseHandler, getViewCommands, getViewService, hasFocus, init, 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- 
InputViewpublic InputView()
 
- 
- 
Method Details- 
initInternalprotected void initInternal()Description copied from class:AbstractViewInternal init method called fromAbstractView.init(). Override to do something usefull. Typically key and mousebindings are registered from this method.- Overrides:
- initInternalin class- AbstractView
 
- 
getKeyHandlerDescription copied from class:AbstractViewHandles keys by dispatching registered command runnable into an event loop. Override to change default behaviour.- Specified by:
- getKeyHandlerin interface- View
- Overrides:
- getKeyHandlerin class- AbstractView
- Returns:
- a view key handler
- See Also:
 
- 
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
 
- 
getInputTextGet a current known input text.- Returns:
- current input text
 
 
-