Package jexer
Class TWindow
- java.lang.Object
 - 
- jexer.TWidget
 - 
- jexer.TWindow
 
 
 
- 
- All Implemented Interfaces:
 java.lang.Comparable<TWidget>
- Direct Known Subclasses:
 DemoCheckBoxWindow,DemoEditorWindow,DemoMainWindow,DemoMsgBoxWindow,DemoPixelsWindow,DemoTableWindow,DemoTextFieldWindow,DemoTextWindow,DemoTreeViewWindow,TDesktop,TEditColorThemeWindow,TExceptionDialog,TFileOpenBox,THelpWindow,TMenu,TMessageBox,TScreenOptionsWindow,TScrollableWindow,TWindowBackend
public class TWindow extends TWidget
TWindow is the top-level container and drawing surface for other widgets. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intABSOLUTEXYWindow is placed at absolute position (no smart placement) (default no).protected BorderStyleborderStyleActiveThe border style for an active window.protected BorderStyleborderStyleActiveModalThe border style for an active modal window.protected BorderStyleborderStyleInactiveThe border style for an inactive window.protected BorderStyleborderStyleMovingThe border style for a window being dragged/resized.static intCENTEREDWindow is centered (default no).protected java.lang.StringhelpTopicThe help topic for this window.static intHIDEONCLOSEHitting the closebox with the mouse calls TApplication.hideWindow() rather than TApplication.closeWindow() (default no).protected booleaninKeyboardResizeIf true, then the user selected "Size/Move" (or hit Ctrl-F5) and is resizing/moving the window via the keyboard.protected booleaninWindowMoveIf true, then the user clicked on the title bar and is moving the window.protected booleaninWindowResizeIf true, then the user clicked on the bottom right corner and is resizing the window.static intMODALWindow is modal (default no).protected TMouseEventmouseRemember mouse state.static intNOCLOSEBOXWindow has no close box (default no).static intNOZOOMBOXWindow has no maximize box (default no).protected TackboardoverlayA means of drawing arbitrary items on top of all widgets on this window.static intOVERRIDEMENUMenus cannot be used when this window is active (default no).static intRESIZABLEWindow is resizable (default yes).protected TStatusBarstatusBarA window may have a status bar associated with it.protected TackboardunderlayA means of drawing arbitrary items underneath all widgets on this window. 
- 
Constructor Summary
Constructors Constructor Description TWindow(TApplication application, java.lang.String title, int width, int height)Public constructor.TWindow(TApplication application, java.lang.String title, int width, int height, int flags)Public constructor.TWindow(TApplication application, java.lang.String title, int x, int y, int width, int height)Public constructor.TWindow(TApplication application, java.lang.String title, int x, int y, int width, int height, int flags)Public constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Activate window (bring to top and receive events).voidaddOverlay(TackboardItem item)Add a tackboard item to the overlay.voidaddShortcutKeypress(TKeypress key)Add a keypress to be overridden for this window.voidaddUnderlay(TackboardItem item)Add a tackboard item to the underlay.voidcenter()Recenter the window on-screen.protected voidclearShortcutKeypresses()Remove all keypresses to be overridden for this window.voidclose()Close window.booleandisableCloseEffect()If true, disable any window closing effect.booleandisableOpenEffect()If true, disable any window opening effect.voiddraw()Called by TApplication.drawChildren() to render on screen.voidensureOnScreen()Move the window as needed to ensure it is visible on screen.intgetAlpha()Get the alpha level for this window.TApplicationgetApplication()Get this TWindow's parent TApplication.CellAttributesgetBackground()Retrieve the background color.CellAttributesgetBorder()Retrieve the border color.CellAttributesgetBorderControls()Retrieve the color used by the window movement/sizing controls.BorderStylegetBorderStyle()Retrieve the border line style.BorderStylegetBorderStyleForeground()Get the border style for the window when it is the foreground window.BorderStylegetBorderStyleInactive()Get the border style for the window when it is an inactive/background window.BorderStylegetBorderStyleModal()Get the border style for the window when it is the modal window.BorderStylegetBorderStyleMoving()Get the border style for the window when it is being dragged/resize.java.lang.StringgetHelpTopic()Get this window's help topic to load.intgetMaximumWindowHeight()Get the maximum height for this window.intgetMaximumWindowWidth()Get the maximum width for this window.intgetMinimumWindowHeight()Get the minimum height for this window.intgetMinimumWindowWidth()Get the minimum width for this window.java.lang.StringgetMouseStyle()Get the mouse pointer (cursor) style.ScreengetScreen()Get the Screen.TStatusBargetStatusBar()Get the window's status bar, or null if it does not have one.java.lang.StringgetTitle()Get window title.ColorThemegetWindowTheme()Get the custom color theme for this window.intgetZ()Get Z order.booleanhasCloseBox()Returns true if this window has a close box.booleanhasHiddenMouse()Returns true if this window does not want the application-wide mouse pointer drawn over it.booleanhasOverriddenMenu()Returns true if this window does not want menus to work while it is visible.booleanhasZoomBox()Returns true if this window has a maximize/zoom box.voidhide()Hide window.booleaninMovements()See if this window is undergoing any movement/resize/etc.booleanisHidden()Returns true if this window is hidden.booleanisModal()Returns true if this window is modal.booleanisResizable()Returns true if this window is resizable.booleanisShortcutKeypress(TKeypress key)Determine if a keypress is overridden for this window.booleanisShown()Returns true if this window is shown.voidmaximize()Maximize window.protected booleanmouseOnClose()Returns true if the mouse is currently on the close button.protected booleanmouseOnMaximize()Returns true if the mouse is currently on the maximize/restore button.protected booleanmouseOnResize()Returns true if the mouse is currently on the resizable lower right corner.TStatusBarnewStatusBar(java.lang.String text)Set the window's status bar to a new one.protected voidonClose()Subclasses should override this method to cleanup resources.voidonCommand(TCommandEvent command)Handle posted command events.protected voidonFocus()Called by application.switchWindow() when this window gets the focus, and also by application.addWindow().protected voidonHide()Called by application.hideWindow().voidonKeypress(TKeypressEvent keypress)Handle keystrokes.voidonMenu(TMenuEvent menu)Handle posted menu events.voidonMouseDown(TMouseEvent mouse)Handle mouse button presses.voidonMouseMotion(TMouseEvent mouse)Handle mouse movements.voidonMouseUp(TMouseEvent mouse)Handle mouse button releases.protected voidonPostDraw()Function called immediately after the windo is drawn.protected voidonPreClose()Subclasses should override this method to perform any user prompting before they are offscreen.voidonResize(TResizeEvent resize)Method that subclasses can override to handle window/screen resize events.protected voidonShow()Called by application.showWindow().protected voidonUnfocus()Called by application.switchWindow() when another window gets the focus.voidremoveShortcutKeypress(TKeypress key)Remove a keypress to be overridden for this window.voidrestore()Restore (unmaximize) window.voidsetAlpha(int alpha)Set the alpha level for this window.voidsetBorderStyleForeground(java.lang.String borderStyle)Set the border style for the window when it is the foreground window.voidsetBorderStyleInactive(java.lang.String borderStyle)Set the border style for the window when it is an inactive/background window.voidsetBorderStyleModal(java.lang.String borderStyle)Set the border style for the window when it is the modal window.voidsetBorderStyleMoving(java.lang.String borderStyle)Set the border style for the window when it is being dragged/resize.voidsetCloseBox(boolean closeBox)Set this window's close box flag.voidsetHiddenMouse(boolean hideMouse)Set request to prevent the application-wide mouse pointer from being drawn over this window.voidsetMaximumWindowHeight(int maximumWindowHeight)Set the maximum height for this window.voidsetMaximumWindowWidth(int maximumWindowWidth)Set the maximum width for this window.voidsetMinimumWindowHeight(int minimumWindowHeight)Set the minimum height for this window.voidsetMinimumWindowWidth(int minimumWindowWidth)Set the minimum width for this window.voidsetResizable(boolean resizable)Set this window's resizable flag.voidsetTackboardsDirty()Mark the underlay and overlay dirty.voidsetTitle(java.lang.String title)Set window title.voidsetWindowTheme(ColorTheme theme)Set a custom color theme for this window.voidsetZ(int z)Set Z order.voidsetZoomBox(boolean zoomBox)Set this window's maximize/zoom box flag.voidshow()Show window.voidstopMovements()Stop any pending movement/resize/etc.java.lang.StringtoString()Generate a human-readable string for this window.- 
Methods inherited from class jexer.TWidget
activate, activate, activateAll, addButton, addCalendar, addCheckBox, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addField, addImage, addImage, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, drawChildren, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getAttrXY, getChildren, getClipboard, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getCustomMousePointer, getHeight, getLayoutManager, getLocale, getParent, getTheme, getWidgetUnderMouse, getWidth, getWindow, getX, getY, handleEvent, hasChild, hLineXY, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, isEnabled, isPixelMouse, isVisible, messageBox, messageBox, mouseWouldHit, onIdle, onMouseDoubleClick, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setCustomMousePointer, setDimensions, setEchoKeystrokes, setEchoKeystrokes, setEnabled, setHeight, setLayoutManager, setLocale, setMouseStyle, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, vLineXY, vLineXY 
 - 
 
 - 
 
