public class OutputTabOperator extends org.netbeans.jemmy.operators.JComponentOperator
Usage:
// find output tab with given name OutputTabOperator oto = new OutputTabOperator("compile-single"); // wait for a message appears in output oto.waitText("my message"); // get the text String wholeOutput = oto.getText(); // close this output oto.close();
OutputOperator
Modifier and Type | Class and Description |
---|---|
protected static class |
OutputTabOperator.OutputTabSubchooser
SubChooser to determine OutputTab component
Used in findTopComponent method.
|
org.netbeans.jemmy.operators.JComponentOperator.JComponentByTipFinder, org.netbeans.jemmy.operators.JComponentOperator.JComponentFinder
org.netbeans.jemmy.operators.ContainerOperator.ContainerFinder
org.netbeans.jemmy.operators.Operator.ComponentVisualizer, org.netbeans.jemmy.operators.Operator.DefaultPathParser, org.netbeans.jemmy.operators.Operator.DefaultStringComparator, org.netbeans.jemmy.operators.Operator.Finder, org.netbeans.jemmy.operators.Operator.MapAction, org.netbeans.jemmy.operators.Operator.MapBooleanAction, org.netbeans.jemmy.operators.Operator.MapByteAction, org.netbeans.jemmy.operators.Operator.MapCharacterAction, org.netbeans.jemmy.operators.Operator.MapDoubleAction, org.netbeans.jemmy.operators.Operator.MapFloatAction, org.netbeans.jemmy.operators.Operator.MapIntegerAction, org.netbeans.jemmy.operators.Operator.MapLongAction, org.netbeans.jemmy.operators.Operator.MapVoidAction, org.netbeans.jemmy.operators.Operator.NoBlockingAction, org.netbeans.jemmy.operators.Operator.PathParser, org.netbeans.jemmy.operators.Operator.StringComparator
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROP
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
OutputTabOperator(JComponent source)
Create new instance of OutputTabOperator from given component.
|
OutputTabOperator(String name)
Waits for output tab with given name.
|
OutputTabOperator(String name,
int index)
Waits for index-th output tab with given name.
|
Modifier and Type | Method and Description |
---|---|
org.netbeans.jemmy.operators.JButtonOperator |
btnAntSettings()
Returns operator for the Ant Settings button in the tool bar on the left of the tab.
|
org.netbeans.jemmy.operators.JButtonOperator |
btnReRun()
Returns operator for the Re-Run button in the tool bar on the left of the tab.
|
org.netbeans.jemmy.operators.JButtonOperator |
btnReRunWithDifferentParameters()
Returns operator for the "Re-run with Different Parameters" button
in the tool bar on the left of the tab.
|
org.netbeans.jemmy.operators.JButtonOperator |
btnStop()
Returns operator for the Stop button in the tool bar on the left of the tab.
|
void |
clear()
Performs clear action.
|
void |
close()
Performs close action.
|
void |
copy()
Performs copy action.
|
void |
find()
Performs find action.
|
int |
findLine(String lineText)
Finds a line number by text.
|
void |
findNext()
Performs find next action.
|
int |
getLength()
Returns length of written text.
|
String |
getLine(int line)
Returns text from specified line.
|
int |
getLineCount()
Returns count of filled lines of this output tab.
|
String |
getText()
Returns text from this output tab.
|
String |
getText(int startLine,
int endLine)
Get text between
startLine and endLine from this output tab. |
void |
makeComponentVisible()
Activates this output tab.
|
void |
nextError()
Performs next error action.
|
org.netbeans.jemmy.operators.ComponentOperator |
outputPaneOperator()
Returns operator for OutputPane component.
|
void |
previousError()
Performs next error action.
|
void |
saveAs()
Performs save as action.
|
void |
selectAll()
Performs select all action.
|
void |
verify()
Performs verification by accessing all sub-components
|
void |
waitText(String text)
Waits for text to be displayed in this output tab.
|
void |
wrapText()
Performs wrap text action.
|
addAncestorListener, addVetoableChangeListener, computeVisibleRect, createToolTip, findJComponent, findJComponent, findJComponent, findJComponent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getAutoscrolls, getBorder, getCenterXForClick, getCenterYForClick, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDump, getInsets, getNextFocusableComponent, getOutput, getRegisteredKeyStrokes, getRootPane, getTimeouts, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVisibleRect, getWindowContainerOperator, grabFocus, isFocusCycleRoot, isManagingFocus, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, requestDefaultFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setOutput, setPreferredSize, setRequestFocusEnabled, setTimeouts, setToolTipText, showToolTip, unregisterKeyboardAction, updateUI, waitJComponent, waitJComponent, waitJComponent, waitJComponent, waitToolTip
add, add, add, add, add, addContainerListener, createSubOperator, createSubOperator, findComponentAt, findComponentAt, findContainer, findContainer, findContainer, findContainer, findContainerUnder, findContainerUnder, findSubComponent, findSubComponent, getComponent, getComponentCount, getComponents, getInsets, getLayout, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, waitContainer, waitContainer, waitContainer, waitContainer, waitSubComponent, waitSubComponent
activateWindow, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, checkImage, checkImage, clickForPopup, clickForPopup, clickForPopup, clickForPopup, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, contains, contains, copyEnvironment, createImage, createImage, dispatchEvent, doLayout, dragMouse, dragMouse, dragMouse, dragNDrop, dragNDrop, dragNDrop, enableInputMethods, enterMouse, exitMouse, findComponent, findComponent, findComponents, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getCenterX, getCenterY, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getEventDispatcher, getFocus, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getSize, getSource, getToolkit, getTreeLock, getWidth, getWindow, getX, getY, hasFocus, imageUpdate, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, list, list, list, list, list, moveMouse, paint, paintAll, prepareImage, prepareImage, pressKey, pressKey, pressMouse, pressMouse, print, printAll, pushKey, pushKey, releaseKey, releaseKey, releaseMouse, releaseMouse, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, transferFocus, typedKey, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabled
addOperatorPackage, addToDump, addToDump, createOperator, getCharBindingMap, getCharKey, getCharModifiers, getCharsKeys, getCharsKeys, getCharsModifiers, getCharsModifiers, getComparator, getDefaultComponentVisualizer, getDefaultMouseButton, getDefaultPathParser, getDefaultStringComparator, getDefaultVerification, getEnvironmentOperator, getParentPath, getParentPath, getPathParser, getPopupMouseButton, getProperties, getQueueTool, getVerification, getVisualizer, isCaptionEqual, isCaptionEqual, isCaptionEqual, lockQueue, parseString, parseString, printDump, produceNoBlocking, produceNoBlocking, produceTimeRestricted, produceTimeRestricted, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, setCharBindingMap, setComparator, setDefaultComponentVisualizer, setDefaultPathParser, setDefaultStringComparator, setDefaultVerification, setPathParser, setProperties, setVerification, setVisualizer, toStringSource, unlockAndThrow, unlockQueue, waitState
public OutputTabOperator(JComponent source)
source
- JComponent sourcepublic OutputTabOperator(String name)
name
- name of output tab to look forpublic OutputTabOperator(String name, int index)
name
- name of output tab to look forindex
- index of requested output tab with given namepublic org.netbeans.jemmy.operators.JButtonOperator btnReRun()
public org.netbeans.jemmy.operators.JButtonOperator btnReRunWithDifferentParameters()
public org.netbeans.jemmy.operators.JButtonOperator btnStop()
public org.netbeans.jemmy.operators.JButtonOperator btnAntSettings()
public final void makeComponentVisible()
makeComponentVisible
in class org.netbeans.jemmy.operators.ComponentOperator
public int getLength()
public int findLine(String lineText)
lineText
- String line textpublic String getText()
public String getText(int startLine, int endLine)
startLine
and endLine
from this output tab.
Both startLine
and endLine
are included.startLine
- first line to be included (starting at 0)endLine
- last line to be includedstartLine
and endLine
from this output tabpublic void waitText(String text)
text
- text to wait forpublic int getLineCount()
public org.netbeans.jemmy.operators.ComponentOperator outputPaneOperator()
public String getLine(int line)
line
- line number to get text frompublic void verify()
public void copy()
public void find()
public void findNext()
public void nextError()
public void previousError()
public void wrapText()
public void saveAs()
public void close()
public void clear()
public void selectAll()