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 class
JTableOperator.JTableByCellFinder
Allows to find component by cell text.static class
JTableOperator.JTableFinder
Checks component type.static interface
JTableOperator.TableCellChooser
Iterface 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 String
CELL_PREFIX_DPROP
Identifier for a "cell" property.static String
COLUMN_COUNT_DPROP
Identifier for a "column count" property.static String
COLUMN_PREFIX_DPROP
Identifier for a "column" property.static String
ROW_COUNT_DPROP
Identifier for a "row count" property.static String
SELECTED_COLUMN_PREFIX_DPROP
Identifier for a "selected column" property.static String
SELECTED_ROW_PREFIX_DPROP
Identifier 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(JTable b)
Constructor.JTableOperator(ContainerOperator cont)
Constructor.JTableOperator(ContainerOperator cont, int index)
Constructor.JTableOperator(ContainerOperator cont, String text)
Constructor.JTableOperator(ContainerOperator cont, String text, int index)
Constructor.JTableOperator(ContainerOperator cont, String text, int row, int column)
Constructor.JTableOperator(ContainerOperator cont, 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 void
addColumn(TableColumn tableColumn)
MapsJTable.addColumn(TableColumn)
through queuevoid
addColumnSelectionInterval(int i, int i1)
MapsJTable.addColumnSelectionInterval(int, int)
through queuevoid
addRowSelectionInterval(int i, int i1)
MapsJTable.addRowSelectionInterval(int, int)
through queueJPopupMenu
callPopupOnCell(int row, int column)
Calls popup menu on specified cell.void
changeCellObject(int row, int column, Object newValue)
Changes value of the cell pointed by row and column indexes.void
changeCellText(int row, int column, String newText)
Deprecated.Use changeCellObject(int, int, Object) instead.void
clearSelection()
MapsJTable.clearSelection()
through queuevoid
clickForEdit(int row, int column)
Double clicks on cell to turns it to the editing mode.void
clickOnCell(int row, int column)
Does single mouse click on the cell.void
clickOnCell(int row, int column, int clickCount)
Does mouse click on the cell by default mouse button with no modifiers.void
clickOnCell(int row, int column, int clickCount, int button)
Does mouse click on the cell with no modifiers.void
clickOnCell(int row, int column, int clickCount, int button, int modifiers)
Does mouse click on the cell.void
columnAdded(TableColumnModelEvent tableColumnModelEvent)
MapsJTable.columnAdded(TableColumnModelEvent)
through queueint
columnAtPoint(Point point)
MapsJTable.columnAtPoint(Point)
through queuevoid
columnMarginChanged(ChangeEvent changeEvent)
MapsJTable.columnMarginChanged(ChangeEvent)
through queuevoid
columnMoved(TableColumnModelEvent tableColumnModelEvent)
MapsJTable.columnMoved(TableColumnModelEvent)
through queuevoid
columnRemoved(TableColumnModelEvent tableColumnModelEvent)
MapsJTable.columnRemoved(TableColumnModelEvent)
through queuevoid
columnSelectionChanged(ListSelectionEvent listSelectionEvent)
MapsJTable.columnSelectionChanged(ListSelectionEvent)
through queueint
convertColumnIndexToModel(int i)
MapsJTable.convertColumnIndexToModel(int)
through queueint
convertColumnIndexToView(int i)
MapsJTable.convertColumnIndexToView(int)
through queuevoid
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts, visualizer) from another operator.void
createDefaultColumnsFromModel()
MapsJTable.createDefaultColumnsFromModel()
through queueboolean
editCellAt(int i, int i1)
MapsJTable.editCellAt(int, int)
through queueboolean
editCellAt(int i, int i1, EventObject eventObject)
MapsJTable.editCellAt(int, int, EventObject)
through queuevoid
editingCanceled(ChangeEvent changeEvent)
MapsJTable.editingCanceled(ChangeEvent)
through queuevoid
editingStopped(ChangeEvent changeEvent)
MapsJTable.editingStopped(ChangeEvent)
through queuePoint
findCell(String text, int index)
Searches cell coordinates.Point
findCell(String text, int[] rows, int[] columns, int index)
Searches cell coordinates in the specified rows and columns.Point
findCell(String text, Operator.StringComparator comparator, int index)
Searches cell coordinates.Point
findCell(String text, Operator.StringComparator comparator, int[] rows, int[] columns, int index)
Searches cell coordinates in the specified rows and columns.Point
findCell(ComponentChooser chooser)
Searches cell coordinates.Point
findCell(ComponentChooser chooser, int index)
Searches cell coordinates.Point
findCell(ComponentChooser chooser, int[] rows, int[] columns, int index)
Searches cell coordinates.Point
findCell(JTableOperator.TableCellChooser chooser)
Searches cell coordinates.Point
findCell(JTableOperator.TableCellChooser chooser, int index)
Searches cell coordinates.Point
findCell(JTableOperator.TableCellChooser chooser, int[] rows, int[] columns, int index)
Searches cell coordinates in the specified rows and columns.int
findCellColumn(String text)
Searches first cell column by cell text.int
findCellColumn(String text, boolean ce, boolean ccs)
Deprecated.Use findCellColumn(String) or findCellColumn(String, StringComparator)int
findCellColumn(String text, boolean ce, boolean ccs, int index)
Deprecated.Use findCellColumn(String, int) or findCellColumn(String, StringComparator, int)int
findCellColumn(String text, int index)
Searches cell column by cell text.int
findCellColumn(String text, int row, int index)
Searches cell column index.int
findCellColumn(String text, Operator.StringComparator comparator)
Searches cell column visible index.int
findCellColumn(String text, Operator.StringComparator comparator, int index)
Searches cell column visible index.int
findCellColumn(String text, Operator.StringComparator comparator, int row, int index)
Searches cell column index.int
findCellColumn(ComponentChooser chooser)
Searches cell column by rendered component.int
findCellColumn(ComponentChooser chooser, int index)
Searches cell column by rendered component.int
findCellColumn(ComponentChooser chooser, int row, int index)
Searches cell column index.int
findCellColumn(JTableOperator.TableCellChooser chooser)
Searches cell column by TableCellChooser.int
findCellColumn(JTableOperator.TableCellChooser chooser, int index)
Searches cell column by TableCellChooser.int
findCellColumn(JTableOperator.TableCellChooser chooser, int row, int index)
Searches cell column index.int
findCellRow(String text)
Searches first cell row by cell text.int
findCellRow(String text, boolean ce, boolean ccs)
Deprecated.Use findCellRow(String) or findCellRow(String, StringComparator)int
findCellRow(String text, boolean ce, boolean ccs, int index)
Deprecated.Use findCellRow(String, int) or findCellRow(String, StringComparator, int)int
findCellRow(String text, int index)
Searches cell row by cell text.int
findCellRow(String text, int column, int index)
Searches cell row index.int
findCellRow(String text, Operator.StringComparator comparator)
Searches cell row index.int
findCellRow(String text, Operator.StringComparator comparator, int index)
Searches cell row index.int
findCellRow(String text, Operator.StringComparator comparator, int column, int index)
Searches cell row index.int
findCellRow(ComponentChooser chooser)
Searches cell row by rendered component.int
findCellRow(ComponentChooser chooser, int index)
Searches cell row by rendered component.int
findCellRow(ComponentChooser chooser, int column, int index)
Searches cell row index.int
findCellRow(JTableOperator.TableCellChooser chooser)
Searches cell row by TableCellChooser.int
findCellRow(JTableOperator.TableCellChooser chooser, int index)
Searches cell row by TableCellChooser.int
findCellRow(JTableOperator.TableCellChooser chooser, int column, int index)
Searches cell row index.int
findColumn(String name)
Searches a column by name.int
findColumn(String name, Operator.StringComparator comparator)
Searches a column by name.static JTable
findJTable(Container cont, String text, boolean ce, boolean ccs, int row, int column)
Searches JTable by cell.static JTable
findJTable(Container cont, String text, boolean ce, boolean ccs, int row, int column, int index)
Searches JTable by cell.static JTable
findJTable(Container cont, ComponentChooser chooser)
Searches 0'th JTable in container.static JTable
findJTable(Container cont, ComponentChooser chooser, int index)
Searches JTable in container.boolean
getAutoCreateColumnsFromModel()
MapsJTable.getAutoCreateColumnsFromModel()
through queueint
getAutoResizeMode()
MapsJTable.getAutoResizeMode()
through queueTableCellEditor
getCellEditor()
MapsJTable.getCellEditor()
through queueTableCellEditor
getCellEditor(int i, int i1)
MapsJTable.getCellEditor(int, int)
through queueRectangle
getCellRect(int i, int i1, boolean b)
MapsJTable.getCellRect(int, int, boolean)
through queueTableCellRenderer
getCellRenderer(int i, int i1)
MapsJTable.getCellRenderer(int, int)
through queueboolean
getCellSelectionEnabled()
MapsJTable.getCellSelectionEnabled()
through queueTableColumn
getColumn(Object object)
MapsJTable.getColumn(Object)
through queueClass
getColumnClass(int i)
MapsJTable.getColumnClass(int)
through queueint
getColumnCount()
MapsJTable.getColumnCount()
through queueTableColumnModel
getColumnModel()
MapsJTable.getColumnModel()
through queueString
getColumnName(int i)
MapsJTable.getColumnName(int)
through queueboolean
getColumnSelectionAllowed()
MapsJTable.getColumnSelectionAllowed()
through queueTableCellEditor
getDefaultEditor(Class clss)
MapsJTable.getDefaultEditor(Class)
through queueTableCellRenderer
getDefaultRenderer(Class clss)
MapsJTable.getDefaultRenderer(Class)
through queueHashtable
getDump()
Returns information about component.int
getEditingColumn()
MapsJTable.getEditingColumn()
through queueint
getEditingRow()
MapsJTable.getEditingRow()
through queueComponent
getEditorComponent()
MapsJTable.getEditorComponent()
through queueColor
getGridColor()
MapsJTable.getGridColor()
through queueJTableHeaderOperator
getHeaderOperator()
Creates an operator for a teble header assigned to this table.Dimension
getIntercellSpacing()
MapsJTable.getIntercellSpacing()
through queueTableModel
getModel()
MapsJTable.getModel()
through queueTestOut
getOutput()
Returns print output streams or writers.Point
getPointToClick(int row, int column)
Returns a point at the center of the cell rectangle.Dimension
getPreferredScrollableViewportSize()
MapsJTable.getPreferredScrollableViewportSize()
through queueComponent
getRenderedComponent(int row, int column)
Ask renderer for component to be displayed.Component
getRenderedComponent(int row, int column, boolean isSelected, boolean cellHasFocus)
Ask renderer for component to be displayed.int
getRowCount()
MapsJTable.getRowCount()
through queueint
getRowHeight()
MapsJTable.getRowHeight()
through queueint
getRowMargin()
MapsJTable.getRowMargin()
through queueboolean
getRowSelectionAllowed()
MapsJTable.getRowSelectionAllowed()
through queueint
getScrollableBlockIncrement(Rectangle rectangle, int i, int i1)
MapsJTable.getScrollableBlockIncrement(Rectangle, int, int)
through queueboolean
getScrollableTracksViewportHeight()
MapsJTable.getScrollableTracksViewportHeight()
through queueboolean
getScrollableTracksViewportWidth()
MapsJTable.getScrollableTracksViewportWidth()
through queueint
getScrollableUnitIncrement(Rectangle rectangle, int i, int i1)
MapsJTable.getScrollableUnitIncrement(Rectangle, int, int)
through queueint
getSelectedColumn()
MapsJTable.getSelectedColumn()
through queueint
getSelectedColumnCount()
MapsJTable.getSelectedColumnCount()
through queueint[]
getSelectedColumns()
MapsJTable.getSelectedColumns()
through queueint
getSelectedRow()
MapsJTable.getSelectedRow()
through queueint
getSelectedRowCount()
MapsJTable.getSelectedRowCount()
through queueint[]
getSelectedRows()
MapsJTable.getSelectedRows()
through queueColor
getSelectionBackground()
MapsJTable.getSelectionBackground()
through queueColor
getSelectionForeground()
MapsJTable.getSelectionForeground()
through queueListSelectionModel
getSelectionModel()
MapsJTable.getSelectionModel()
through queueboolean
getShowHorizontalLines()
MapsJTable.getShowHorizontalLines()
through queueboolean
getShowVerticalLines()
MapsJTable.getShowVerticalLines()
through queueJTableHeader
getTableHeader()
MapsJTable.getTableHeader()
through queueTimeouts
getTimeouts()
Return current timeouts.TableUI
getUI()
MapsJTable.getUI()
through queueObject
getValueAt(int i, int i1)
MapsJTable.getValueAt(int, int)
through queueboolean
isCellEditable(int i, int i1)
MapsJTable.isCellEditable(int, int)
through queueboolean
isCellSelected(int i, int i1)
MapsJTable.isCellSelected(int, int)
through queueboolean
isColumnSelected(int i)
MapsJTable.isColumnSelected(int)
through queueboolean
isEditing()
MapsJTable.isEditing()
through queueboolean
isRowSelected(int i)
MapsJTable.isRowSelected(int)
through queuevoid
moveColumn(int i, int i1)
MapsJTable.moveColumn(int, int)
through queueComponent
prepareEditor(TableCellEditor tableCellEditor, int i, int i1)
MapsJTable.prepareEditor(TableCellEditor, int, int)
through queueComponent
prepareRenderer(TableCellRenderer tableCellRenderer, int i, int i1)
MapsJTable.prepareRenderer(TableCellRenderer, int, int)
through queuevoid
removeColumn(TableColumn tableColumn)
MapsJTable.removeColumn(TableColumn)
through queuevoid
removeColumnSelectionInterval(int i, int i1)
MapsJTable.removeColumnSelectionInterval(int, int)
through queuevoid
removeEditor()
MapsJTable.removeEditor()
through queuevoid
removeRowSelectionInterval(int i, int i1)
MapsJTable.removeRowSelectionInterval(int, int)
through queueint
rowAtPoint(Point point)
MapsJTable.rowAtPoint(Point)
through queuevoid
scrollToCell(int row, int column)
Scrolls to a cell if the table lies on a JScrollPane component.void
selectAll()
MapsJTable.selectAll()
through queuevoid
selectCell(int row, int column)
Selects a specified cell.void
setAutoCreateColumnsFromModel(boolean b)
MapsJTable.setAutoCreateColumnsFromModel(boolean)
through queuevoid
setAutoResizeMode(int i)
MapsJTable.setAutoResizeMode(int)
through queuevoid
setCellEditor(TableCellEditor tableCellEditor)
MapsJTable.setCellEditor(TableCellEditor)
through queuevoid
setCellSelectionEnabled(boolean b)
MapsJTable.setCellSelectionEnabled(boolean)
through queuevoid
setColumnModel(TableColumnModel tableColumnModel)
MapsJTable.setColumnModel(TableColumnModel)
through queuevoid
setColumnSelectionAllowed(boolean b)
MapsJTable.setColumnSelectionAllowed(boolean)
through queuevoid
setColumnSelectionInterval(int i, int i1)
MapsJTable.setColumnSelectionInterval(int, int)
through queuevoid
setDefaultEditor(Class clss, TableCellEditor tableCellEditor)
MapsJTable.setDefaultEditor(Class, TableCellEditor)
through queuevoid
setDefaultRenderer(Class clss, TableCellRenderer tableCellRenderer)
MapsJTable.setDefaultRenderer(Class, TableCellRenderer)
through queuevoid
setEditingColumn(int i)
MapsJTable.setEditingColumn(int)
through queuevoid
setEditingRow(int i)
MapsJTable.setEditingRow(int)
through queuevoid
setGridColor(Color color)
MapsJTable.setGridColor(Color)
through queuevoid
setIntercellSpacing(Dimension dimension)
MapsJTable.setIntercellSpacing(Dimension)
through queuevoid
setModel(TableModel tableModel)
MapsJTable.setModel(TableModel)
through queuevoid
setOutput(TestOut out)
Defines print output streams or writers.void
setPreferredScrollableViewportSize(Dimension dimension)
MapsJTable.setPreferredScrollableViewportSize(Dimension)
through queuevoid
setRowHeight(int i)
MapsJTable.setRowHeight(int)
through queuevoid
setRowMargin(int i)
MapsJTable.setRowMargin(int)
through queuevoid
setRowSelectionAllowed(boolean b)
MapsJTable.setRowSelectionAllowed(boolean)
through queuevoid
setRowSelectionInterval(int i, int i1)
MapsJTable.setRowSelectionInterval(int, int)
through queuevoid
setSelectionBackground(Color color)
MapsJTable.setSelectionBackground(Color)
through queuevoid
setSelectionForeground(Color color)
MapsJTable.setSelectionForeground(Color)
through queuevoid
setSelectionMode(int i)
MapsJTable.setSelectionMode(int)
through queuevoid
setSelectionModel(ListSelectionModel listSelectionModel)
MapsJTable.setSelectionModel(ListSelectionModel)
through queuevoid
setShowGrid(boolean b)
MapsJTable.setShowGrid(boolean)
through queuevoid
setShowHorizontalLines(boolean b)
MapsJTable.setShowHorizontalLines(boolean)
through queuevoid
setShowVerticalLines(boolean b)
MapsJTable.setShowVerticalLines(boolean)
through queuevoid
setTableHeader(JTableHeader jTableHeader)
MapsJTable.setTableHeader(JTableHeader)
through queuevoid
setTimeouts(Timeouts times)
Defines current timeouts.void
setUI(TableUI tableUI)
MapsJTable.setUI(TableUI)
through queuevoid
setValueAt(Object object, int i, int i1)
MapsJTable.setValueAt(Object, int, int)
through queuevoid
tableChanged(TableModelEvent tableModelEvent)
MapsJTable.tableChanged(TableModelEvent)
through queuevoid
valueChanged(ListSelectionEvent listSelectionEvent)
MapsJTable.valueChanged(ListSelectionEvent)
through queuevoid
waitCell(String cellText, int row, int column)
Waits for certain cell contents.Component
waitCellComponent(ComponentChooser chooser, int row, int column)
Waits for an editor.static JTable
waitJTable(Container cont, String text, boolean ce, boolean ccs, int row, int column)
Waits JTable by cell.static JTable
waitJTable(Container cont, String text, boolean ce, boolean ccs, int row, int column, int index)
Waits JTable by cell.static JTable
waitJTable(Container cont, ComponentChooser chooser)
Waits 0'th JTable in container.static JTable
waitJTable(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 String CELL_PREFIX_DPROP
Identifier for a "cell" property.- See Also:
getDump()
, Constant Field Values
-
COLUMN_PREFIX_DPROP
public static final String COLUMN_PREFIX_DPROP
Identifier for a "column" property.- See Also:
getDump()
, Constant Field Values
-
SELECTED_COLUMN_PREFIX_DPROP
public static final String SELECTED_COLUMN_PREFIX_DPROP
Identifier for a "selected column" property.- See Also:
getDump()
, Constant Field Values
-
SELECTED_ROW_PREFIX_DPROP
public static final String SELECTED_ROW_PREFIX_DPROP
Identifier for a "selected row" property.- See Also:
getDump()
, Constant Field Values
-
COLUMN_COUNT_DPROP
public static final String COLUMN_COUNT_DPROP
Identifier for a "column count" property.- See Also:
getDump()
, Constant Field Values
-
ROW_COUNT_DPROP
public static final String ROW_COUNT_DPROP
Identifier for a "row count" property.- See Also:
getDump()
, Constant Field Values
-
-
Constructor Detail
-
JTableOperator
public JTableOperator(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, 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, 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, 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, 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 JTable findJTable(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 JTable findJTable(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 JTable findJTable(Container cont, 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 JTable findJTable(Container cont, 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 JTable waitJTable(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 JTable waitJTable(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 JTable waitJTable(Container cont, 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 JTable waitJTable(Container cont, 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:Timeoutable
Defines current timeouts.- Specified by:
setTimeouts
in interfaceTimeoutable
- Overrides:
setTimeouts
in classJComponentOperator
- Parameters:
times
- A collection of timeout assignments.- See Also:
Timeoutable.getTimeouts()
-
getTimeouts
public Timeouts getTimeouts()
Description copied from interface:Timeoutable
Return current timeouts.- Specified by:
getTimeouts
in interfaceTimeoutable
- Overrides:
getTimeouts
in 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:Outputable
Defines print output streams or writers.- Specified by:
setOutput
in interfaceOutputable
- Overrides:
setOutput
in classJComponentOperator
- Parameters:
out
- Identify the streams or writers used for print output.- See Also:
Outputable.getOutput()
-
getOutput
public TestOut getOutput()
Description copied from interface:Outputable
Returns print output streams or writers.- Specified by:
getOutput
in interfaceOutputable
- Overrides:
getOutput
in 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:Operator
Copies all environment (output, timeouts, visualizer) from another operator.- Overrides:
copyEnvironment
in classComponentOperator
- Parameters:
anotherOperator
- an operator to copy the environment to.
-
findCell
public Point findCell(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 Point findCell(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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 Point findCell(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 Point findCell(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(String text)
Searches first cell row by cell text.- Parameters:
text
- Text to search by.- Returns:
- a row index.
-
findCellColumn
public int findCellColumn(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 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 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 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 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 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 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, 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, 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(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(String name)
Searches a column by name.- Parameters:
name
- a text pattern- Returns:
- a column index
-
callPopupOnCell
public 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 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 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 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 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(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 Hashtable getDump()
Returns information about component.- Overrides:
getDump
in classJComponentOperator
- Returns:
- a Hashtable containing name-value pairs.
-
addColumn
public void addColumn(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(TableColumnModelEvent tableColumnModelEvent)
MapsJTable.columnAdded(TableColumnModelEvent)
through queue
-
columnAtPoint
public int columnAtPoint(Point point)
MapsJTable.columnAtPoint(Point)
through queue
-
columnMarginChanged
public void columnMarginChanged(ChangeEvent changeEvent)
MapsJTable.columnMarginChanged(ChangeEvent)
through queue
-
columnMoved
public void columnMoved(TableColumnModelEvent tableColumnModelEvent)
MapsJTable.columnMoved(TableColumnModelEvent)
through queue
-
columnRemoved
public void columnRemoved(TableColumnModelEvent tableColumnModelEvent)
MapsJTable.columnRemoved(TableColumnModelEvent)
through queue
-
columnSelectionChanged
public void columnSelectionChanged(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, EventObject eventObject)
MapsJTable.editCellAt(int, int, EventObject)
through queue
-
editingCanceled
public void editingCanceled(ChangeEvent changeEvent)
MapsJTable.editingCanceled(ChangeEvent)
through queue
-
editingStopped
public void editingStopped(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 TableCellEditor getCellEditor()
MapsJTable.getCellEditor()
through queue
-
getCellEditor
public TableCellEditor getCellEditor(int i, int i1)
MapsJTable.getCellEditor(int, int)
through queue
-
getCellRect
public Rectangle getCellRect(int i, int i1, boolean b)
MapsJTable.getCellRect(int, int, boolean)
through queue
-
getCellRenderer
public TableCellRenderer getCellRenderer(int i, int i1)
MapsJTable.getCellRenderer(int, int)
through queue
-
getCellSelectionEnabled
public boolean getCellSelectionEnabled()
MapsJTable.getCellSelectionEnabled()
through queue
-
getColumn
public TableColumn getColumn(Object object)
MapsJTable.getColumn(Object)
through queue
-
getColumnClass
public Class getColumnClass(int i)
MapsJTable.getColumnClass(int)
through queue
-
getColumnCount
public int getColumnCount()
MapsJTable.getColumnCount()
through queue
-
getColumnModel
public TableColumnModel getColumnModel()
MapsJTable.getColumnModel()
through queue
-
getColumnName
public String getColumnName(int i)
MapsJTable.getColumnName(int)
through queue
-
getColumnSelectionAllowed
public boolean getColumnSelectionAllowed()
MapsJTable.getColumnSelectionAllowed()
through queue
-
getDefaultEditor
public TableCellEditor getDefaultEditor(Class clss)
MapsJTable.getDefaultEditor(Class)
through queue
-
getDefaultRenderer
public TableCellRenderer getDefaultRenderer(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 Component getEditorComponent()
MapsJTable.getEditorComponent()
through queue
-
getGridColor
public Color getGridColor()
MapsJTable.getGridColor()
through queue
-
getIntercellSpacing
public Dimension getIntercellSpacing()
MapsJTable.getIntercellSpacing()
through queue
-
getModel
public TableModel getModel()
MapsJTable.getModel()
through queue
-
getPreferredScrollableViewportSize
public 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(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(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 Color getSelectionBackground()
MapsJTable.getSelectionBackground()
through queue
-
getSelectionForeground
public Color getSelectionForeground()
MapsJTable.getSelectionForeground()
through queue
-
getSelectionModel
public ListSelectionModel getSelectionModel()
MapsJTable.getSelectionModel()
through queue
-
getShowHorizontalLines
public boolean getShowHorizontalLines()
MapsJTable.getShowHorizontalLines()
through queue
-
getShowVerticalLines
public boolean getShowVerticalLines()
MapsJTable.getShowVerticalLines()
through queue
-
getTableHeader
public JTableHeader getTableHeader()
MapsJTable.getTableHeader()
through queue
-
getUI
public TableUI getUI()
MapsJTable.getUI()
through queue
-
getValueAt
public 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 Component prepareEditor(TableCellEditor tableCellEditor, int i, int i1)
MapsJTable.prepareEditor(TableCellEditor, int, int)
through queue
-
prepareRenderer
public Component prepareRenderer(TableCellRenderer tableCellRenderer, int i, int i1)
MapsJTable.prepareRenderer(TableCellRenderer, int, int)
through queue
-
removeColumn
public void removeColumn(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(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(TableCellEditor tableCellEditor)
MapsJTable.setCellEditor(TableCellEditor)
through queue
-
setCellSelectionEnabled
public void setCellSelectionEnabled(boolean b)
MapsJTable.setCellSelectionEnabled(boolean)
through queue
-
setColumnModel
public void setColumnModel(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(Class clss, TableCellEditor tableCellEditor)
MapsJTable.setDefaultEditor(Class, TableCellEditor)
through queue
-
setDefaultRenderer
public void setDefaultRenderer(Class clss, 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(Color color)
MapsJTable.setGridColor(Color)
through queue
-
setIntercellSpacing
public void setIntercellSpacing(Dimension dimension)
MapsJTable.setIntercellSpacing(Dimension)
through queue
-
setModel
public void setModel(TableModel tableModel)
MapsJTable.setModel(TableModel)
through queue
-
setPreferredScrollableViewportSize
public void setPreferredScrollableViewportSize(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(Color color)
MapsJTable.setSelectionBackground(Color)
through queue
-
setSelectionForeground
public void setSelectionForeground(Color color)
MapsJTable.setSelectionForeground(Color)
through queue
-
setSelectionMode
public void setSelectionMode(int i)
MapsJTable.setSelectionMode(int)
through queue
-
setSelectionModel
public void setSelectionModel(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(JTableHeader jTableHeader)
MapsJTable.setTableHeader(JTableHeader)
through queue
-
setUI
public void setUI(TableUI tableUI)
MapsJTable.setUI(TableUI)
through queue
-
setValueAt
public void setValueAt(Object object, int i, int i1)
MapsJTable.setValueAt(Object, int, int)
through queue
-
tableChanged
public void tableChanged(TableModelEvent tableModelEvent)
MapsJTable.tableChanged(TableModelEvent)
through queue
-
valueChanged
public void valueChanged(ListSelectionEvent listSelectionEvent)
MapsJTable.valueChanged(ListSelectionEvent)
through queue
-
-