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
Constructors -
Method Summary
Modifier 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.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, shortcutMethods inherited from class org.springframework.shell.component.view.control.AbstractControl
getRect, getThemeName, getThemeResolver, resolveThemeBackground, resolveThemeForeground, resolveThemeSpinner, resolveThemeStyle, setRect, setThemeName, setThemeResolverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 tonullit indicates that background should be set to beemptycausing possible layer to be non-transparent.- Parameters:
backgroundColor- the background color
-
getBackgroundStyle
-
drawInternal
Description copied from class:AbstractViewComponent internal drawing method. Implementing classes needs to define this method to draw something into aScreen.- Specified by:
drawInternalin classAbstractView- Parameters:
screen- the screen
-
getInnerRect
Gets an inner rectangle of this view.- Returns:
- an inner rectangle of this view
-