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

org.netbeans.jellytools
Class OutlineOperator

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.jemmy.operators.JTableOperator
                      extended by org.netbeans.jellytools.OutlineOperator
All Implemented Interfaces:
org.netbeans.jemmy.Outputable, org.netbeans.jemmy.Timeoutable

public class OutlineOperator
extends org.netbeans.jemmy.operators.JTableOperator

An operator to handle org.netbeans.swing.outline.Outline component used e.g. in debugger views. Warning: Do not use yet unless really neccessary!! Incomplete, under development and most probably still buggy!


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.JTableOperator
org.netbeans.jemmy.operators.JTableOperator.JTableByCellFinder, org.netbeans.jemmy.operators.JTableOperator.JTableFinder, org.netbeans.jemmy.operators.JTableOperator.TableCellChooser
 
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.JTableOperator
CELL_PREFIX_DPROP, COLUMN_COUNT_DPROP, COLUMN_PREFIX_DPROP, ROW_COUNT_DPROP, SELECTED_COLUMN_PREFIX_DPROP, SELECTED_ROW_PREFIX_DPROP
 
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
OutlineOperator(org.netbeans.jemmy.operators.ContainerOperator cont)
           
OutlineOperator(org.netbeans.jemmy.operators.ContainerOperator cont, int index)
           
OutlineOperator(Outline outline)
           
 
Method Summary
 void expandPath(TreePath irTP)
          Expands target path.
 TreePath findNextPathElement(TreePath irParentPath, String isName)
          Tries to find a child of the irParentPath which matches isName.
 TreePath findNextPathElement(TreePath irParentPath, String isName, int inIndex)
          Tries to find a child of the irParentPath which matches isName.
 TreePath findPath(String isPath)
          Tries to find a the defined path beginning from the root node.
 TreePath findPath(TreePath irParentPath, String isPath)
          Tries to find a subpath (descendant) of a parent path in the tree.
 Point getLocationForPath(TreePath irTreePath)
          Gets the location of a given TreePath in the Outline table (x for columns and y for rows) or (-1,-1) in case it was not found.
 Outline getOutline()
          Gets the Outline component the operator is working with.
protected  int getPrecedingSiblingsRowSpan(TreePath irTreePath)
          Gets the rowspan of siblings which are above irTreePath in the tree.
 OutlineNode getRootNode(String isName)
          Gets the first root node (child of the root element) of the specified name.
 OutlineNode getRootNode(String isName, int inIndex)
          Gets a root node (child of the root element) of the specified name.
 int getRowForPath(TreePath irTreePath)
          Gets the row in the Outline table for a given TreePath or -1 if the TreePath is invalid.
protected  int getRowSpanOfLastElement(TreePath irTreePath)
          Gets the total rowspan of the last element of irTreePath.
 int getTreeColumnIndex()
          Gets the current index of the tree column (column of the table which contains the tree) in the table.
protected  int getVisibleRootModifier()
          Returns modifier based on root being hidden or not.
 boolean isExpanded(TreePath irTP)
          Returns true if target path is expanded.
 void scrollToPath(TreePath irPath)
           
 void selectPath(TreePath irPath)
           
 void waitExpanded(TreePath irTP)
          Waits until the given TreePath is expanded.
 
Methods inherited from class org.netbeans.jemmy.operators.JTableOperator
addColumn, addColumnSelectionInterval, addRowSelectionInterval, callPopupOnCell, changeCellObject, changeCellText, clearSelection, clickForEdit, clickOnCell, clickOnCell, clickOnCell, clickOnCell, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, convertColumnIndexToModel, convertColumnIndexToView, copyEnvironment, createDefaultColumnsFromModel, editCellAt, editCellAt, editingCanceled, editingStopped, findCell, findCell, findCell, findCell, findCell, findCell, findCell, findCell, findCell, findCell, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellColumn, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findCellRow, findColumn, findColumn, findJTable, findJTable, findJTable, findJTable, getAutoCreateColumnsFromModel, getAutoResizeMode, getCellEditor, getCellEditor, getCellRect, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDump, getEditingColumn, getEditingRow, getEditorComponent, getGridColor, getHeaderOperator, getIntercellSpacing, getModel, getOutput, getPointToClick, getPreferredScrollableViewportSize, getRenderedComponent, getRenderedComponent, getRowCount, getRowHeight, getRowMargin, getRowSelectionAllowed, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getTableHeader, getTimeouts, getUI, getValueAt, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, prepareEditor, prepareRenderer, removeColumn, removeColumnSelectionInterval, removeEditor, removeRowSelectionInterval, rowAtPoint, scrollToCell, selectAll, selectCell, setAutoCreateColumnsFromModel, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setEditingColumn, setEditingRow, setGridColor, setIntercellSpacing, setModel, setOutput, setPreferredScrollableViewportSize, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setTableHeader, setTimeouts, setUI, setValueAt, tableChanged, valueChanged, waitCell, waitCellComponent, waitJTable, waitJTable, waitJTable, waitJTable
 
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, getInsets, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, 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, setPreferredSize, setRequestFocusEnabled, 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, 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, makeComponentVisible, 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