- 
- 
Field Detail
- 
RESIZABLE
public static final int RESIZABLE
Window is resizable (default yes).- See Also:
 - Constant Field Values
 
 
- 
MODAL
public static final int MODAL
Window is modal (default no).- See Also:
 - Constant Field Values
 
 
- 
CENTERED
public static final int CENTERED
Window is centered (default no).- See Also:
 - Constant Field Values
 
 
- 
NOCLOSEBOX
public static final int NOCLOSEBOX
Window has no close box (default no). Window can still be closed via TApplication.closeWindow() and TWindow.close().- See Also:
 - Constant Field Values
 
 
- 
NOZOOMBOX
public static final int NOZOOMBOX
Window has no maximize box (default no).- See Also:
 - Constant Field Values
 
 
- 
ABSOLUTEXY
public static final int ABSOLUTEXY
Window is placed at absolute position (no smart placement) (default no).- See Also:
 - Constant Field Values
 
 
- 
HIDEONCLOSE
public static final int HIDEONCLOSE
Hitting the closebox with the mouse calls TApplication.hideWindow() rather than TApplication.closeWindow() (default no).- See Also:
 - Constant Field Values
 
 
- 
OVERRIDEMENU
public static final int OVERRIDEMENU
Menus cannot be used when this window is active (default no).- See Also:
 - Constant Field Values
 
 
