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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddrawInternal(Screen screen) Component internal drawing method.protected Stringprotected RectangleGets an inner rectangle of this view.voidsetBackgroundColor(int backgroundColor) Sets a background color.Methods inherited from class org.springframework.shell.component.view.control.AbstractViewdestroy, 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, shortcutMethods inherited from class org.springframework.shell.component.view.control.AbstractControlgetRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeSpinner, resolveThemeStyle, setRect, 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, setRect, setThemeName, setThemeResolver
- 
Constructor Details- 
WindowViewpublic WindowView()
 
- 
- 
Method Details- 
setBackgroundColorpublic void setBackgroundColor(int backgroundColor) Sets a background color. If color is set tonullit indicates that background should be set to beemptycausing possible layer to be non-transparent.- Parameters:
- backgroundColor- the background color
 
- 
getBackgroundStyle
- 
drawInternalDescription copied from class:AbstractViewComponent internal drawing method. Implementing classes needs to define this method to draw something into aScreen.- Specified by:
- drawInternalin class- AbstractView
- Parameters:
- screen- the screen
 
- 
getInnerRectGets an inner rectangle of this view.- Returns:
- an inner rectangle of this view
 
 
-