OutlineOperator

public OutlineOperator(org.netbeans.jemmy.operators.ContainerOperator cont)

OutlineOperator

public OutlineOperator(org.netbeans.jemmy.operators.ContainerOperator cont,
                       int index)

OutlineOperator

public OutlineOperator(Outline outline)
Method Detail

getOutline

public Outline getOutline()
Gets the Outline component the operator is working with.

Returns:
Outline component

getTreeColumnIndex

public int getTreeColumnIndex()
Gets the current index of the tree column (column of the table which contains the tree) in the table.

Returns:
index of the tree column or -1 if is not found (error)

findNextPathElement

public TreePath findNextPathElement(TreePath irParentPath,
                                    String isName,
                                    int inIndex)
Tries to find a child of the irParentPath which matches isName. The index parameter is used if we want indexth node of the same name (otherwise use 0). If it is not found a TimeoutExpiredException is thrown.

Parameters:
irParentPath - parent path in which to search
isName - name of the node to be found
inIndex - index of the node among its siblings (in case there are more of the same name)
Returns:
found path

findNextPathElement

public TreePath findNextPathElement(TreePath irParentPath,
                                    String isName)
Tries to find a child of the irParentPath which matches isName. If it is not found a TimeoutExpiredException is thrown.

Parameters:
irParentPath -
isName -
Returns:
found path

getRootNode

public OutlineNode getRootNode(String isName)
Gets the first root node (child of the root element) of the specified name.

Parameters:
isName -
Returns:

getRootNode

public OutlineNode getRootNode(String isName,
                               int inIndex)
Gets a root node (child of the root element) of the specified name. The index parameter is used if we want indexth node of the same name (otherwise use 0).

Parameters:
isName -
inIndex -
Returns:

findPath

public TreePath findPath(TreePath irParentPath,
                         String isPath)
Tries to find a subpath (descendant) of a parent path in the tree.

Parameters:
irParentPath - parent path to start the search in
isPath - node name or a list of nodes separated by "|"
Returns:
found path

findPath

public TreePath findPath(String isPath)
Tries to find a the defined path beginning from the root node.

Parameters:
isPath - node name or a list of nodes separated by "|"
Returns:
found path

waitExpanded

public void waitExpanded(TreePath irTP)
Waits until the given TreePath is expanded.

Parameters:
irTP - TreePath in question

getVisibleRootModifier

protected int getVisibleRootModifier()
Returns modifier based on root being hidden or not. When the root is hidden, all y coordinates need to be decreased by 1.

Returns:
0 or -1

getLocationForPath

public Point getLocationForPath(TreePath irTreePath)
Gets the location of a given TreePath in the Outline table (x for columns and y for rows) or (-1,-1) in case it was not found.

Parameters:
irTreePath - TreePath in question
Returns:
Location for the given path or Point(-1,-1) if it was not found.

getRowForPath

public int getRowForPath(TreePath irTreePath)
Gets the row in the Outline table for a given TreePath or -1 if the TreePath is invalid.

Parameters:
irTreePath - TreePath in question
Returns:
Row of the path or -1 if it is invalid.

getPrecedingSiblingsRowSpan

protected int getPrecedingSiblingsRowSpan(TreePath irTreePath)
Gets the rowspan of siblings which are above irTreePath in the tree. Only expanded paths are taken into account.

Parameters:
irTreePath -
Returns:

getRowSpanOfLastElement

protected int getRowSpanOfLastElement(TreePath irTreePath)
Gets the total rowspan of the last element of irTreePath.

Parameters:
irTreePath -
Returns:

selectPath

public void selectPath(TreePath irPath)

scrollToPath

public void scrollToPath(TreePath irPath)

expandPath

public void expandPath(TreePath irTP)
Expands target path.

Parameters:
irTP -

isExpanded

public boolean isExpanded(TreePath irTP)
Returns true if target path is expanded.

Parameters:
irTP -
Returns:

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

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