Package jexer.demos
Class DesktopDemoApplication
- java.lang.Object
-
- jexer.TApplication
-
- jexer.demos.DesktopDemoApplication
-
- All Implemented Interfaces:
java.lang.Runnable
public class DesktopDemoApplication extends TApplication
The demo application itself.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jexer.TApplication
TApplication.BackendType
-
-
Field Summary
-
Fields inherited from class jexer.TApplication
customMousePointer, customWidgetMousePointer, desktopCanHaveCursor, helpFile, helpTopics, imageSupportTest, lastUserInputTime, menuTrayText, oldPixelMouse, overlay, smartWindowPlacement, textMouse
-
-
Constructor Summary
Constructors Constructor Description DesktopDemoApplication(TApplication.BackendType backendType)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
onMenu(TMenuEvent menu)
Handle menu events.-
Methods inherited from class jexer.TApplication
activateWindow, addEditMenu, addFileMenu, addHelpMenu, addMenu, addMenu, addMenuItem, addOverlay, addSubMenu, addTableMenu, addTimer, addToolMenu, addWindow, addWindow, addWindow, addWindow, addWindowMenu, closeMenu, closeSubMenu, closeWindow, disableMenuItem, disableMenuItems, doRepaint, doSmartPlacement, enableMenuItem, enableMenuItems, enableSecondaryEventReceiver, exit, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getActiveWindow, getAllMenus, getAllWindows, getBackend, getClipboard, getCustomMousePointer, getDesktop, getDesktopBottom, getDesktopTop, getFocusFollowsMouse, getMenuItem, getOverlay, getScreen, getTheme, hasWindow, hiddenWindowCount, hideWindow, inputBox, inputBox, inputBox, invokeLater, isModalThreadRunning, isRunning, messageBox, messageBox, onCommand, onExit, onKeypress, onPostDraw, onPreDraw, openContextMenu, openTerminal, openTerminal, openTerminal, openTerminal, openTerminal, openTerminal, openTerminal, openTerminal, openTerminal, openTerminal, postEvent, postMenuEvent, recomputeMenuX, removeMenu, removeTimer, restoreConsole, run, setCustomMousePointer, setDesktop, setDesktop, setFocusFollowsMouse, setHideMenuBar, setHideStatusBar, showAboutDialog, shownWindowCount, showWindow, switchMenu, switchWindow, windowCount, yield
-
-
-
-
Constructor Detail
-
DesktopDemoApplication
public DesktopDemoApplication(TApplication.BackendType backendType) throws java.lang.Exception
Public constructor.- Parameters:
backendType
- one of the TApplication.BackendType values- Throws:
java.lang.Exception
- if TApplication can't instantiate the Backend.
-
-
Method Detail
-
onMenu
public boolean onMenu(TMenuEvent menu)
Handle menu events.- Overrides:
onMenu
in classTApplication
- Parameters:
menu
- menu event- Returns:
- if true, the event was processed and should not be passed onto a window
-
-