Package xtwm.ui
Class Desktop
- java.lang.Object
-
- jexer.TWidget
-
- jexer.TWindow
-
- jexer.TDesktop
-
- xtwm.ui.Desktop
-
-
Field Summary
-
Fields inherited from class jexer.TWindow
ABSOLUTEXY, CENTERED, helpTopic, HIDEONCLOSE, inKeyboardResize, inWindowMove, inWindowResize, MODAL, mouse, NOCLOSEBOX, NOZOOMBOX, OVERRIDEMENU, RESIZABLE, statusBar
-
-
Constructor Summary
Constructors Constructor Description Desktop(TApplication parent)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPanel(TWidget widget)
Add a panel to this desktop.void
draw()
The default TDesktop draws a hatch character across everything.CellAttributes
getAttributes()
Get the attributes for the background.boolean
getFocusFollowsMouse()
Get focusFollowsMouse flag.void
nextPanel()
Activate the next panel on this desktop.void
onClose()
Close all open widgets on this desktop.void
onMouseDown(TMouseEvent mouse)
Handle mouse press events.void
previousPanel()
Activate the next panel on this desktop.void
removePanel(TWidget widget)
Remove a panel from this desktop.void
setAttributes(CellAttributes attributes)
Set the attributes for the background.void
setFocusFollowsMouse(boolean focusFollowsMouse)
Set focusFollowsMouse flag.-
Methods inherited from class jexer.TDesktop
hide, mouseOnClose, mouseOnMaximize, mouseOnResize, onHide, onKeypress, onMenu, onMouseMotion, onMouseUp, onResize, onShow, show
-
Methods inherited from class jexer.TWindow
activate, addShortcutKeypress, center, clearShortcutKeypresses, close, ensureOnScreen, getApplication, getBackground, getBorder, getBorderControls, getHelpTopic, getMaximumWindowHeight, getMaximumWindowWidth, getMinimumWindowHeight, getMinimumWindowWidth, getScreen, getStatusBar, getTitle, getZ, hasCloseBox, hasHiddenMouse, hasOverriddenMenu, hasZoomBox, inMovements, isHidden, isModal, isResizable, isShortcutKeypress, isShown, maximize, newStatusBar, onCommand, onFocus, onPreClose, onUnfocus, removeShortcutKeypress, restore, setCloseBox, setHiddenMouse, setMaximumWindowHeight, setMaximumWindowWidth, setMinimumWindowHeight, setMinimumWindowWidth, setResizable, setTitle, setZ, setZoomBox, stopMovements, toString
-
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, 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, getHeight, getLayoutManager, getParent, getTheme, getWidth, getWindow, getX, getY, handleEvent, hasChild, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, isEnabled, isVisible, messageBox, messageBox, mouseWouldHit, onIdle, onMouseDoubleClick, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setDimensions, setEchoKeystrokes, setEchoKeystrokes, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, vLineXY
-
-
-
-
Constructor Detail
-
Desktop
public Desktop(TApplication parent)
Public constructor.- Parameters:
parent
- parent application
-
-
Method Detail
-
onClose
public void onClose()
Close all open widgets on this desktop.
-
onMouseDown
public void onMouseDown(TMouseEvent mouse)
Handle mouse press events.- Overrides:
onMouseDown
in classTDesktop
- Parameters:
mouse
- mouse button press event
-
draw
public void draw()
The default TDesktop draws a hatch character across everything.
-
getAttributes
public CellAttributes getAttributes()
Get the attributes for the background.- Returns:
- the background attributes
-
setAttributes
public void setAttributes(CellAttributes attributes)
Set the attributes for the background.- Parameters:
attributes
- the attributes
-
nextPanel
public void nextPanel()
Activate the next panel on this desktop.
-
previousPanel
public void previousPanel()
Activate the next panel on this desktop.
-
addPanel
public void addPanel(TWidget widget)
Add a panel to this desktop.- Parameters:
widget
- the panel widget
-
removePanel
public void removePanel(TWidget widget)
Remove a panel from this desktop.- Parameters:
widget
- the panel widget
-
setFocusFollowsMouse
public void setFocusFollowsMouse(boolean focusFollowsMouse)
Set focusFollowsMouse flag.- Parameters:
focusFollowsMouse
- if true, focus follows mouse: panels are automatically activated if the mouse passes over them
-
getFocusFollowsMouse
public boolean getFocusFollowsMouse()
Get focusFollowsMouse flag.- Returns:
- true if focus follows mouse: panels automatically activate if the mouse passes over them
-
-