- 
inWindowMove
protected boolean inWindowMove
If true, then the user clicked on the title bar and is moving the window. 
- 
inWindowResize
protected boolean inWindowResize
If true, then the user clicked on the bottom right corner and is resizing the window. 
- 
inKeyboardResize
protected boolean inKeyboardResize
If true, then the user selected "Size/Move" (or hit Ctrl-F5) and is resizing/moving the window via the keyboard. 
- 
mouse
protected TMouseEvent mouse
Remember mouse state. 
- 
statusBar
protected TStatusBar statusBar
A window may have a status bar associated with it. TApplication will draw this status bar last, and will also route events to it first before the window. 
- 
helpTopic
protected java.lang.String helpTopic
The help topic for this window. 
- 
underlay
protected Tackboard underlay
A means of drawing arbitrary items underneath all widgets on this window. 
- 
overlay
protected Tackboard overlay
A means of drawing arbitrary items on top of all widgets on this window. 
- 
borderStyleActive
protected BorderStyle borderStyleActive
The border style for an active window. 
- 
borderStyleActiveModal
protected BorderStyle borderStyleActiveModal
The border style for an active modal window. 
- 
borderStyleInactive
protected BorderStyle borderStyleInactive
The border style for an inactive window. 
- 
borderStyleMoving
protected BorderStyle borderStyleMoving
The border style for a window being dragged/resized. 
 - 
 
- 
Constructor Detail
- 
TWindow
public TWindow(TApplication application, java.lang.String title, int width, int height)
Public constructor. Window will be located at (0, 0).- Parameters:
 application- TApplication that manages this windowtitle- window title, will be centered along the top borderwidth- width of windowheight- height of window
 
- 
TWindow
public TWindow(TApplication application, java.lang.String title, int width, int height, int flags)
Public constructor. Window will be located at (0, 0).- Parameters:
 application- TApplication that manages this windowtitle- window title, will be centered along the top borderwidth- width of windowheight- height of windowflags- bitmask of RESIZABLE, CENTERED, or MODAL
 
- 
TWindow
public TWindow(TApplication application, java.lang.String title, int x, int y, int width, int height)
Public constructor.- Parameters:
 application- TApplication that manages this windowtitle- window title, will be centered along the top borderx- column relative to parenty- row relative to parentwidth- width of windowheight- height of window
 
- 
TWindow
public TWindow(TApplication application, java.lang.String title, int x, int y, int width, int height, int flags)
Public constructor.- Parameters:
 application- TApplication that manages this windowtitle- window title, will be centered along the top borderx- column relative to parenty- row relative to parentwidth- width of windowheight- height of windowflags- mask of RESIZABLE, CENTERED, or MODAL
 
 - 
 
