public class Monitor extends javax.swing.JFrame implements IMonitor, com.rational.test.ft.recorder.IRecord, com.rational.test.ft.recorder.IRecordListener
| Modifier and Type | Class and Description |
|---|---|
class |
Monitor.LocalChangeListener |
class |
Monitor.MainWindowComponentListener |
class |
Monitor.ReportErrorThread |
class |
Monitor.SymComponent |
class |
Monitor.SymWindow |
javax.swing.JFrame.AccessibleJFramejava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLEAR |
static java.lang.String |
COPY |
protected static com.rational.test.ft.util.FtDebug |
debug |
static java.lang.String |
DOCK_TOOLBAR |
protected boolean |
forcedResize |
protected Monitor |
frame |
protected boolean |
inConstructor |
protected static Monitor |
instance |
static java.lang.String |
MESSAGE_OPTIONS |
protected javax.swing.JTextField |
monitorStatusText |
protected MonitorStyledDocument |
monitorStyledDocument |
protected javax.swing.JTextPane |
monitorText |
protected javax.swing.JToolBar |
monitorToolbar |
protected boolean |
monitorVisible |
protected com.rational.test.ft.recorder.jfc.Toolbar |
recordToolbar |
static java.lang.String |
SAVEAS |
protected javax.swing.text.SimpleAttributeSet[] |
textAttrs |
protected javax.swing.JScrollPane |
textPane |
protected javax.swing.JPanel |
toolbarPanel |
protected static MonitorUIPreferences |
uiPreferences |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTCLEAR_STATE, ERROR_MSG, INFO_MSG, PAUSE_STATE, PROCESSING_STATE, READY_STATE, RQM_CONN_LOST_STATE, RQM_CONN_RESTORE_STATE, STOP_STATE, WARNING_MSG| Constructor and Description |
|---|
Monitor() |
Monitor(boolean monitorVisible,
com.rational.test.ft.recorder.Recorder recorder,
java.lang.String language,
com.ibm.rational.test.ft.tools.interfaces.ICommandLineParams cliParam) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Abort recording immediately, performing minimal cleanup and exit
processing.
|
protected void |
addMonitorButtons(javax.swing.JToolBar toolbar) |
void |
addMonitorListener(IMonitorListener listener)
Add a monitor action listener.
|
void |
addNotify() |
void |
addRecordListener(com.rational.test.ft.recorder.IRecordListener listener)
Add a record action listener to this recorder.
|
void |
addShowHelpOnStartupText() |
protected void |
addStylesToDocument(javax.swing.text.StyledDocument doc) |
protected com.rational.test.ft.ui.jfc.ToolbarButton |
createButton(java.lang.String name)
Create a button
|
java.awt.Dimension |
getMinimumSize() |
static IMonitor |
getMonitor()
Return the monitor
|
boolean |
hideRecordMonitor() |
protected void |
initFromPreferences()
Initialize from the display preferences
|
protected javax.swing.text.SimpleAttributeSet[] |
initTextColors() |
boolean |
isPaused()
This method returns true if recording has been paused.
|
boolean |
isStopped()
This method returns true if recording has been terminated.
|
void |
pause()
This method is called when the recording session is paused.
|
void |
println(int msgKind,
java.lang.String message)
Print the specified message.
|
void |
println(int msgKind,
java.lang.String msg,
java.lang.Object arg0)
This method outputs a message with one parameter substitution
in the message pattern.
|
void |
println(int msgKind,
java.lang.String msg,
java.lang.Object[] args)
This method outputs a message with some number of
parameter substitutions in the message pattern.
|
void |
println(int msgKind,
java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1)
This method outputs a message with two parameter substitutions
in the message pattern.
|
void |
println(int msgKind,
java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
This method outputs a message with three parameter substitutions
in the message pattern.
|
void |
println(int msgKind,
java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
This method outputs a message with four parameter substitutions
in the message pattern.
|
void |
println(int msgKind,
java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
This method outputs a message with five parameter substitutions
in the message pattern.
|
void |
removeMonitorListener(IMonitorListener listener)
Remove a monitor action listener.
|
void |
removeRecordListener(com.rational.test.ft.recorder.IRecordListener listener)
Remove a record action listener to this recorder.
|
void |
reportError(java.lang.Object errMsg,
java.lang.Object[] details,
boolean wait)
Pause the recording session and display an error message in both the
monitor and in an error dialog.
|
void |
resume()
This method is called when the recording session is resumed.
|
protected void |
setCopyButtonState(javax.swing.event.CaretEvent e) |
void |
setMonitorState(int currentState)
To set the busy flag for the monitor.
|
void |
setMonitorVisible(boolean state)
Display the RecordMonitor and not the RecordToolbar, or vice versa
|
void |
setPauseState(boolean displayPaused)
The pause button was pressed in the floating record toolbar.
|
void |
setVisible(boolean state) |
void |
showRecordMonitor(boolean showMonitor) |
void |
start(com.ibm.rational.test.ft.tools.interfaces.ICommandLineParams cliParams)
Start recording to a specified script with the expressed attributes.
|
void |
start(java.lang.String script,
java.lang.String project)
This method is called when the recording session is started.
|
void |
stop()
This method is called when record processing is stopped.
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updategetCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected static Monitor instance
public static java.lang.String DOCK_TOOLBAR
public static java.lang.String COPY
public static java.lang.String SAVEAS
public static java.lang.String CLEAR
public static java.lang.String MESSAGE_OPTIONS
protected static MonitorUIPreferences uiPreferences
protected static com.rational.test.ft.util.FtDebug debug
protected boolean monitorVisible
protected com.rational.test.ft.recorder.jfc.Toolbar recordToolbar
protected boolean inConstructor
protected boolean forcedResize
protected MonitorStyledDocument monitorStyledDocument
protected javax.swing.text.SimpleAttributeSet[] textAttrs
protected javax.swing.JPanel toolbarPanel
protected javax.swing.JToolBar monitorToolbar
protected javax.swing.JScrollPane textPane
protected javax.swing.JTextPane monitorText
protected javax.swing.JTextField monitorStatusText
protected Monitor frame
public Monitor()
public Monitor(boolean monitorVisible,
com.rational.test.ft.recorder.Recorder recorder,
java.lang.String language,
com.ibm.rational.test.ft.tools.interfaces.ICommandLineParams cliParam)
public static IMonitor getMonitor()
protected void addStylesToDocument(javax.swing.text.StyledDocument doc)
public void addShowHelpOnStartupText()
public void setVisible(boolean state)
setVisible in class java.awt.Windowpublic void showRecordMonitor(boolean showMonitor)
public boolean hideRecordMonitor()
public void addNotify()
addNotify in class java.awt.Framepublic java.awt.Dimension getMinimumSize()
getMinimumSize in class java.awt.Containerpublic void setMonitorVisible(boolean state)
protected void addMonitorButtons(javax.swing.JToolBar toolbar)
protected com.rational.test.ft.ui.jfc.ToolbarButton createButton(java.lang.String name)
name - The button's nameprotected void initFromPreferences()
protected void setCopyButtonState(javax.swing.event.CaretEvent e)
protected javax.swing.text.SimpleAttributeSet[] initTextColors()
public void println(int msgKind,
java.lang.String message)
public void println(int msgKind,
java.lang.String msg,
java.lang.Object[] args)
public void println(int msgKind,
java.lang.String msg,
java.lang.Object arg0)
public void println(int msgKind,
java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1)
public void println(int msgKind,
java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
println in interface IMonitormsgKind - The type ofmsg - The messagearg0 - The zero argument used to resolve parameter
substitution in the message patternarg1 - The one argument used to resolve parameter
substitution in the message patternarg2 - The two argument used to resolve parameter
substitution in the message patternpublic void println(int msgKind,
java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
println in interface IMonitormsgKind - The type ofmsg - The messagearg0 - The zero argument used to resolve parameter
substitution in the message patternarg1 - The one argument used to resolve parameter
substitution in the message patternarg2 - The two argument used to resolve parameter
substitution in the message patternarg3 - The three argument used to resolve parameter
substitution in the message patternpublic void println(int msgKind,
java.lang.String msg,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
println in interface IMonitormsgKind - The type ofmsg - The messagearg0 - The zero argument used to resolve parameter
substitution in the message patternarg1 - The one argument used to resolve parameter
substitution in the message patternarg2 - The two argument used to resolve parameter
substitution in the message patternarg3 - The three argument used to resolve parameter
substitution in the message patternarg4 - The four argument used to resolve parameter
substitution in the message patternpublic void reportError(java.lang.Object errMsg,
java.lang.Object[] details,
boolean wait)
This should only be used for severe errors in which the record session has been compromised.
reportError in interface IMonitorerrMsg - Error messagedetails - Detailed error information.<\br>
If null, there are no detailswait - Whether to wait for the message dialog to
close before returningcom.rational.test.ft.ui.jfc.MessageDoalog#show(Object[],String,int,int,String,boolean)public void start(java.lang.String script,
java.lang.String project)
start in interface com.rational.test.ft.recorder.IRecordListenerpublic void stop()
stop in interface com.rational.test.ft.recorder.IRecordListenerpublic void pause()
pause in interface com.rational.test.ft.recorder.IRecordListenerpublic void resume()
resume in interface com.rational.test.ft.recorder.IRecordListenerpublic void addMonitorListener(IMonitorListener listener)
public void removeMonitorListener(IMonitorListener listener)
public void setMonitorState(int currentState)
IMonitorsetMonitorState in interface IMonitorpublic void start(com.ibm.rational.test.ft.tools.interfaces.ICommandLineParams cliParams)
throws RationalTestException
isStopped or isPaused methods.start in interface com.rational.test.ft.recorder.IRecordRationalTestException - Thrown if an invalid file specification is passed.script - The full Java name of the script to be generated.
This name is case-sensitive and includes an optional
package name. The package name is utilised as an
implied directory structure for script persistence.project - The filesystem directory the script file should
be stored relative to. The package directory
structure is implied in the script parameter.insertBefore - The line number before which new code will be
inserted. This value is less then zero if a
placeholder marker should be used instead.isNotModel - Specifies if the recording is being done on a simplified script
or not. If false, the recording is a simplified script, if true,
recording is not simplified.public void abort()
abort in interface com.rational.test.ft.recorder.IRecordpublic boolean isStopped()
isStopped in interface com.rational.test.ft.recorder.IRecordpublic boolean isPaused()
isPaused in interface com.rational.test.ft.recorder.IRecordpublic void addRecordListener(com.rational.test.ft.recorder.IRecordListener listener)
addRecordListener in interface com.rational.test.ft.recorder.IRecordpublic void removeRecordListener(com.rational.test.ft.recorder.IRecordListener listener)
removeRecordListener in interface com.rational.test.ft.recorder.IRecordpublic void setPauseState(boolean displayPaused)