Interface View
- All Superinterfaces:
- Control
- All Known Implementing Classes:
- AbstractView,- AppView,- BoxView,- ButtonView,- DialogView,- GridView,- InputView,- ListView,- MenuBarView,- MenuView,- ProgressView,- StatusBarView,- WindowView
Base interface for all views. Represents a visible element that can render
 itself and contains zero or more nested 
Views.- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled whenViewgets or loses a focus.Gets aViewhotkeyKeyHandler.Gets aViewkeyKeyHandler.Gets aViewmouseMouseHandler.Get supported commands.booleanhasFocus()Gets if thisViewhas a focus.voidinit()booleanrunViewCommand(String command) Run command.voidsetEventLoop(EventLoop eventLoop) Sets anEventLoop.voidsetLayer(int index) Sets a layer index thisViewoperates on.voidsetViewService(ViewService viewService) Sets aViewService.Methods inherited from interface org.springframework.shell.component.view.control.Controldraw, getRect, setRect, setThemeName, setThemeResolver
- 
Method Details- 
initvoid init()
- 
setLayervoid setLayer(int index) Sets a layer index thisViewoperates on.- Parameters:
- index- the layer index
 
- 
focusCalled whenViewgets or loses a focus.- Parameters:
- view- the view receiving focus
- focus- flag if focus is received
 
- 
hasFocusboolean hasFocus()Gets if thisViewhas a focus.- Returns:
- true if view has a focus
 
- 
getMouseHandler- Returns:
- a view mouse handler
- See Also:
 
- 
getKeyHandler- Returns:
- a view key handler
- See Also:
 
- 
getHotKeyHandler- Returns:
- a view hotkey handler
- See Also:
 
- 
setEventLoopSets anEventLoop.- Parameters:
- eventLoop- the event loop
 
- 
setViewServiceSets aViewService.- Parameters:
- viewService- the view service
 
- 
getViewCommandsGet supported commands.- Returns:
- supported commands
- See Also:
 
- 
runViewCommandRun command.- Parameters:
- command- the command to run
- Returns:
- true if command was succesfully dispatched
- See Also:
 
 
-