- 
Method Detail
- 
mouseOnClose
protected boolean mouseOnClose()
Returns true if the mouse is currently on the close button.- Returns:
 - true if mouse is currently on the close button
 
 
- 
mouseOnMaximize
protected boolean mouseOnMaximize()
Returns true if the mouse is currently on the maximize/restore button.- Returns:
 - true if the mouse is currently on the maximize/restore button
 
 
- 
mouseOnResize
protected boolean mouseOnResize()
Returns true if the mouse is currently on the resizable lower right corner.- Returns:
 - true if the mouse is currently on the resizable lower right corner
 
 
- 
onPreClose
protected void onPreClose()
Subclasses should override this method to perform any user prompting before they are offscreen. Note that unlike other windowing toolkits, windows can NOT use this function in some manner to avoid being closed. This is called by application.closeWindow(). 
- 
onClose
protected void onClose()
Subclasses should override this method to cleanup resources. This is called by application.closeWindow(). 
- 
onFocus
protected void onFocus()
Called by application.switchWindow() when this window gets the focus, and also by application.addWindow(). 
- 
onUnfocus
protected void onUnfocus()
Called by application.switchWindow() when another window gets the focus. 
- 
onHide
protected void onHide()
Called by application.hideWindow(). 
- 
onShow
protected void onShow()
Called by application.showWindow(). 
- 
onMouseDown
public void onMouseDown(TMouseEvent mouse)
Handle mouse button presses.- Overrides:
 onMouseDownin classTWidget- Parameters:
 mouse- mouse button event
 
- 
onMouseUp
public void onMouseUp(TMouseEvent mouse)
Handle mouse button releases. 
- 
onMouseMotion
public void onMouseMotion(TMouseEvent mouse)
Handle mouse movements.- Overrides:
 onMouseMotionin classTWidget- Parameters:
 mouse- mouse motion event
 
- 
onKeypress
public void onKeypress(TKeypressEvent keypress)
Handle keystrokes.- Overrides:
 onKeypressin classTWidget- Parameters:
 keypress- keystroke event
 
- 
onCommand
public void onCommand(TCommandEvent command)
Handle posted command events. 
- 
onMenu
public void onMenu(TMenuEvent menu)
Handle posted menu events. 
- 
onResize
public void onResize(TResizeEvent resize)
Method that subclasses can override to handle window/screen resize events. 
- 
getApplication
public final TApplication getApplication()
Get this TWindow's parent TApplication.- Overrides:
 getApplicationin classTWidget- Returns:
 - this TWindow's parent TApplication
 
 
- 
getScreen
public final Screen getScreen()
Get the Screen. 
- 
draw
public void draw()
Called by TApplication.drawChildren() to render on screen. 
- 
onPostDraw
protected void onPostDraw()
Function called immediately after the windo is drawn. This can be used by subclasses of TWindow to alter the final post-rendered window screen area. 
- 
getMouseStyle
public java.lang.String getMouseStyle()
Get the mouse pointer (cursor) style.- Overrides:
 getMouseStylein classTWidget- Returns:
 - the pointer style string, one of: "default", "none", "hand", "text", "move", or "crosshair"
 
 
- 
getTitle
public final java.lang.String getTitle()
Get window title.- Returns:
 - window title
 
 
- 
setTitle
public final void setTitle(java.lang.String title)
Set window title.- Parameters:
 title- new window title
 
- 
getZ
public final int getZ()
Get Z order. Lower number means more in-front.- Returns:
 - Z value. Lower number means more in-front.
 
 
- 
setZ
public final void setZ(int z)
Set Z order. Lower number means more in-front.- Parameters:
 z- the new Z value. Lower number means more in-front.
 
- 
addShortcutKeypress
public void addShortcutKeypress(TKeypress key)
Add a keypress to be overridden for this window.- Parameters:
 key- the key to start taking control of
 
- 
removeShortcutKeypress
public void removeShortcutKeypress(TKeypress key)
Remove a keypress to be overridden for this window.- Parameters:
 key- the key to stop taking control of
 
- 
clearShortcutKeypresses
protected void clearShortcutKeypresses()
Remove all keypresses to be overridden for this window. 
- 
isShortcutKeypress
public boolean isShortcutKeypress(TKeypress key)
Determine if a keypress is overridden for this window.- Parameters:
 key- the key to check- Returns:
 - true if this window wants to process this key on its own
 
 
- 
getStatusBar
public TStatusBar getStatusBar()
Get the window's status bar, or null if it does not have one.- Returns:
 - the status bar, or null
 
 
