Package xtwm.plugins
Class BlankScreensaver
- java.lang.Object
-
- jexer.TWidget
-
- xtwm.plugins.PluginWidget
-
- xtwm.plugins.ScreensaverPlugin
-
- xtwm.plugins.BlankScreensaver
-
- All Implemented Interfaces:
java.lang.Comparable<TWidget>
public class BlankScreensaver extends ScreensaverPlugin
BlankScreensaver is a simple blank screen.
-
-
Field Summary
-
Fields inherited from class xtwm.plugins.ScreensaverPlugin
passwordField, passwordPanel, unlocked
-
Fields inherited from class xtwm.plugins.PluginWidget
app, loadOnStartup, pluginEnabled
-
-
Constructor Summary
Constructors Constructor Description BlankScreensaver()
No-argument constructor that is intended only for use by XTWMApplication.loadPlugin().BlankScreensaver(TWidget parent)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw()
Draw a blank screen.void
endScreensaver()
This method is called when the screensaver ends.java.lang.String
getApplicationCommand()
Get the command line to execute if this is an "Application" plugin.java.lang.String
getMenuMnemonic()
Get the translated menu label for this plugin.java.lang.String
getPluginDescription()
Get the translated full description for this plugin.java.lang.String
getPluginName()
Get the translated short name for this plugin.java.lang.String
getWindowTitle()
Get the translated window title for this plugin.boolean
isApplication()
See if this is an "Application" plugin.boolean
isWidget()
See if this is a "Widget" plugin.void
startScreensaver(Screen screen)
This method is called when the screensaver is activated.-
Methods inherited from class xtwm.plugins.ScreensaverPlugin
checkPassword, getPreferredHeight, getPreferredWidth, getWindow, isLoadOnStartup, isOnAllDesktops, isResizable, isUnlocked, onKeypress, setLoadOnStartup
-
Methods inherited from class xtwm.plugins.PluginWidget
closeFromMenu, getOption, getOption, getPluginSettingsEditor, initialize, isPluginEnabled, isWindowed, makeDataFile, onMenu, setOption, setPluginEnabled
-
Methods inherited from class jexer.TWidget
activate, 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, close, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, drawChildren, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getChildren, getClipboard, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getScreen, getTheme, getWidth, getWindow, getX, getY, handleEvent, hasChild, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, isEnabled, isVisible, messageBox, messageBox, mouseWouldHit, onCommand, onIdle, onMouseDoubleClick, onMouseDown, onMouseMotion, onMouseUp, onResize, 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, toString, vLineXY
-
-
-
-
Constructor Detail
-
BlankScreensaver
public BlankScreensaver(TWidget parent)
Public constructor.- Parameters:
parent
- parent widget
-
BlankScreensaver
public BlankScreensaver()
No-argument constructor that is intended only for use by XTWMApplication.loadPlugin().
-
-
Method Detail
-
getMenuMnemonic
public java.lang.String getMenuMnemonic()
Get the translated menu label for this plugin.- Specified by:
getMenuMnemonic
in classPluginWidget
- Returns:
- a mnemonic string that will be populated in the menu
-
getPluginName
public java.lang.String getPluginName()
Get the translated short name for this plugin.- Specified by:
getPluginName
in classPluginWidget
- Returns:
- a short name, e.g. "BlankScreensaver"
-
getPluginDescription
public java.lang.String getPluginDescription()
Get the translated full description for this plugin.- Specified by:
getPluginDescription
in classPluginWidget
- Returns:
- a short name, e.g. "A simple blank screen screensaver."
-
isApplication
public boolean isApplication()
See if this is an "Application" plugin.- Specified by:
isApplication
in classPluginWidget
- Returns:
- true if this plugin should be listed the Application | Programs menu
-
getApplicationCommand
public java.lang.String getApplicationCommand()
Get the command line to execute if this is an "Application" plugin.- Specified by:
getApplicationCommand
in classPluginWidget
- Returns:
- a command line
-
isWidget
public boolean isWidget()
See if this is a "Widget" plugin.- Specified by:
isWidget
in classPluginWidget
- Returns:
- true if this plugin should be available in the Application | Widgets meny and the Panel | "Switch to" dialog
-
getWindowTitle
public java.lang.String getWindowTitle()
Get the translated window title for this plugin.- Specified by:
getWindowTitle
in classPluginWidget
- Returns:
- the title for the window when this widget is opened in the Application | Widgets menu, or null if this widget should have no title for its window.
-
startScreensaver
public void startScreensaver(Screen screen)
This method is called when the screensaver is activated.- Specified by:
startScreensaver
in classScreensaverPlugin
- Parameters:
screen
- a snapshot of the screen "under" the screensaver.
-
endScreensaver
public void endScreensaver()
This method is called when the screensaver ends.- Specified by:
endScreensaver
in classScreensaverPlugin
-
-