org.netbeans.modules.jellytools.platform/3 3.13

org.netbeans.jellytools
Class OutputTabOperator

java.lang.Object
  extended by org.netbeans.jemmy.operators.Operator
      extended by org.netbeans.jemmy.operators.ComponentOperator
          extended by org.netbeans.jemmy.operators.ContainerOperator
              extended by org.netbeans.jemmy.operators.JComponentOperator
                  extended by org.netbeans.jellytools.OutputTabOperator
All Implemented Interfaces:
org.netbeans.jemmy.Outputable, org.netbeans.jemmy.Timeoutable

public class OutputTabOperator
extends org.netbeans.jemmy.operators.JComponentOperator

Operator for Output tab. It resides in output top component.

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();
 

See Also:
OutputOperator

Nested Class Summary
protected static class OutputTabOperator.OutputTabSubchooser
          SubChooser to determine OutputTab component Used in findTopComponent method.
 
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.JComponentOperator
org.netbeans.jemmy.operators.JComponentOperator.JComponentByTipFinder, org.netbeans.jemmy.operators.JComponentOperator.JComponentFinder
 
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.ContainerOperator.ContainerFinder
 
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.Operator
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
 
Field Summary
 
Fields inherited from class org.netbeans.jemmy.operators.JComponentOperator
A11Y_DATA, A11Y_DESCRIPTION_DPROP, A11Y_NAME_DPROP, TOOLTIP_TEXT_DPROP
 
Fields inherited from class org.netbeans.jemmy.operators.ComponentOperator
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
 
Fields inherited from class org.netbeans.jemmy.operators.Operator
CLASS_DPROP, TO_STRING_DPROP
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class org.netbeans.jemmy.operators.JComponentOperator
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
 
Methods inherited from class org.netbeans.jemmy.operators.ContainerOperator
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
 
Methods inherited from class org.netbeans.jemmy.operators.ComponentOperator
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, 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, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabled
 
Methods inherited from class org.netbeans.jemmy.operators.Operator
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputTabOperator

public OutputTabOperator(JComponent source)
Create new instance of OutputTabOperator from given component.

Parameters:
source - JComponent source

OutputTabOperator

public OutputTabOperator(String name)
Waits for output tab with given name. It is activated by default.

Parameters:
name - name of output tab to look for

OutputTabOperator

public OutputTabOperator(String name,
                         int index)
Waits for index-th output tab with given name. It is activated by default.

Parameters:
name - name of output tab to look for
index - index of requested output tab with given name
Method Detail

btnReRun

public org.netbeans.jemmy.operators.JButtonOperator btnReRun()
Returns operator for the Re-Run button in the tool bar on the left of the tab. The button is inside the parent of the output tab, but applies (depends) to the currently active tab, so the methods are here instead of OutputOperator.

Returns:
JButtonOperator for Re-run button

btnReRunWithDifferentParameters

public 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. The button is inside the parent of the output tab, but applies (depends) to the currently active tab, so the methods are here instead of OutputOperator.

Returns:
JButtonOperator for Re-run with Different Parameters button

btnStop

public org.netbeans.jemmy.operators.JButtonOperator btnStop()
Returns operator for the Stop button in the tool bar on the left of the tab. The button is inside the parent of the output tab, but applies (depends) to the currently active tab, so the methods are here instead of OutputOperator.

Returns:
JButtonOperator for Stop button

btnAntSettings

public org.netbeans.jemmy.operators.JButtonOperator btnAntSettings()
Returns operator for the Ant Settings button in the tool bar on the left of the tab. The button is inside the parent of the output tab, but applies (depends) to the currently active tab, so the methods are here instead of OutputOperator.

Returns:
JButtonOperator for Ant Settings button

makeComponentVisible

public final void makeComponentVisible()
Activates this output tab. If this output tab is in tabbed pane, it is selected. If it is only tab in the Output top component, the Output top component is activated.

Overrides:
makeComponentVisible in class org.netbeans.jemmy.operators.ComponentOperator

getLength

public int getLength()
Returns length of written text. It is a number of written characters.

Returns:
length of already written text

findLine

public int findLine(String lineText)
Finds a line number by text.

Parameters:
lineText - String line text
Returns:
line number of specified text starting at 0; -1 if text not found

getText

public String getText()
Returns text from this output tab.

Returns:
text from this output tab.

getText

public String getText(int startLine,
                      int endLine)
Get text between startLine and endLine from this output tab. Both startLine and endLine are included.

Parameters:
startLine - first line to be included (starting at 0)
endLine - last line to be included
Returns:
text between startLine and endLine from this output tab

waitText

public void waitText(String text)
Waits for text to be displayed in this output tab.

Parameters:
text - text to wait for

getLineCount

public int getLineCount()
Returns count of filled lines of this output tab.

Returns:
count of filled lines of this output tab.

outputPaneOperator

public org.netbeans.jemmy.operators.ComponentOperator outputPaneOperator()
Returns operator for OutputPane component. All events should be dispatched to this component.

Returns:
operator for OutputPane component

getLine

public String getLine(int line)
Returns text from specified line.

Parameters:
line - line number to get text from
Returns:
text from the specified line (starting at 0)

verify

public void verify()
Performs verification by accessing all sub-components


copy

public void copy()
Performs copy action.


find

public void find()
Performs find action.


findNext

public void findNext()
Performs find next action.


nextError

public void nextError()
Performs next error action.


previousError

public void previousError()
Performs next error action.


wrapText

public void wrapText()
Performs wrap text action.


saveAs

public void saveAs()
Performs save as action.


close

public void close()
Performs close action.


clear

public void clear()
Performs clear action.


selectAll

public void selectAll()
Performs select all action.


org.netbeans.modules.jellytools.platform/3 3.13

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.