- 
newStatusBar
public TStatusBar newStatusBar(java.lang.String text)
Set the window's status bar to a new one.- Parameters:
 text- the status bar text- Returns:
 - the status bar
 
 
- 
getMaximumWindowWidth
public final int getMaximumWindowWidth()
Get the maximum width for this window.- Returns:
 - the maximum width
 
 
- 
setMaximumWindowWidth
public final void setMaximumWindowWidth(int maximumWindowWidth)
Set the maximum width for this window.- Parameters:
 maximumWindowWidth- new maximum width
 
- 
getMinimumWindowWidth
public final int getMinimumWindowWidth()
Get the minimum width for this window.- Returns:
 - the minimum width
 
 
- 
setMinimumWindowWidth
public final void setMinimumWindowWidth(int minimumWindowWidth)
Set the minimum width for this window.- Parameters:
 minimumWindowWidth- new minimum width
 
- 
getMaximumWindowHeight
public final int getMaximumWindowHeight()
Get the maximum height for this window.- Returns:
 - the maximum height
 
 
- 
setMaximumWindowHeight
public final void setMaximumWindowHeight(int maximumWindowHeight)
Set the maximum height for this window.- Parameters:
 maximumWindowHeight- new maximum height
 
- 
getMinimumWindowHeight
public final int getMinimumWindowHeight()
Get the minimum height for this window.- Returns:
 - the minimum height
 
 
- 
setMinimumWindowHeight
public final void setMinimumWindowHeight(int minimumWindowHeight)
Set the minimum height for this window.- Parameters:
 minimumWindowHeight- new minimum height
 
- 
center
public final void center()
Recenter the window on-screen. 
- 
ensureOnScreen
public void ensureOnScreen()
Move the window as needed to ensure it is visible on screen. 
- 
maximize
public void maximize()
Maximize window. 
- 
restore
public void restore()
Restore (unmaximize) window. 
- 
isHidden
public final boolean isHidden()
Returns true if this window is hidden.- Returns:
 - true if this window is hidden, false if the window is shown
 
 
- 
isShown
public final boolean isShown()
Returns true if this window is shown.- Returns:
 - true if this window is shown, false if the window is hidden
 
 
- 
hide
public void hide()
Hide window. A hidden window will still have its onIdle() called, and will also have onClose() called at application exit. Hidden windows will not receive any other events. 
- 
show
public void show()
Show window. 
- 
activate
public void activate()
Activate window (bring to top and receive events). 
- 
close
public void close()
Close window. Note that windows without a close box can still be closed by calling the close() method. 
- 
inMovements
public boolean inMovements()
See if this window is undergoing any movement/resize/etc.- Returns:
 - true if the window is moving
 
 
- 
stopMovements
public void stopMovements()
Stop any pending movement/resize/etc. 
- 
isModal
public final boolean isModal()
Returns true if this window is modal.- Returns:
 - true if this window is modal
 
 
- 
hasCloseBox
public final boolean hasCloseBox()
Returns true if this window has a close box.- Returns:
 - true if this window has a close box
 
 
- 
setCloseBox
public final void setCloseBox(boolean closeBox)
Set this window's close box flag.- Parameters:
 closeBox- if true, this window will have a close box
 
- 
hasZoomBox
public final boolean hasZoomBox()
Returns true if this window has a maximize/zoom box.- Returns:
 - true if this window has a maximize/zoom box
 
 
- 
setZoomBox
public final void setZoomBox(boolean zoomBox)
Set this window's maximize/zoom box flag.- Parameters:
 zoomBox- if true, this window will have a maximize/zoom box
 
- 
hasOverriddenMenu
public final boolean hasOverriddenMenu()
Returns true if this window does not want menus to work while it is visible.- Returns:
 - true if this window does not want menus to work while it is visible
 
 
- 
isResizable
public final boolean isResizable()
Returns true if this window is resizable.- Returns:
 - true if this window is resizable
 
 
- 
setResizable
public final void setResizable(boolean resizable)
Set this window's resizable flag.- Parameters:
 resizable- if true, this window will be resizable
 
- 
getBackground
public CellAttributes getBackground()
Retrieve the background color.- Returns:
 - the background color
 
 
- 
getBorder
public CellAttributes getBorder()
Retrieve the border color.- Returns:
 - the border color
 
 
- 
getBorderControls
public CellAttributes getBorderControls()
Retrieve the color used by the window movement/sizing controls.- Returns:
 - the color used by the zoom box, resize bar, and close box
 
 
