Class WindowView
java.lang.Object
org.springframework.shell.component.view.control.AbstractControl
org.springframework.shell.component.view.control.AbstractView
org.springframework.shell.component.view.control.WindowView
- Direct Known Subclasses:
DialogView
WindowView
is a View
defining area within view itself.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawInternal
(Screen screen) Component internal drawing method.protected String
protected Rectangle
Gets an inner rectangle of this view.void
setBackgroundColor
(int backgroundColor) Sets a background color.Methods inherited from class org.springframework.shell.component.view.control.AbstractView
destroy, dispatch, dispatchKeyRunCommand, dispatchMouseRunCommand, dispatchRunnable, draw, drawBackground, focus, getDrawFunction, getEventLoop, getHotKeyBindings, getHotKeyHandler, getKeyBindings, getKeyHandler, getLayer, getMouseBindings, getMouseHandler, getViewCommands, getViewService, hasFocus, init, initInternal, onDestroy, registerHotKeyBinding, registerHotKeyBinding, registerHotKeyBinding, registerKeyBinding, registerKeyBinding, registerKeyBinding, registerMouseBinding, registerMouseBinding, registerMouseBinding, registerViewCommand, runViewCommand, setDrawFunction, setEventLoop, setLayer, setViewService, shortcut
Methods inherited from class org.springframework.shell.component.view.control.AbstractControl
getRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeStyle, setRect, setThemeName, setThemeResolver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.shell.component.view.control.Control
getRect, setRect, setThemeName, setThemeResolver
-
Constructor Details
-
WindowView
public WindowView()
-
-
Method Details
-
setBackgroundColor
public void setBackgroundColor(int backgroundColor) Sets a background color. If color is set tonull
it indicates that background should be set to beempty
causing possible layer to be non-transparent.- Parameters:
backgroundColor
- the background color
-
getBackgroundStyle
-
drawInternal
Description copied from class:AbstractView
Component internal drawing method. Implementing classes needs to define this method to draw something into aScreen
.- Specified by:
drawInternal
in classAbstractView
- Parameters:
screen
- the screen
-
getInnerRect
Gets an inner rectangle of this view.- Returns:
- an inner rectangle of this view
-