Package org.netbeans.jemmy.operators
Class JTableOperator
- java.lang.Object
-
- org.netbeans.jemmy.operators.Operator
-
- org.netbeans.jemmy.operators.ComponentOperator
-
- org.netbeans.jemmy.operators.ContainerOperator
-
- org.netbeans.jemmy.operators.JComponentOperator
-
- org.netbeans.jemmy.operators.JTableOperator
-
- All Implemented Interfaces:
Outputable,Timeoutable
public class JTableOperator extends JComponentOperator implements Outputable, Timeoutable
Timeouts used:
JTableOperator.WaitEditingTimeout - time to wait cell editing
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitStateTimeout - time to wait for cell contents
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to chenge caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
Timeouts
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJTableOperator.JTableByCellFinderAllows to find component by cell text.static classJTableOperator.JTableFinderChecks component type.static interfaceJTableOperator.TableCellChooserIterface to choose table cell.-
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.JComponentOperator
JComponentOperator.JComponentByTipFinder, JComponentOperator.JComponentFinder
-
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.ContainerOperator
ContainerOperator.ContainerFinder
-
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.Operator
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCELL_PREFIX_DPROPIdentifier for a "cell" property.static java.lang.StringCOLUMN_COUNT_DPROPIdentifier for a "column count" property.static java.lang.StringCOLUMN_PREFIX_DPROPIdentifier for a "column" property.static java.lang.StringROW_COUNT_DPROPIdentifier for a "row count" property.static java.lang.StringSELECTED_COLUMN_PREFIX_DPROPIdentifier for a "selected column" property.static java.lang.StringSELECTED_ROW_PREFIX_DPROPIdentifier for a "selected row" property.-
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
Constructors Constructor Description JTableOperator(javax.swing.JTable b)Constructor.JTableOperator(ContainerOperator cont)Constructor.JTableOperator(ContainerOperator cont, int index)Constructor.JTableOperator(ContainerOperator cont, java.lang.String text)Constructor.JTableOperator(ContainerOperator cont, java.lang.String text, int index)Constructor.JTableOperator(ContainerOperator cont, java.lang.String text, int row, int column)Constructor.JTableOperator(ContainerOperator cont, java.lang.String text, int row, int column, int index)Constructor.JTableOperator(ContainerOperator cont, ComponentChooser chooser)Constructs a JTableOperator object.JTableOperator(ContainerOperator cont, ComponentChooser chooser, int index)Constructs a JTableOperator object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddColumn(javax.swing.table.TableColumn tableColumn)MapsJTable.addColumn(TableColumn)through queuevoidaddColumnSelectionInterval(int i, int i1)MapsJTable.addColumnSelectionInterval(int, int)through queuevoidaddRowSelectionInterval(int i, int i1)MapsJTable.addRowSelectionInterval(int, int)through queuejavax.swing.JPopupMenucallPopupOnCell(int row, int column)Calls popup menu on specified cell.voidchangeCellObject(int row, int column, java.lang.Object newValue)Changes value of the cell pointed by row and column indexes.voidchangeCellText(int row, int column, java.lang.String newText)Deprecated.Use changeCellObject(int, int, Object) instead.voidclearSelection()MapsJTable.clearSelection()through queuevoidclickForEdit(int row, int column)Double clicks on cell to turns it to the editing mode.voidclickOnCell(int row, int column)Does single mouse click on the cell.voidclickOnCell(int row, int column, int clickCount)Does mouse click on the cell by default mouse button with no modifiers.voidclickOnCell(int row, int column, int clickCount, int button)Does mouse click on the cell with no modifiers.voidclickOnCell(int row, int column, int clickCount, int button, int modifiers)Does mouse click on the cell.voidcolumnAdded(javax.swing.event.TableColumnModelEvent tableColumnModelEvent)MapsJTable.columnAdded(TableColumnModelEvent)through queueintcolumnAtPoint(java.awt.Point point)MapsJTable.columnAtPoint(Point)through queuevoidcolumnMarginChanged(javax.swing.event.ChangeEvent changeEvent)MapsJTable.columnMarginChanged(ChangeEvent)through queuevoidcolumnMoved(javax.swing.event.TableColumnModelEvent tableColumnModelEvent)MapsJTable.columnMoved(TableColumnModelEvent)through queuevoidcolumnRemoved(javax.swing.event.TableColumnModelEvent tableColumnModelEvent)MapsJTable.columnRemoved(TableColumnModelEvent)through queuevoidcolumnSelectionChanged(javax.swing.event.ListSelectionEvent listSelectionEvent)MapsJTable.columnSelectionChanged(ListSelectionEvent)through queueintconvertColumnIndexToModel(int i)MapsJTable.convertColumnIndexToModel(int)through queueintconvertColumnIndexToView(int i)MapsJTable.convertColumnIndexToView(int)through queuevoidcopyEnvironment(Operator anotherOperator)Copies all environment (output, timeouts, visualizer) from another operator.voidcreateDefaultColumnsFromModel()MapsJTable.createDefaultColumnsFromModel()through queuebooleaneditCellAt(int i, int i1)MapsJTable.editCellAt(int, int)through queuebooleaneditCellAt(int i, int i1, java.util.EventObject eventObject)MapsJTable.editCellAt(int, int, EventObject)through queuevoideditingCanceled(javax.swing.event.ChangeEvent changeEvent)MapsJTable.editingCanceled(ChangeEvent)through queuevoideditingStopped(javax.swing.event.ChangeEvent changeEvent)MapsJTable.editingStopped(ChangeEvent)through queuejava.awt.PointfindCell(java.lang.String text, int index)Searches cell coordinates.java.awt.PointfindCell(java.lang.String text, int[] rows, int[] columns, int index)Searches cell coordinates in the specified rows and columns.java.awt.PointfindCell(java.lang.String text, Operator.StringComparator comparator, int index)Searches cell coordinates.java.awt.PointfindCell(java.lang.String text, Operator.StringComparator comparator, int[] rows, int[] columns, int index)Searches cell coordinates in the specified rows and columns.java.awt.PointfindCell(ComponentChooser chooser)Searches cell coordinates.java.awt.PointfindCell(ComponentChooser chooser, int index)Searches cell coordinates.java.awt.PointfindCell(ComponentChooser chooser, int[] rows, int[] columns, int index)Searches cell coordinates.java.awt.PointfindCell(JTableOperator.TableCellChooser chooser)Searches cell coordinates.java.awt.PointfindCell(JTableOperator.TableCellChooser chooser, int index)Searches cell coordinates.java.awt.PointfindCell(JTableOperator.TableCellChooser chooser, int[] rows, int[] columns, int index)Searches cell coordinates in the specified rows and columns.intfindCellColumn(java.lang.String text)Searches first cell column by cell text.intfindCellColumn(java.lang.String text, boolean ce, boolean ccs)Deprecated.Use findCellColumn(String) or findCellColumn(String, StringComparator)intfindCellColumn(java.lang.String text, boolean ce, boolean ccs, int index)Deprecated.Use findCellColumn(String, int) or findCellColumn(String, StringComparator, int)intfindCellColumn(java.lang.String text, int index)Searches cell column by cell text.intfindCellColumn(java.lang.String text, int row, int index)Searches cell column index.intfindCellColumn(java.lang.String text, Operator.StringComparator comparator)Searches cell column visible index.intfindCellColumn(java.lang.String text, Operator.StringComparator comparator, int index)Searches cell column visible index.intfindCellColumn(java.lang.String text, Operator.StringComparator comparator, int row, int index)Searches cell column index.intfindCellColumn(ComponentChooser chooser)Searches cell column by rendered component.intfindCellColumn(ComponentChooser chooser, int index)Searches cell column by rendered component.intfindCellColumn(ComponentChooser chooser, int row, int index)Searches cell column index.intfindCellColumn(JTableOperator.TableCellChooser chooser)Searches cell column by TableCellChooser.intfindCellColumn(JTableOperator.TableCellChooser chooser, int index)Searches cell column by TableCellChooser.intfindCellColumn(JTableOperator.TableCellChooser chooser, int row, int index)Searches cell column index.intfindCellRow(java.lang.String text)Searches first cell row by cell text.intfindCellRow(java.lang.String text, boolean ce, boolean ccs)Deprecated.Use findCellRow(String) or findCellRow(String, StringComparator)intfindCellRow(java.lang.String text, boolean ce, boolean ccs, int index)Deprecated.Use findCellRow(String, int) or findCellRow(String, StringComparator, int)intfindCellRow(java.lang.String text, int index)Searches cell row by cell text.intfindCellRow(java.lang.String text, int column, int index)Searches cell row index.intfindCellRow(java.lang.String text, Operator.StringComparator comparator)Searches cell row index.intfindCellRow(java.lang.String text, Operator.StringComparator comparator, int index)Searches cell row index.intfindCellRow(java.lang.String text, Operator.StringComparator comparator, int column, int index)Searches cell row index.intfindCellRow(ComponentChooser chooser)Searches cell row by rendered component.intfindCellRow(ComponentChooser chooser, int index)Searches cell row by rendered component.intfindCellRow(ComponentChooser chooser, int column, int index)Searches cell row index.intfindCellRow(JTableOperator.TableCellChooser chooser)Searches cell row by TableCellChooser.intfindCellRow(JTableOperator.TableCellChooser chooser, int index)Searches cell row by TableCellChooser.intfindCellRow(JTableOperator.TableCellChooser chooser, int column, int index)Searches cell row index.intfindColumn(java.lang.String name)Searches a column by name.intfindColumn(java.lang.String name, Operator.StringComparator comparator)Searches a column by name.static javax.swing.JTablefindJTable(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int row, int column)Searches JTable by cell.static javax.swing.JTablefindJTable(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int row, int column, int index)Searches JTable by cell.static javax.swing.JTablefindJTable(java.awt.Container cont, ComponentChooser chooser)Searches 0'th JTable in container.static javax.swing.JTablefindJTable(java.awt.Container cont, ComponentChooser chooser, int index)Searches JTable in container.booleangetAutoCreateColumnsFromModel()MapsJTable.getAutoCreateColumnsFromModel()through queueintgetAutoResizeMode()MapsJTable.getAutoResizeMode()through queuejavax.swing.table.TableCellEditorgetCellEditor()MapsJTable.getCellEditor()through queuejavax.swing.table.TableCellEditorgetCellEditor(int i, int i1)MapsJTable.getCellEditor(int, int)through queuejava.awt.RectanglegetCellRect(int i, int i1, boolean b)MapsJTable.getCellRect(int, int, boolean)through queuejavax.swing.table.TableCellRenderergetCellRenderer(int i, int i1)MapsJTable.getCellRenderer(int, int)through queuebooleangetCellSelectionEnabled()MapsJTable.getCellSelectionEnabled()through queuejavax.swing.table.TableColumngetColumn(java.lang.Object object)MapsJTable.getColumn(Object)through queuejava.lang.ClassgetColumnClass(int i)MapsJTable.getColumnClass(int)through queueintgetColumnCount()MapsJTable.getColumnCount()through queuejavax.swing.table.TableColumnModelgetColumnModel()MapsJTable.getColumnModel()through queuejava.lang.StringgetColumnName(int i)MapsJTable.getColumnName(int)through queuebooleangetColumnSelectionAllowed()MapsJTable.getColumnSelectionAllowed()through queuejavax.swing.table.TableCellEditorgetDefaultEditor(java.lang.Class clss)MapsJTable.getDefaultEditor(Class)through queuejavax.swing.table.TableCellRenderergetDefaultRenderer(java.lang.Class clss)MapsJTable.getDefaultRenderer(Class)through queuejava.util.HashtablegetDump()Returns information about component.intgetEditingColumn()MapsJTable.getEditingColumn()through queueintgetEditingRow()MapsJTable.getEditingRow()through queuejava.awt.ComponentgetEditorComponent()MapsJTable.getEditorComponent()through queuejava.awt.ColorgetGridColor()MapsJTable.getGridColor()through queueJTableHeaderOperatorgetHeaderOperator()Creates an operator for a teble header assigned to this table.java.awt.DimensiongetIntercellSpacing()MapsJTable.getIntercellSpacing()through queuejavax.swing.table.TableModelgetModel()MapsJTable.getModel()through queueTestOutgetOutput()Returns print output streams or writers.java.awt.PointgetPointToClick(int row, int column)Returns a point at the center of the cell rectangle.java.awt.DimensiongetPreferredScrollableViewportSize()MapsJTable.getPreferredScrollableViewportSize()through queuejava.awt.ComponentgetRenderedComponent(int row, int column)Ask renderer for component to be displayed.java.awt.ComponentgetRenderedComponent(int row, int column, boolean isSelected, boolean cellHasFocus)Ask renderer for component to be displayed.intgetRowCount()MapsJTable.getRowCount()through queueintgetRowHeight()MapsJTable.getRowHeight()through queueintgetRowMargin()MapsJTable.getRowMargin()through queuebooleangetRowSelectionAllowed()MapsJTable.getRowSelectionAllowed()through queueintgetScrollableBlockIncrement(java.awt.Rectangle rectangle, int i, int i1)MapsJTable.getScrollableBlockIncrement(Rectangle, int, int)through queuebooleangetScrollableTracksViewportHeight()MapsJTable.getScrollableTracksViewportHeight()through queuebooleangetScrollableTracksViewportWidth()MapsJTable.getScrollableTracksViewportWidth()through queueintgetScrollableUnitIncrement(java.awt.Rectangle rectangle, int i, int i1)MapsJTable.getScrollableUnitIncrement(Rectangle, int, int)through queueintgetSelectedColumn()MapsJTable.getSelectedColumn()through queueintgetSelectedColumnCount()MapsJTable.getSelectedColumnCount()through queueint[]getSelectedColumns()MapsJTable.getSelectedColumns()through queueintgetSelectedRow()MapsJTable.getSelectedRow()through queueintgetSelectedRowCount()MapsJTable.getSelectedRowCount()through queueint[]getSelectedRows()MapsJTable.getSelectedRows()through queuejava.awt.ColorgetSelectionBackground()MapsJTable.getSelectionBackground()through queuejava.awt.ColorgetSelectionForeground()MapsJTable.getSelectionForeground()through queuejavax.swing.ListSelectionModelgetSelectionModel()MapsJTable.getSelectionModel()through queuebooleangetShowHorizontalLines()MapsJTable.getShowHorizontalLines()through queuebooleangetShowVerticalLines()MapsJTable.getShowVerticalLines()through queuejavax.swing.table.JTableHeadergetTableHeader()MapsJTable.getTableHeader()through queueTimeoutsgetTimeouts()Return current timeouts.javax.swing.plaf.TableUIgetUI()MapsJTable.getUI()through queuejava.lang.ObjectgetValueAt(int i, int i1)MapsJTable.getValueAt(int, int)through queuebooleanisCellEditable(int i, int i1)MapsJTable.isCellEditable(int, int)through queuebooleanisCellSelected(int i, int i1)MapsJTable.isCellSelected(int, int)through queuebooleanisColumnSelected(int i)MapsJTable.isColumnSelected(int)through queuebooleanisEditing()MapsJTable.isEditing()through queuebooleanisRowSelected(int i)MapsJTable.isRowSelected(int)through queuevoidmoveColumn(int i, int i1)MapsJTable.moveColumn(int, int)through queuejava.awt.ComponentprepareEditor(javax.swing.table.TableCellEditor tableCellEditor, int i, int i1)MapsJTable.prepareEditor(TableCellEditor, int, int)through queuejava.awt.ComponentprepareRenderer(javax.swing.table.TableCellRenderer tableCellRenderer, int i, int i1)MapsJTable.prepareRenderer(TableCellRenderer, int, int)through queuevoidremoveColumn(javax.swing.table.TableColumn tableColumn)MapsJTable.removeColumn(TableColumn)through queuevoidremoveColumnSelectionInterval(int i, int i1)MapsJTable.removeColumnSelectionInterval(int, int)through queuevoidremoveEditor()MapsJTable.removeEditor()through queuevoidremoveRowSelectionInterval(int i, int i1)MapsJTable.removeRowSelectionInterval(int, int)through queueintrowAtPoint(java.awt.Point point)MapsJTable.rowAtPoint(Point)through queuevoidscrollToCell(int row, int column)Scrolls to a cell if the table lies on a JScrollPane component.voidselectAll()MapsJTable.selectAll()through queuevoidselectCell(int row, int column)Selects a specified cell.voidsetAutoCreateColumnsFromModel(boolean b)MapsJTable.setAutoCreateColumnsFromModel(boolean)through queuevoidsetAutoResizeMode(int i)MapsJTable.setAutoResizeMode(int)through queuevoidsetCellEditor(javax.swing.table.TableCellEditor tableCellEditor)MapsJTable.setCellEditor(TableCellEditor)through queuevoidsetCellSelectionEnabled(boolean b)MapsJTable.setCellSelectionEnabled(boolean)through queuevoidsetColumnModel(javax.swing.table.TableColumnModel tableColumnModel)MapsJTable.setColumnModel(TableColumnModel)through queuevoidsetColumnSelectionAllowed(boolean b)MapsJTable.setColumnSelectionAllowed(boolean)through queuevoidsetColumnSelectionInterval(int i, int i1)MapsJTable.setColumnSelectionInterval(int, int)through queuevoidsetDefaultEditor(java.lang.Class clss, javax.swing.table.TableCellEditor tableCellEditor)MapsJTable.setDefaultEditor(Class, TableCellEditor)through queuevoidsetDefaultRenderer(java.lang.Class clss, javax.swing.table.TableCellRenderer tableCellRenderer)MapsJTable.setDefaultRenderer(Class, TableCellRenderer)through queuevoidsetEditingColumn(int i)MapsJTable.setEditingColumn(int)through queuevoidsetEditingRow(int i)MapsJTable.setEditingRow(int)through queuevoidsetGridColor(java.awt.Color color)MapsJTable.setGridColor(Color)through queuevoidsetIntercellSpacing(java.awt.Dimension dimension)MapsJTable.setIntercellSpacing(Dimension)through queuevoidsetModel(javax.swing.table.TableModel tableModel)MapsJTable.setModel(TableModel)through queuevoidsetOutput(TestOut out)Defines print output streams or writers.voidsetPreferredScrollableViewportSize(java.awt.Dimension dimension)MapsJTable.setPreferredScrollableViewportSize(Dimension)through queuevoidsetRowHeight(int i)MapsJTable.setRowHeight(int)through queuevoidsetRowMargin(int i)MapsJTable.setRowMargin(int)through queuevoidsetRowSelectionAllowed(boolean b)MapsJTable.setRowSelectionAllowed(boolean)through queuevoidsetRowSelectionInterval(int i, int i1)MapsJTable.setRowSelectionInterval(int, int)through queuevoidsetSelectionBackground(java.awt.Color color)MapsJTable.setSelectionBackground(Color)through queuevoidsetSelectionForeground(java.awt.Color color)MapsJTable.setSelectionForeground(Color)through queuevoidsetSelectionMode(int i)MapsJTable.setSelectionMode(int)through queuevoidsetSelectionModel(javax.swing.ListSelectionModel listSelectionModel)MapsJTable.setSelectionModel(ListSelectionModel)through queuevoidsetShowGrid(boolean b)MapsJTable.setShowGrid(boolean)through queuevoidsetShowHorizontalLines(boolean b)MapsJTable.setShowHorizontalLines(boolean)through queuevoidsetShowVerticalLines(boolean b)MapsJTable.setShowVerticalLines(boolean)through queuevoidsetTableHeader(javax.swing.table.JTableHeader jTableHeader)MapsJTable.setTableHeader(JTableHeader)through queuevoidsetTimeouts(Timeouts times)Defines current timeouts.voidsetUI(javax.swing.plaf.TableUI tableUI)MapsJTable.setUI(TableUI)through queuevoidsetValueAt(java.lang.Object object, int i, int i1)MapsJTable.setValueAt(Object, int, int)through queuevoidtableChanged(javax.swing.event.TableModelEvent tableModelEvent)MapsJTable.tableChanged(TableModelEvent)through queuevoidvalueChanged(javax.swing.event.ListSelectionEvent listSelectionEvent)MapsJTable.valueChanged(ListSelectionEvent)through queuevoidwaitCell(java.lang.String cellText, int row, int column)Waits for certain cell contents.java.awt.ComponentwaitCellComponent(ComponentChooser chooser, int row, int column)Waits for an editor.static javax.swing.JTablewaitJTable(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int row, int column)Waits JTable by cell.static javax.swing.JTablewaitJTable(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int row, int column, int index)Waits JTable by cell.static javax.swing.JTablewaitJTable(java.awt.Container cont, ComponentChooser chooser)Waits 0'th JTable in container.static javax.swing.JTablewaitJTable(java.awt.Container cont, ComponentChooser chooser, int index)Waits JTable in container.-
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
-
-
-
-
Field Detail
-
CELL_PREFIX_DPROP
public static final java.lang.String CELL_PREFIX_DPROP
Identifier for a "cell" property.- See Also:
getDump(), Constant Field Values
-
COLUMN_PREFIX_DPROP
public static final java.lang.String COLUMN_PREFIX_DPROP
Identifier for a "column" property.- See Also:
getDump(), Constant Field Values
-
SELECTED_COLUMN_PREFIX_DPROP
public static final java.lang.String SELECTED_COLUMN_PREFIX_DPROP
Identifier for a "selected column" property.- See Also:
getDump(), Constant Field Values
-
SELECTED_ROW_PREFIX_DPROP
public static final java.lang.String SELECTED_ROW_PREFIX_DPROP
Identifier for a "selected row" property.- See Also:
getDump(), Constant Field Values
-
COLUMN_COUNT_DPROP
public static final java.lang.String COLUMN_COUNT_DPROP
Identifier for a "column count" property.- See Also:
getDump(), Constant Field Values
-
ROW_COUNT_DPROP
public static final java.lang.String ROW_COUNT_DPROP
Identifier for a "row count" property.- See Also:
getDump(), Constant Field Values
-
-
Constructor Detail
-
JTableOperator
public JTableOperator(javax.swing.JTable b)
Constructor.- Parameters:
b- a component
-
JTableOperator
public JTableOperator(ContainerOperator cont, ComponentChooser chooser, int index)
Constructs a JTableOperator object.- Parameters:
cont- a containerchooser- a component chooser specifying searching criteria.index- an index between appropriate ones.
-
JTableOperator
public JTableOperator(ContainerOperator cont, ComponentChooser chooser)
Constructs a JTableOperator object.- Parameters:
cont- a containerchooser- a component chooser specifying searching criteria.
-
JTableOperator
public JTableOperator(ContainerOperator cont, java.lang.String text, int row, int column, int index)
Constructor. Waits by cell text first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containertext- Text of a cell which is currently selected.row- a cell row to check.column- a cell row to check.index- Ordinal component index.- Throws:
TimeoutExpiredException- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
JTableOperator
public JTableOperator(ContainerOperator cont, java.lang.String text, int row, int column)
Constructor. Waits by cell text first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containertext- Text of a cell which is currently selected.row- a cell row to check.column- a cell row to check.- Throws:
TimeoutExpiredException- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
JTableOperator
public JTableOperator(ContainerOperator cont, java.lang.String text, int index)
Constructor. Waits by text in selected cell first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containertext- Text of a cell which is currently selected.index- Ordinal component index.- Throws:
TimeoutExpiredException- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
JTableOperator
public JTableOperator(ContainerOperator cont, java.lang.String text)
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containertext- Text of a cell which is currently selected.- Throws:
TimeoutExpiredException- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
JTableOperator
public JTableOperator(ContainerOperator cont, int index)
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a containerindex- Ordinal component index.- Throws:
TimeoutExpiredException
-
JTableOperator
public JTableOperator(ContainerOperator cont)
Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- a container- Throws:
TimeoutExpiredException
-
-
Method Detail
-
findJTable
public static javax.swing.JTable findJTable(java.awt.Container cont, ComponentChooser chooser, int index)Searches JTable in container.- Parameters:
cont- Container to search component in.chooser- org.netbeans.jemmy.ComponentChooser implementation.index- Ordinal component index.- Returns:
- JTable instance or null if component was not found.
-
findJTable
public static javax.swing.JTable findJTable(java.awt.Container cont, ComponentChooser chooser)Searches 0'th JTable in container.- Parameters:
cont- Container to search component in.chooser- org.netbeans.jemmy.ComponentChooser implementation.- Returns:
- JTable instance or null if component was not found.
-
findJTable
public static javax.swing.JTable findJTable(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int row, int column, int index)Searches JTable by cell.- Parameters:
cont- Container to search component in.text- Item text. If null, contents is not checked.ce- Compare text exactly.ccs- Compare text case sensitively.row- Index of row to compare text. If -1, selected row is checked.column- Index of column to compare text. If -1, selected column is checked.index- Ordinal component index.- Returns:
- JTable instance or null if component was not found.
- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
findJTable
public static javax.swing.JTable findJTable(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int row, int column)Searches JTable by cell.- Parameters:
cont- Container to search component in.text- Item text. If null, contents is not checked.ce- Compare text exactly.ccs- Compare text case sensitively.row- Index of row to compare text. If -1, selected row is checked.column- Index of column to compare text. If -1, selected column is checked.- Returns:
- JTable instance or null if component was not found.
- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
waitJTable
public static javax.swing.JTable waitJTable(java.awt.Container cont, ComponentChooser chooser, int index)Waits JTable in container.- Parameters:
cont- Container to search component in.chooser- org.netbeans.jemmy.ComponentChooser implementation.index- Ordinal component index.- Returns:
- JTable instance or null if component was not found.
- Throws:
TimeoutExpiredException
-
waitJTable
public static javax.swing.JTable waitJTable(java.awt.Container cont, ComponentChooser chooser)Waits 0'th JTable in container.- Parameters:
cont- Container to search component in.chooser- org.netbeans.jemmy.ComponentChooser implementation.- Returns:
- JTable instance or null if component was not found.
- Throws:
TimeoutExpiredException
-
waitJTable
public static javax.swing.JTable waitJTable(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int row, int column, int index)Waits JTable by cell.- Parameters:
cont- Container to search component in.text- Item text. If null, contents is not checked.ce- Compare text exactly.ccs- Compare text case sensitively.row- Index of row to compare text. If -1, selected row is checked.column- Index of column to compare text. If -1, selected column is checked.index- Ordinal component index.- Returns:
- JTable instance or null if component was not found.
- Throws:
TimeoutExpiredException- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
waitJTable
public static javax.swing.JTable waitJTable(java.awt.Container cont, java.lang.String text, boolean ce, boolean ccs, int row, int column)Waits JTable by cell.- Parameters:
cont- Container to search component in.text- Item text. If null, contents is not checked.ce- Compare text exactly.ccs- Compare text case sensitively.row- Index of row to compare text. If -1, selected row is checked.column- Index of column to compare text. If -1, selected column is checked.- Returns:
- JTable instance or null if component was not found.
- Throws:
TimeoutExpiredException- See Also:
Operator.isCaptionEqual(String, String, boolean, boolean)
-
setTimeouts
public void setTimeouts(Timeouts times)
Description copied from interface:TimeoutableDefines current timeouts.- Specified by:
setTimeoutsin interfaceTimeoutable- Overrides:
setTimeoutsin classJComponentOperator- Parameters:
times- A collection of timeout assignments.- See Also:
Timeoutable.getTimeouts()
-
getTimeouts
public Timeouts getTimeouts()
Description copied from interface:TimeoutableReturn current timeouts.- Specified by:
getTimeoutsin interfaceTimeoutable- Overrides:
getTimeoutsin classJComponentOperator- Returns:
- the collection of current timeout assignments.
- See Also:
Timeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)
-
setOutput
public void setOutput(TestOut out)
Description copied from interface:OutputableDefines print output streams or writers.- Specified by:
setOutputin interfaceOutputable- Overrides:
setOutputin classJComponentOperator- Parameters:
out- Identify the streams or writers used for print output.- See Also:
Outputable.getOutput()
-
getOutput
public TestOut getOutput()
Description copied from interface:OutputableReturns print output streams or writers.- Specified by:
getOutputin interfaceOutputable- Overrides:
getOutputin classJComponentOperator- Returns:
- an object that contains references to objects for printing to output and err streams.
- See Also:
Outputable.setOutput(org.netbeans.jemmy.TestOut)
-
copyEnvironment
public void copyEnvironment(Operator anotherOperator)
Description copied from class:OperatorCopies all environment (output, timeouts, visualizer) from another operator.- Overrides:
copyEnvironmentin classComponentOperator- Parameters:
anotherOperator- an operator to copy the environment to.
-
findCell
public java.awt.Point findCell(java.lang.String text, Operator.StringComparator comparator, int index)Searches cell coordinates.- Parameters:
text- a text patterncomparator- a string comparision algorithmindex- an ordinal cell index- Returns:
- Point indicating coordinates (x - column, y - row)
-
findCell
public java.awt.Point findCell(java.lang.String text, Operator.StringComparator comparator, int[] rows, int[] columns, int index)Searches cell coordinates in the specified rows and columns.- Parameters:
text- a text patterncomparator- a string comparision algorithmrows- rows to search incolumns- columns to search inindex- an ordinal cell index- Returns:
- Point indicating coordinates (x - column, y - row)
-
findCellRow
public int findCellRow(java.lang.String text, Operator.StringComparator comparator, int index)Searches cell row index.- Parameters:
text- a text patterncomparator- a string comparision algorithmindex- an ordinal cell index- Returns:
- a row index.
-
findCellRow
public int findCellRow(java.lang.String text, Operator.StringComparator comparator, int column, int index)Searches cell row index. Searching is performed between cells in one column.- Parameters:
text- a text patterncomparator- a string comparision algorithmcolumn- a column index to search inindex- an ordinal cell index- Returns:
- a row index.
-
findCellColumn
public int findCellColumn(java.lang.String text, Operator.StringComparator comparator, int index)Searches cell column visible index.- Parameters:
text- a text patterncomparator- a string comparision algorithmindex- an ordinal cell index- Returns:
- a column index.
-
findCellColumn
public int findCellColumn(java.lang.String text, Operator.StringComparator comparator, int row, int index)Searches cell column index. Searching is performed between cells in one row.- Parameters:
text- a text patterncomparator- a string comparision algorithmrow- a row index to search inindex- an ordinal cell index- Returns:
- a column index.
-
findCellRow
public int findCellRow(java.lang.String text, boolean ce, boolean ccs, int index)Deprecated.Use findCellRow(String, int) or findCellRow(String, StringComparator, int)Searches cell row by cell text.- Parameters:
text- Text to search by.ce- Compare exactly.ccs- Compare case sensitively.index- Ordinal index in suitable cells.- Returns:
- a row index.
- See Also:
findCellRow(String, int)
-
findCellColumn
public int findCellColumn(java.lang.String text, boolean ce, boolean ccs, int index)Deprecated.Use findCellColumn(String, int) or findCellColumn(String, StringComparator, int)Searches cell column by cell text.- Parameters:
text- Text to search by.ce- Compare exactly.ccs- Compare case sensitively.index- Ordinal index in suitable cells.- Returns:
- a column index.
- See Also:
findCellColumn(String, int)
-
findCellRow
public int findCellRow(java.lang.String text, boolean ce, boolean ccs)Deprecated.Use findCellRow(String) or findCellRow(String, StringComparator)Searches first cell row by cell text.- Parameters:
text- Text to search by.ce- Compare exactly.ccs- Compare case sensitively.- Returns:
- a row index.
- See Also:
findCellRow(String)
-
findCellColumn
public int findCellColumn(java.lang.String text, boolean ce, boolean ccs)Deprecated.Use findCellColumn(String) or findCellColumn(String, StringComparator)Searches first cell column by cell text.- Parameters:
text- Text to search by.ce- Compare exactly.ccs- Compare case sensitively.- Returns:
- a column index.
- See Also:
findCellColumn(String)
-
findCellRow
public int findCellRow(java.lang.String text, Operator.StringComparator comparator)Searches cell row index.- Parameters:
text- a text patterncomparator- a string comparision algorithm- Returns:
- a row index.
-
findCellColumn
public int findCellColumn(java.lang.String text, Operator.StringComparator comparator)Searches cell column visible index.- Parameters:
text- a text patterncomparator- a string comparision algorithm- Returns:
- a column index.
-
findCellRow
public int findCellRow(java.lang.String text, int index)Searches cell row by cell text.- Parameters:
text- Text to search by.index- Ordinal index in suitable cells.- Returns:
- a row index.
-
findCellRow
public int findCellRow(java.lang.String text, int column, int index)Searches cell row index. Searching is performed between cells in one column.- Parameters:
text- a text patterncolumn- a column index to search inindex- Ordinal index in suitable cells.- Returns:
- a row index.
-
findCellColumn
public int findCellColumn(java.lang.String text, int index)Searches cell column by cell text.- Parameters:
text- Text to search by.index- Ordinal index in suitable cells.- Returns:
- a column index.
-
findCellColumn
public int findCellColumn(java.lang.String text, int row, int index)Searches cell column index. Searching is performed between cells in one row.- Parameters:
text- a text patternrow- a row index to search inindex- Ordinal index in suitable cells.- Returns:
- a column index.
-
findCell
public java.awt.Point findCell(java.lang.String text, int index)Searches cell coordinates.- Parameters:
text- a text patternindex- an ordinal cell index- Returns:
- Point indicating coordinates (x - column, y - row)
-
findCell
public java.awt.Point findCell(java.lang.String text, int[] rows, int[] columns, int index)Searches cell coordinates in the specified rows and columns.- Parameters:
text- a text patternrows- rows to search incolumns- columns to search inindex- an ordinal cell index- Returns:
- Point indicating coordinates (x - column, y - row)
-
findCellRow
public int findCellRow(java.lang.String text)
Searches first cell row by cell text.- Parameters:
text- Text to search by.- Returns:
- a row index.
-
findCellColumn
public int findCellColumn(java.lang.String text)
Searches first cell column by cell text.- Parameters:
text- Text to search by.- Returns:
- a column index.
-
findCellRow
public int findCellRow(ComponentChooser chooser, int index)
Searches cell row by rendered component.- Parameters:
chooser- Component verifying object.index- Ordinal index in suitable cells.- Returns:
- a row index.
-
findCellRow
public int findCellRow(ComponentChooser chooser, int column, int index)
Searches cell row index. Searching is performed between cells in one column.- Parameters:
chooser- Component verifying object.column- a column index to search inindex- Ordinal index in suitable cells.- Returns:
- a row index.
-
findCellColumn
public int findCellColumn(ComponentChooser chooser, int index)
Searches cell column by rendered component.- Parameters:
chooser- Component verifying object.index- Ordinal index in suitable cells.- Returns:
- a column index.
-
findCellColumn
public int findCellColumn(ComponentChooser chooser, int row, int index)
Searches cell column index. Searching is performed between cells in one row.- Parameters:
chooser- Component verifying object.row- a row index to search inindex- Ordinal index in suitable cells.- Returns:
- a column index.
-
findCell
public java.awt.Point findCell(ComponentChooser chooser, int index)
Searches cell coordinates.- Parameters:
chooser- Component verifying object.index- an ordinal cell index- Returns:
- Point indicating coordinates (x - column, y - row)
-
findCell
public java.awt.Point findCell(ComponentChooser chooser, int[] rows, int[] columns, int index)
Searches cell coordinates.- Parameters:
chooser- Component verifying object.rows- rows to search incolumns- columns to search inindex- an ordinal cell index- Returns:
- Point indicating coordinates (x - column, y - row)
-
findCellRow
public int findCellRow(ComponentChooser chooser)
Searches cell row by rendered component.- Parameters:
chooser- Component verifying object.- Returns:
- a row index.
-
findCellColumn
public int findCellColumn(ComponentChooser chooser)
Searches cell column by rendered component.- Parameters:
chooser- Component verifying object.- Returns:
- a column index.
-
findCell
public java.awt.Point findCell(ComponentChooser chooser)
Searches cell coordinates.- Parameters:
chooser- Component verifying object.- Returns:
- Point indicating coordinates (x - column, y - row)
-
findCellRow
public int findCellRow(JTableOperator.TableCellChooser chooser, int index)
Searches cell row by TableCellChooser.- Parameters:
chooser- Cell verifying object.index- Ordinal index in suitable cells.- Returns:
- a row index.
-
findCellRow
public int findCellRow(JTableOperator.TableCellChooser chooser, int column, int index)
Searches cell row index. Searching is performed between cells in one column.- Parameters:
chooser- Cell verifying object.column- a column index to search inindex- Ordinal index in suitable cells.- Returns:
- a row index.
-
findCellColumn
public int findCellColumn(JTableOperator.TableCellChooser chooser, int index)
Searches cell column by TableCellChooser.- Parameters:
chooser- ComponentCell verifying object.index- Ordinal index in suitable cells.- Returns:
- a column index.
-
findCellColumn
public int findCellColumn(JTableOperator.TableCellChooser chooser, int row, int index)
Searches cell column index. Searching is performed between cells in one row.- Parameters:
chooser- Cell verifying object.row- a row index to search inindex- Ordinal index in suitable cells.- Returns:
- a column index.
-
findCell
public java.awt.Point findCell(JTableOperator.TableCellChooser chooser, int index)
Searches cell coordinates.- Parameters:
chooser- cell verifying object.index- an ordinal cell index- Returns:
- Point indicating coordinates (x - column, y - row)
-
findCell
public java.awt.Point findCell(JTableOperator.TableCellChooser chooser, int[] rows, int[] columns, int index)
Searches cell coordinates in the specified rows and columns.- Parameters:
chooser- cell verifying object.rows- rows to search incolumns- columns to search inindex- an ordinal cell index- Returns:
- Point indicating coordinates (x - column, y - row)
-
findCellRow
public int findCellRow(JTableOperator.TableCellChooser chooser)
Searches cell row by TableCellChooser.- Parameters:
chooser- Cell verifying object.- Returns:
- a row index.
-
findCellColumn
public int findCellColumn(JTableOperator.TableCellChooser chooser)
Searches cell column by TableCellChooser.- Parameters:
chooser- Cell verifying object.- Returns:
- a column index.
-
findCell
public java.awt.Point findCell(JTableOperator.TableCellChooser chooser)
Searches cell coordinates.- Parameters:
chooser- cell verifying object.- Returns:
- Point indicating coordinates (x - column, y - row)
-
clickOnCell
public void clickOnCell(int row, int column, int clickCount, int button, int modifiers)Does mouse click on the cell.- Parameters:
row- a row indexcolumn- a column indexclickCount- a number of clicksbutton- a mouse button (value of InputEvent.BUTTON*_MASK field)modifiers- Modifiers (combination of InputEvent.*_MASK values)
-
clickOnCell
public void clickOnCell(int row, int column, int clickCount, int button)Does mouse click on the cell with no modifiers.- Parameters:
row- a row indexcolumn- a column indexclickCount- a number of clicksbutton- a mouse button (value of InputEvent.BUTTON*_MASK field)
-
clickOnCell
public void clickOnCell(int row, int column, int clickCount)Does mouse click on the cell by default mouse button with no modifiers.- Parameters:
row- a row indexcolumn- a column indexclickCount- a number of clicks
-
clickOnCell
public void clickOnCell(int row, int column)Does single mouse click on the cell.- Parameters:
row- a row indexcolumn- a column index
-
clickForEdit
public void clickForEdit(int row, int column)Double clicks on cell to turns it to the editing mode.- Parameters:
row- a row indexcolumn- a column index- Throws:
TimeoutExpiredException
-
changeCellText
public void changeCellText(int row, int column, java.lang.String newText)Deprecated.Use changeCellObject(int, int, Object) instead.Changes text of the cell pointed by row and column indexes.- Parameters:
row- a row indexcolumn- a column indexnewText- a text to enter- Throws:
TimeoutExpiredException- See Also:
changeCellObject(int, int, Object)
-
changeCellObject
public void changeCellObject(int row, int column, java.lang.Object newValue)Changes value of the cell pointed by row and column indexes. uses editor defined by setCellEditor method.- Parameters:
row- a row indexcolumn- a column indexnewValue- an object to chenge cell value to.- Throws:
TimeoutExpiredException
-
scrollToCell
public void scrollToCell(int row, int column)Scrolls to a cell if the table lies on a JScrollPane component.- Parameters:
row- a row indexcolumn- a column index- Throws:
TimeoutExpiredException
-
selectCell
public void selectCell(int row, int column)Selects a specified cell.- Parameters:
row- a row indexcolumn- a column index
-
findColumn
public int findColumn(java.lang.String name, Operator.StringComparator comparator)Searches a column by name.- Parameters:
name- a text patterncomparator- a string comparision algorithm- Returns:
- a column index
-
findColumn
public int findColumn(java.lang.String name)
Searches a column by name.- Parameters:
name- a text pattern- Returns:
- a column index
-
callPopupOnCell
public javax.swing.JPopupMenu callPopupOnCell(int row, int column)Calls popup menu on specified cell.- Parameters:
row- a row indexcolumn- a column index- Returns:
- the menu
-
getRenderedComponent
public java.awt.Component getRenderedComponent(int row, int column, boolean isSelected, boolean cellHasFocus)Ask renderer for component to be displayed.- Parameters:
row- cell row index.column- cell column visible index.isSelected- True if the specified cell was selected.cellHasFocus- True if the specified cell has the focus.- Returns:
- Component to be displayed.
-
getRenderedComponent
public java.awt.Component getRenderedComponent(int row, int column)Ask renderer for component to be displayed. Uses isCellSelected(itemIndex) to determine whether cell is selected. Supposes item do not have focus.- Parameters:
row- cell row index.column- cell column visible index.- Returns:
- Component to be displayed.
-
getPointToClick
public java.awt.Point getPointToClick(int row, int column)Returns a point at the center of the cell rectangle.- Parameters:
row- a row indexcolumn- a column index- Returns:
- a Point in component's coordinate system.
-
getHeaderOperator
public JTableHeaderOperator getHeaderOperator()
Creates an operator for a teble header assigned to this table.- Returns:
- an JTableHeaderOperator operator
-
waitCellComponent
public java.awt.Component waitCellComponent(ComponentChooser chooser, int row, int column)
Waits for an editor.- Parameters:
chooser- a chhoser specifying criteria to distinguish cell editor.row- a row indexcolumn- a column index- Returns:
- a component displayed over the cell and fitting the criteria specified by
chooser
-
waitCell
public void waitCell(java.lang.String cellText, int row, int column)Waits for certain cell contents.- Parameters:
cellText- Text comparing to cell text bygetComparator()comparator.row- cell row index. If -1, selected one is checked.column- cell column visible index. If -1, selected one is checked.
-
getDump
public java.util.Hashtable getDump()
Returns information about component.- Overrides:
getDumpin classJComponentOperator- Returns:
- a Hashtable containing name-value pairs.
-
addColumn
public void addColumn(javax.swing.table.TableColumn tableColumn)
MapsJTable.addColumn(TableColumn)through queue
-
addColumnSelectionInterval
public void addColumnSelectionInterval(int i, int i1)MapsJTable.addColumnSelectionInterval(int, int)through queue
-
addRowSelectionInterval
public void addRowSelectionInterval(int i, int i1)MapsJTable.addRowSelectionInterval(int, int)through queue
-
clearSelection
public void clearSelection()
MapsJTable.clearSelection()through queue
-
columnAdded
public void columnAdded(javax.swing.event.TableColumnModelEvent tableColumnModelEvent)
MapsJTable.columnAdded(TableColumnModelEvent)through queue
-
columnAtPoint
public int columnAtPoint(java.awt.Point point)
MapsJTable.columnAtPoint(Point)through queue
-
columnMarginChanged
public void columnMarginChanged(javax.swing.event.ChangeEvent changeEvent)
MapsJTable.columnMarginChanged(ChangeEvent)through queue
-
columnMoved
public void columnMoved(javax.swing.event.TableColumnModelEvent tableColumnModelEvent)
MapsJTable.columnMoved(TableColumnModelEvent)through queue
-
columnRemoved
public void columnRemoved(javax.swing.event.TableColumnModelEvent tableColumnModelEvent)
MapsJTable.columnRemoved(TableColumnModelEvent)through queue
-
columnSelectionChanged
public void columnSelectionChanged(javax.swing.event.ListSelectionEvent listSelectionEvent)
MapsJTable.columnSelectionChanged(ListSelectionEvent)through queue
-
convertColumnIndexToModel
public int convertColumnIndexToModel(int i)
MapsJTable.convertColumnIndexToModel(int)through queue
-
convertColumnIndexToView
public int convertColumnIndexToView(int i)
MapsJTable.convertColumnIndexToView(int)through queue
-
createDefaultColumnsFromModel
public void createDefaultColumnsFromModel()
MapsJTable.createDefaultColumnsFromModel()through queue
-
editCellAt
public boolean editCellAt(int i, int i1)MapsJTable.editCellAt(int, int)through queue
-
editCellAt
public boolean editCellAt(int i, int i1, java.util.EventObject eventObject)MapsJTable.editCellAt(int, int, EventObject)through queue
-
editingCanceled
public void editingCanceled(javax.swing.event.ChangeEvent changeEvent)
MapsJTable.editingCanceled(ChangeEvent)through queue
-
editingStopped
public void editingStopped(javax.swing.event.ChangeEvent changeEvent)
MapsJTable.editingStopped(ChangeEvent)through queue
-
getAutoCreateColumnsFromModel
public boolean getAutoCreateColumnsFromModel()
MapsJTable.getAutoCreateColumnsFromModel()through queue
-
getAutoResizeMode
public int getAutoResizeMode()
MapsJTable.getAutoResizeMode()through queue
-
getCellEditor
public javax.swing.table.TableCellEditor getCellEditor()
MapsJTable.getCellEditor()through queue
-
getCellEditor
public javax.swing.table.TableCellEditor getCellEditor(int i, int i1)MapsJTable.getCellEditor(int, int)through queue
-
getCellRect
public java.awt.Rectangle getCellRect(int i, int i1, boolean b)MapsJTable.getCellRect(int, int, boolean)through queue
-
getCellRenderer
public javax.swing.table.TableCellRenderer getCellRenderer(int i, int i1)MapsJTable.getCellRenderer(int, int)through queue
-
getCellSelectionEnabled
public boolean getCellSelectionEnabled()
MapsJTable.getCellSelectionEnabled()through queue
-
getColumn
public javax.swing.table.TableColumn getColumn(java.lang.Object object)
MapsJTable.getColumn(Object)through queue
-
getColumnClass
public java.lang.Class getColumnClass(int i)
MapsJTable.getColumnClass(int)through queue
-
getColumnCount
public int getColumnCount()
MapsJTable.getColumnCount()through queue
-
getColumnModel
public javax.swing.table.TableColumnModel getColumnModel()
MapsJTable.getColumnModel()through queue
-
getColumnName
public java.lang.String getColumnName(int i)
MapsJTable.getColumnName(int)through queue
-
getColumnSelectionAllowed
public boolean getColumnSelectionAllowed()
MapsJTable.getColumnSelectionAllowed()through queue
-
getDefaultEditor
public javax.swing.table.TableCellEditor getDefaultEditor(java.lang.Class clss)
MapsJTable.getDefaultEditor(Class)through queue
-
getDefaultRenderer
public javax.swing.table.TableCellRenderer getDefaultRenderer(java.lang.Class clss)
MapsJTable.getDefaultRenderer(Class)through queue
-
getEditingColumn
public int getEditingColumn()
MapsJTable.getEditingColumn()through queue
-
getEditingRow
public int getEditingRow()
MapsJTable.getEditingRow()through queue
-
getEditorComponent
public java.awt.Component getEditorComponent()
MapsJTable.getEditorComponent()through queue
-
getGridColor
public java.awt.Color getGridColor()
MapsJTable.getGridColor()through queue
-
getIntercellSpacing
public java.awt.Dimension getIntercellSpacing()
MapsJTable.getIntercellSpacing()through queue
-
getModel
public javax.swing.table.TableModel getModel()
MapsJTable.getModel()through queue
-
getPreferredScrollableViewportSize
public java.awt.Dimension getPreferredScrollableViewportSize()
MapsJTable.getPreferredScrollableViewportSize()through queue
-
getRowCount
public int getRowCount()
MapsJTable.getRowCount()through queue
-
getRowHeight
public int getRowHeight()
MapsJTable.getRowHeight()through queue
-
getRowMargin
public int getRowMargin()
MapsJTable.getRowMargin()through queue
-
getRowSelectionAllowed
public boolean getRowSelectionAllowed()
MapsJTable.getRowSelectionAllowed()through queue
-
getScrollableBlockIncrement
public int getScrollableBlockIncrement(java.awt.Rectangle rectangle, int i, int i1)MapsJTable.getScrollableBlockIncrement(Rectangle, int, int)through queue
-
getScrollableTracksViewportHeight
public boolean getScrollableTracksViewportHeight()
MapsJTable.getScrollableTracksViewportHeight()through queue
-
getScrollableTracksViewportWidth
public boolean getScrollableTracksViewportWidth()
MapsJTable.getScrollableTracksViewportWidth()through queue
-
getScrollableUnitIncrement
public int getScrollableUnitIncrement(java.awt.Rectangle rectangle, int i, int i1)MapsJTable.getScrollableUnitIncrement(Rectangle, int, int)through queue
-
getSelectedColumn
public int getSelectedColumn()
MapsJTable.getSelectedColumn()through queue
-
getSelectedColumnCount
public int getSelectedColumnCount()
MapsJTable.getSelectedColumnCount()through queue
-
getSelectedColumns
public int[] getSelectedColumns()
MapsJTable.getSelectedColumns()through queue
-
getSelectedRow
public int getSelectedRow()
MapsJTable.getSelectedRow()through queue
-
getSelectedRowCount
public int getSelectedRowCount()
MapsJTable.getSelectedRowCount()through queue
-
getSelectedRows
public int[] getSelectedRows()
MapsJTable.getSelectedRows()through queue
-
getSelectionBackground
public java.awt.Color getSelectionBackground()
MapsJTable.getSelectionBackground()through queue
-
getSelectionForeground
public java.awt.Color getSelectionForeground()
MapsJTable.getSelectionForeground()through queue
-
getSelectionModel
public javax.swing.ListSelectionModel getSelectionModel()
MapsJTable.getSelectionModel()through queue
-
getShowHorizontalLines
public boolean getShowHorizontalLines()
MapsJTable.getShowHorizontalLines()through queue
-
getShowVerticalLines
public boolean getShowVerticalLines()
MapsJTable.getShowVerticalLines()through queue
-
getTableHeader
public javax.swing.table.JTableHeader getTableHeader()
MapsJTable.getTableHeader()through queue
-
getUI
public javax.swing.plaf.TableUI getUI()
MapsJTable.getUI()through queue
-
getValueAt
public java.lang.Object getValueAt(int i, int i1)MapsJTable.getValueAt(int, int)through queue
-
isCellEditable
public boolean isCellEditable(int i, int i1)MapsJTable.isCellEditable(int, int)through queue
-
isCellSelected
public boolean isCellSelected(int i, int i1)MapsJTable.isCellSelected(int, int)through queue
-
isColumnSelected
public boolean isColumnSelected(int i)
MapsJTable.isColumnSelected(int)through queue
-
isEditing
public boolean isEditing()
MapsJTable.isEditing()through queue
-
isRowSelected
public boolean isRowSelected(int i)
MapsJTable.isRowSelected(int)through queue
-
moveColumn
public void moveColumn(int i, int i1)MapsJTable.moveColumn(int, int)through queue
-
prepareEditor
public java.awt.Component prepareEditor(javax.swing.table.TableCellEditor tableCellEditor, int i, int i1)MapsJTable.prepareEditor(TableCellEditor, int, int)through queue
-
prepareRenderer
public java.awt.Component prepareRenderer(javax.swing.table.TableCellRenderer tableCellRenderer, int i, int i1)MapsJTable.prepareRenderer(TableCellRenderer, int, int)through queue
-
removeColumn
public void removeColumn(javax.swing.table.TableColumn tableColumn)
MapsJTable.removeColumn(TableColumn)through queue
-
removeColumnSelectionInterval
public void removeColumnSelectionInterval(int i, int i1)MapsJTable.removeColumnSelectionInterval(int, int)through queue
-
removeEditor
public void removeEditor()
MapsJTable.removeEditor()through queue
-
removeRowSelectionInterval
public void removeRowSelectionInterval(int i, int i1)MapsJTable.removeRowSelectionInterval(int, int)through queue
-
rowAtPoint
public int rowAtPoint(java.awt.Point point)
MapsJTable.rowAtPoint(Point)through queue
-
selectAll
public void selectAll()
MapsJTable.selectAll()through queue
-
setAutoCreateColumnsFromModel
public void setAutoCreateColumnsFromModel(boolean b)
MapsJTable.setAutoCreateColumnsFromModel(boolean)through queue
-
setAutoResizeMode
public void setAutoResizeMode(int i)
MapsJTable.setAutoResizeMode(int)through queue
-
setCellEditor
public void setCellEditor(javax.swing.table.TableCellEditor tableCellEditor)
MapsJTable.setCellEditor(TableCellEditor)through queue
-
setCellSelectionEnabled
public void setCellSelectionEnabled(boolean b)
MapsJTable.setCellSelectionEnabled(boolean)through queue
-
setColumnModel
public void setColumnModel(javax.swing.table.TableColumnModel tableColumnModel)
MapsJTable.setColumnModel(TableColumnModel)through queue
-
setColumnSelectionAllowed
public void setColumnSelectionAllowed(boolean b)
MapsJTable.setColumnSelectionAllowed(boolean)through queue
-
setColumnSelectionInterval
public void setColumnSelectionInterval(int i, int i1)MapsJTable.setColumnSelectionInterval(int, int)through queue
-
setDefaultEditor
public void setDefaultEditor(java.lang.Class clss, javax.swing.table.TableCellEditor tableCellEditor)MapsJTable.setDefaultEditor(Class, TableCellEditor)through queue
-
setDefaultRenderer
public void setDefaultRenderer(java.lang.Class clss, javax.swing.table.TableCellRenderer tableCellRenderer)MapsJTable.setDefaultRenderer(Class, TableCellRenderer)through queue
-
setEditingColumn
public void setEditingColumn(int i)
MapsJTable.setEditingColumn(int)through queue
-
setEditingRow
public void setEditingRow(int i)
MapsJTable.setEditingRow(int)through queue
-
setGridColor
public void setGridColor(java.awt.Color color)
MapsJTable.setGridColor(Color)through queue
-
setIntercellSpacing
public void setIntercellSpacing(java.awt.Dimension dimension)
MapsJTable.setIntercellSpacing(Dimension)through queue
-
setModel
public void setModel(javax.swing.table.TableModel tableModel)
MapsJTable.setModel(TableModel)through queue
-
setPreferredScrollableViewportSize
public void setPreferredScrollableViewportSize(java.awt.Dimension dimension)
MapsJTable.setPreferredScrollableViewportSize(Dimension)through queue
-
setRowHeight
public void setRowHeight(int i)
MapsJTable.setRowHeight(int)through queue
-
setRowMargin
public void setRowMargin(int i)
MapsJTable.setRowMargin(int)through queue
-
setRowSelectionAllowed
public void setRowSelectionAllowed(boolean b)
MapsJTable.setRowSelectionAllowed(boolean)through queue
-
setRowSelectionInterval
public void setRowSelectionInterval(int i, int i1)MapsJTable.setRowSelectionInterval(int, int)through queue
-
setSelectionBackground
public void setSelectionBackground(java.awt.Color color)
MapsJTable.setSelectionBackground(Color)through queue
-
setSelectionForeground
public void setSelectionForeground(java.awt.Color color)
MapsJTable.setSelectionForeground(Color)through queue
-
setSelectionMode
public void setSelectionMode(int i)
MapsJTable.setSelectionMode(int)through queue
-
setSelectionModel
public void setSelectionModel(javax.swing.ListSelectionModel listSelectionModel)
MapsJTable.setSelectionModel(ListSelectionModel)through queue
-
setShowGrid
public void setShowGrid(boolean b)
MapsJTable.setShowGrid(boolean)through queue
-
setShowHorizontalLines
public void setShowHorizontalLines(boolean b)
MapsJTable.setShowHorizontalLines(boolean)through queue
-
setShowVerticalLines
public void setShowVerticalLines(boolean b)
MapsJTable.setShowVerticalLines(boolean)through queue
-
setTableHeader
public void setTableHeader(javax.swing.table.JTableHeader jTableHeader)
MapsJTable.setTableHeader(JTableHeader)through queue
-
setUI
public void setUI(javax.swing.plaf.TableUI tableUI)
MapsJTable.setUI(TableUI)through queue
-
setValueAt
public void setValueAt(java.lang.Object object, int i, int i1)MapsJTable.setValueAt(Object, int, int)through queue
-
tableChanged
public void tableChanged(javax.swing.event.TableModelEvent tableModelEvent)
MapsJTable.tableChanged(TableModelEvent)through queue
-
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent listSelectionEvent)
MapsJTable.valueChanged(ListSelectionEvent)through queue
-
-