- 
getBorderStyle
public BorderStyle getBorderStyle()
Retrieve the border line style.- Returns:
 - the border line style
 
 
- 
hasHiddenMouse
public boolean hasHiddenMouse()
Returns true if this window does not want the application-wide mouse pointer drawn over it.- Returns:
 - true if this window does not want the application-wide mouse pointer drawn over it
 
 
- 
setHiddenMouse
public final void setHiddenMouse(boolean hideMouse)
Set request to prevent the application-wide mouse pointer from being drawn over this window.- Parameters:
 hideMouse- if true, this window does not want the application-wide mouse pointer drawn over it
 
- 
getHelpTopic
public java.lang.String getHelpTopic()
Get this window's help topic to load.- Returns:
 - the topic name
 
 
- 
toString
public java.lang.String toString()
Generate a human-readable string for this window. 
- 
addUnderlay
public void addUnderlay(TackboardItem item)
Add a tackboard item to the underlay.- Parameters:
 item- the item to add
 
- 
addOverlay
public void addOverlay(TackboardItem item)
Add a tackboard item to the overlay.- Parameters:
 item- the item to add
 
- 
setTackboardsDirty
public void setTackboardsDirty()
Mark the underlay and overlay dirty. 
- 
setBorderStyleForeground
public void setBorderStyleForeground(java.lang.String borderStyle)
Set the border style for the window when it is the foreground window.- Parameters:
 borderStyle- the border style string, one of: "default", "none", "single", "double", "singleVdoubleH", "singleHdoubleV", or "round"; or null to use the value from jexer.TWindow.borderStyleForeground.
 
- 
getBorderStyleForeground
public BorderStyle getBorderStyleForeground()
Get the border style for the window when it is the foreground window.- Returns:
 - the border style
 
 
- 
setBorderStyleModal
public void setBorderStyleModal(java.lang.String borderStyle)
Set the border style for the window when it is the modal window.- Parameters:
 borderStyle- the border style string, one of: "default", "none", "single", "double", "singleVdoubleH", "singleHdoubleV", or "round"; or null to use the value from jexer.TWindow.borderStyleModal.
 
- 
getBorderStyleModal
public BorderStyle getBorderStyleModal()
Get the border style for the window when it is the modal window.- Returns:
 - the border style
 
 
- 
setBorderStyleInactive
public void setBorderStyleInactive(java.lang.String borderStyle)
Set the border style for the window when it is an inactive/background window.- Parameters:
 borderStyle- the border style string, one of: "default", "none", "single", "double", "singleVdoubleH", "singleHdoubleV", or "round"; or null to use the value from jexer.TWindow.borderStyleInactive.
 
- 
getBorderStyleInactive
public BorderStyle getBorderStyleInactive()
Get the border style for the window when it is an inactive/background window.- Returns:
 - the border style
 
 
- 
setBorderStyleMoving
public void setBorderStyleMoving(java.lang.String borderStyle)
Set the border style for the window when it is being dragged/resize.- Parameters:
 borderStyle- the border style string, one of: "default", "none", "single", "double", "singleVdoubleH", "singleHdoubleV", or "round"; or null to use the value from jexer.TWindow.borderStyleMoving.
 
- 
getBorderStyleMoving
public BorderStyle getBorderStyleMoving()
Get the border style for the window when it is being dragged/resize.- Returns:
 - the border style
 
 
- 
getWindowTheme
public final ColorTheme getWindowTheme()
Get the custom color theme for this window.- Returns:
 - the color theme, or null if the window does not have a custom color theme
 
 
- 
setWindowTheme
public final void setWindowTheme(ColorTheme theme)
Set a custom color theme for this window.- Parameters:
 theme- the custom theme, or null to use the application-level color theme
 
- 
setAlpha
public void setAlpha(int alpha)
Set the alpha level for this window.- Parameters:
 alpha- a value between 0 (fully transparent) and 255 (fully opaque)
 
- 
getAlpha
public int getAlpha()
Get the alpha level for this window.- Returns:
 - a value between 0 (fully transparent) and 255 (fully opaque)
 
 
- 
disableOpenEffect
public boolean disableOpenEffect()
If true, disable any window opening effect. This is used by the window closing effects themselves so that they are not themselves opened.- Returns:
 - true if the window open effect should be disabled
 
 
- 
disableCloseEffect
public boolean disableCloseEffect()
If true, disable any window closing effect. This is used by the window closing effects themselves so that they can be closed when finished.- Returns:
 - true if the window close effect should be disabled
 
 
 - 
 
 -