public class PlaybackMonitorAdapter extends java.lang.Object implements IPlaybackMonitor, IPlaybackMonitorDisplay
| Modifier and Type | Field and Description |
|---|---|
static int |
FINDING
Searching the system for a particular object
|
static int |
WAITING
Waiting
|
LAST_STATE, LINE_NUM_UNKNOWN, RUNNING, START_APP, TYPING| Constructor and Description |
|---|
PlaybackMonitorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Method called to take the playback monitor down and release all
its resources
|
java.lang.String |
getDescription()
Get the description of the currently executing statement.
|
boolean |
getDisplayLocked()
Get the lock state of the monitor's display fields.
|
java.awt.Frame |
getFrame()
Return the playback monitor's frame
|
boolean |
isAlwaysOnTop()
Returns whether the playback monitor is always displayed on top
of other windows.
|
boolean |
isVisible()
Returns whether the playback monitor is visible.
|
void |
pause()
Put the monitor in the "paused" state.
|
void |
resetDescription()
Reset to the base Running state
|
void |
resume()
Resume the monitor from the paused state.
|
void |
setAlwaysOnTop(boolean b)
Display playback monitor in front of any other window or not,
depending on the argument.
|
void |
setDescription(int state,
java.lang.String additionalText)
Set the description of the currently executing statement
|
void |
setDisplayLocked(boolean lockedState)
Lock (or unlock) the display fields so the contents can not be changed.
|
void |
setFinding(boolean state)
Set whether currently trying to find an object
|
void |
setScriptLine(int line)
Set the line in the script currently executing
|
void |
setScriptName(java.lang.String scriptName)
Set the name of the script being played back
|
void |
setVisible(boolean b)
Show or hide the playback monitor depending on the argument.
|
void |
setWaiting(boolean state)
Set whether the playback engine is waiting (e.g.
|
void |
stop()
Put the monitor UI in the "stopping" state.
|
void |
toFront()
Method called to bring the playback monitor to the front of the stacking
order (AKA z-order).
|
public static final int WAITING
public static final int FINDING
public void setScriptName(java.lang.String scriptName)
setScriptName in interface IPlaybackMonitorscriptName - The script namepublic void setScriptLine(int line)
setScriptLine in interface IPlaybackMonitorlineNum - The currently executing line number
or (@link #LINE_NUM_UNKNOWN) if unknownpublic java.lang.String getDescription()
getDescription in interface IPlaybackMonitorpublic void setDescription(int state,
java.lang.String additionalText)
setDescription in interface IPlaybackMonitorstate - The state (this selects a stock message)
(@link #RUNNING, @link #WAITING, @link #FINDING,additionalText - Additional text appended to the stock message.public void resetDescription()
resetDescription in interface IPlaybackMonitorpublic void setFinding(boolean state)
setFinding in interface IPlaybackMonitorstate - true - searching, false - notpublic void setWaiting(boolean state)
setWaiting in interface IPlaybackMonitorstate - true - waiting, false - notpublic void setVisible(boolean b)
setVisible in interface IPlaybackMonitorsetVisible in interface IPlaybackMonitorDisplayb - true - show the playback monitor, otherwise, hidepublic boolean isVisible()
isVisible in interface IPlaybackMonitorDisplaypublic void setAlwaysOnTop(boolean b)
setAlwaysOnTop in interface IPlaybackMonitorDisplayb - true - show always on top,
otherwise, may be behind another windowpublic boolean isAlwaysOnTop()
isAlwaysOnTop in interface IPlaybackMonitorDisplaypublic void close()
public void toFront()
toFront in interface IPlaybackMonitorDisplaypublic java.awt.Frame getFrame()
getFrame in interface IPlaybackMonitorDisplaypublic void setDisplayLocked(boolean lockedState)
setDisplayLocked in interface IPlaybackMonitorlockState - true to lock the displaypublic boolean getDisplayLocked()
getDisplayLocked in interface IPlaybackMonitorpublic void pause()
pause in interface IPlaybackMonitorpublic void resume()
resume in interface IPlaybackMonitorpublic void stop()
stop in interface IPlaybackMonitor