Interface View
- All Superinterfaces:
Control
- All Known Implementing Classes:
AbstractView
,AppView
,BoxView
,GridView
,InputView
,ListView
,MenuBarView
,MenuView
,StatusBarView
Base interface for all views. Represents a visible element that can render
itself and contains zero or more nested
Views
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called whenView
gets or loses a focus.Gets aView
mouseKeyHandler
.Gets aView
mouseMouseHandler
.boolean
hasFocus()
Gets if thisView
has a focus.void
setLayer
(int index) Sets a layer index thisView
operates on.Methods inherited from interface org.springframework.shell.component.view.control.Control
draw, getRect, setRect, setThemeName, setThemeResolver
-
Method Details
-
setLayer
void setLayer(int index) Sets a layer index thisView
operates on.- Parameters:
index
- the layer index
-
focus
Called whenView
gets or loses a focus.- Parameters:
view
- the view receiving focusfocus
- flag if focus is received
-
hasFocus
boolean hasFocus()Gets if thisView
has a focus.- Returns:
- true if view has a focus
-
getMouseHandler
- Returns:
- a view mouse handler
- See Also:
-
getKeyHandler
- Returns:
- a view mouse handler
- See Also:
-