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 TypeMethodDescriptionvoidCalled whenViewgets or loses a focus.Gets aViewmouseKeyHandler.Gets aViewmouseMouseHandler.booleanhasFocus()Gets if thisViewhas a focus.voidsetLayer(int index) Sets a layer index thisViewoperates 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 thisViewoperates on.- Parameters:
index- the layer index
-
focus
Called whenViewgets or loses a focus.- Parameters:
view- the view receiving focusfocus- flag if focus is received
-
hasFocus
boolean 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 mouse handler
- See Also:
-