public abstract class AbstractChuiDriver extends AbstractDriver<BasePrimitives,ChuiOutputManager>
ScreenDriver.UriPathAnchorBEEP_FILE_PATH, direct, factory| Constructor and Description |
|---|
AbstractChuiDriver(BasePrimitives direct,
java.lang.String term)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
captureMouseEvents(boolean state)
Enable or disable capture of mouse events.
|
static TerminalOptions |
convertToOptions(BootstrapConfig cfg)
Read configuration values from the bootstrap configuration and convert
these into an options instance.
|
ChuiOutputManager |
createOutputManager(BootstrapConfig cfg)
Get the
OutputManager instance associated with this driver. |
void |
handleMouseEvent(int sourceID,
java.awt.event.MouseEvent evt)
Handle the specified event, in the context of the specified widget.
|
boolean |
setCursorStatus(boolean on)
Set cursor status (ON/OFF).
|
void |
updateClientMetrics(ClientMetrics metrics)
Updates the screen metrics.
|
getFactory, getHostByName, getHostName, getPrimitives, getWindowSystem, inBackgroundMode, inBatchMode, init, isChui, playBeep, setBackgroundMode, setBatchMode, setTerminalType, shutdown, terminalTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeep, chooseFiles, clear, clientReady, deregisterWidget, getChildProcessFactory, getName, isEmbeddedClient, isWeb, lockMousePointer, openMimeResource, openMimeResource, propagate, readKey, resetMode, resume, resume, setControl, setCurrentLanguage, suspend, suspend, widgetStateChangedpublic AbstractChuiDriver(BasePrimitives direct, java.lang.String term)
direct - The output primitives.term - Terminal type string.public static TerminalOptions convertToOptions(BootstrapConfig cfg)
The following parameters are supported:
Category:Group:Key Type ----------------------- --------------------------- client:chui:rows integer client:chui:columns integer client:chui:background text which can be converted to a ColorRgb by ColorRgb.fromString() client:chui:foreground text which can be converted to a ColorRgb by ColorRgb.fromString() client:chui:selection text which can be converted to a ColorRgb by ColorRgb.fromString() client:chui:fontname text containing a monospaced (fixed width) font family name client:chui:fontsize integer
cfg - The bootstrap configuration.public ChuiOutputManager createOutputManager(BootstrapConfig cfg)
OutputManager instance associated with this driver.cfg - The initial configuration for this driver.public boolean setCursorStatus(boolean on)
For GUI, this does nothing.
on - true - show cursor, false - hide cursor.false.public boolean captureMouseEvents(boolean state)
This implementation is a no-op.
state - true to capture mouse events, false to ignore them.public void handleMouseEvent(int sourceID,
java.awt.event.MouseEvent evt)
This implementation is a no-op.
sourceID - The source widget ID.evt - The mouse event.public void updateClientMetrics(ClientMetrics metrics)
metrics - The instance to update.