|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.JComponentOperator
org.netbeans.jemmy.operators.JTableOperator
public class JTableOperator
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
.
Timeouts
Nested Class Summary | |
---|---|
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 | |
---|---|
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 | |
---|---|
JTableOperator(ContainerOperator cont)
Constructor. |
|
JTableOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a JTableOperator object. |
|
JTableOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a JTableOperator object. |
|
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(JTable b)
Constructor. |
Method Summary | |
---|---|
void |
addColumn(TableColumn tableColumn)
Maps JTable.addColumn(TableColumn) through queue |
void |
addColumnSelectionInterval(int i,
int i1)
Maps JTable.addColumnSelectionInterval(int, int) through queue |
void |
addRowSelectionInterval(int i,
int i1)
Maps JTable.addRowSelectionInterval(int, int) through queue |
JPopupMenu |
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()
Maps JTable.clearSelection() through queue |
void |
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)
Maps JTable.columnAdded(TableColumnModelEvent) through queue |
int |
columnAtPoint(Point point)
Maps JTable.columnAtPoint(Point) through queue |
void |
columnMarginChanged(ChangeEvent changeEvent)
Maps JTable.columnMarginChanged(ChangeEvent) through queue |
void |
columnMoved(TableColumnModelEvent tableColumnModelEvent)
Maps JTable.columnMoved(TableColumnModelEvent) through queue |
void |
columnRemoved(TableColumnModelEvent tableColumnModelEvent)
Maps JTable.columnRemoved(TableColumnModelEvent) through queue |
void |
columnSelectionChanged(ListSelectionEvent listSelectionEvent)
Maps JTable.columnSelectionChanged(ListSelectionEvent) through queue |
int |
convertColumnIndexToModel(int i)
Maps JTable.convertColumnIndexToModel(int) through queue |
int |
convertColumnIndexToView(int i)
Maps JTable.convertColumnIndexToView(int) through queue |
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts, visualizer) from another operator. |
void |
createDefaultColumnsFromModel()
Maps JTable.createDefaultColumnsFromModel() through queue |
boolean |
editCellAt(int i,
int i1)
Maps JTable.editCellAt(int, int) through queue |
boolean |
editCellAt(int i,
int i1,
EventObject eventObject)
Maps JTable.editCellAt(int, int, EventObject) through queue |
void |
editingCanceled(ChangeEvent changeEvent)
Maps JTable.editingCanceled(ChangeEvent) through queue |
void |
editingStopped(ChangeEvent changeEvent)
Maps JTable.editingStopped(ChangeEvent) through queue |
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. |
Point |
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. |
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 |
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 |
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 |
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 |
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,
ComponentChooser chooser)
Searches 0'th JTable in container. |
static JTable |
findJTable(Container cont,
ComponentChooser chooser,
int index)
Searches JTable in container. |
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. |
boolean |
getAutoCreateColumnsFromModel()
Maps JTable.getAutoCreateColumnsFromModel() through queue |
int |
getAutoResizeMode()
Maps JTable.getAutoResizeMode() through queue |
TableCellEditor |
getCellEditor()
Maps JTable.getCellEditor() through queue |
TableCellEditor |
getCellEditor(int i,
int i1)
Maps JTable.getCellEditor(int, int) through queue |
Rectangle |
getCellRect(int i,
int i1,
boolean b)
Maps JTable.getCellRect(int, int, boolean) through queue |
TableCellRenderer |
getCellRenderer(int i,
int i1)
Maps JTable.getCellRenderer(int, int) through queue |
boolean |
getCellSelectionEnabled()
Maps JTable.getCellSelectionEnabled() through queue |
TableColumn |
getColumn(Object object)
Maps JTable.getColumn(Object) through queue |
Class |
getColumnClass(int i)
Maps JTable.getColumnClass(int) through queue |
int |
getColumnCount()
Maps JTable.getColumnCount() through queue |
TableColumnModel |
getColumnModel()
Maps JTable.getColumnModel() through queue |
String |
getColumnName(int i)
Maps JTable.getColumnName(int) through queue |
boolean |
getColumnSelectionAllowed()
Maps JTable.getColumnSelectionAllowed() through queue |
TableCellEditor |
getDefaultEditor(Class clss)
Maps JTable.getDefaultEditor(Class) through queue |
TableCellRenderer |
getDefaultRenderer(Class clss)
Maps JTable.getDefaultRenderer(Class) through queue |
Hashtable |
getDump()
Returns information about component. |
int |
getEditingColumn()
Maps JTable.getEditingColumn() through queue |
int |
getEditingRow()
Maps JTable.getEditingRow() through queue |
Component |
getEditorComponent()
Maps JTable.getEditorComponent() through queue |
Color |
getGridColor()
Maps JTable.getGridColor() through queue |
JTableHeaderOperator |
getHeaderOperator()
Creates an operator for a teble header assigned to this table. |
Dimension |
getIntercellSpacing()
Maps JTable.getIntercellSpacing() through queue |
TableModel |
getModel()
Maps JTable.getModel() through queue |
TestOut |
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()
Maps JTable.getPreferredScrollableViewportSize() through queue |
Component |
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()
Maps JTable.getRowCount() through queue |
int |
getRowHeight()
Maps JTable.getRowHeight() through queue |
int |
getRowMargin()
Maps JTable.getRowMargin() through queue |
boolean |
getRowSelectionAllowed()
Maps JTable.getRowSelectionAllowed() through queue |
int |
getScrollableBlockIncrement(Rectangle rectangle,
int i,
int i1)
Maps JTable.getScrollableBlockIncrement(Rectangle, int, int) through queue |
boolean |
getScrollableTracksViewportHeight()
Maps JTable.getScrollableTracksViewportHeight() through queue |
boolean |
getScrollableTracksViewportWidth()
Maps JTable.getScrollableTracksViewportWidth() through queue |
int |
getScrollableUnitIncrement(Rectangle rectangle,
int i,
int i1)
Maps JTable.getScrollableUnitIncrement(Rectangle, int, int) through queue |
int |
getSelectedColumn()
Maps JTable.getSelectedColumn() through queue |
int |
getSelectedColumnCount()
Maps JTable.getSelectedColumnCount() through queue |
int[] |
getSelectedColumns()
Maps JTable.getSelectedColumns() through queue |
int |
getSelectedRow()
Maps JTable.getSelectedRow() through queue |
int |
getSelectedRowCount()
Maps JTable.getSelectedRowCount() through queue |
int[] |
getSelectedRows()
Maps JTable.getSelectedRows() through queue |
Color |
getSelectionBackground()
Maps JTable.getSelectionBackground() through queue |
Color |
getSelectionForeground()
Maps JTable.getSelectionForeground() through queue |
ListSelectionModel |
getSelectionModel()
Maps JTable.getSelectionModel() through queue |
boolean |
getShowHorizontalLines()
Maps JTable.getShowHorizontalLines() through queue |
boolean |
getShowVerticalLines()
Maps JTable.getShowVerticalLines() through queue |
JTableHeader |
getTableHeader()
Maps JTable.getTableHeader() through queue |
Timeouts |
getTimeouts()
Return current timeouts. |
TableUI |
getUI()
Maps JTable.getUI() through queue |
Object |
getValueAt(int i,
int i1)
Maps JTable.getValueAt(int, int) through queue |
boolean |
isCellEditable(int i,
int i1)
Maps JTable.isCellEditable(int, int) through queue |
boolean |
isCellSelected(int i,
int i1)
Maps JTable.isCellSelected(int, int) through queue |
boolean |
isColumnSelected(int i)
Maps JTable.isColumnSelected(int) through queue |
boolean |
isEditing()
Maps JTable.isEditing() through queue |
boolean |
isRowSelected(int i)
Maps JTable.isRowSelected(int) through queue |
void |
moveColumn(int i,
int i1)
Maps JTable.moveColumn(int, int) through queue |
Component |
prepareEditor(TableCellEditor tableCellEditor,
int i,
int i1)
Maps JTable.prepareEditor(TableCellEditor, int, int) through queue |
Component |
prepareRenderer(TableCellRenderer tableCellRenderer,
int i,
int i1)
Maps JTable.prepareRenderer(TableCellRenderer, int, int) through queue |
void |
removeColumn(TableColumn tableColumn)
Maps JTable.removeColumn(TableColumn) through queue |
void |
removeColumnSelectionInterval(int i,
int i1)
Maps JTable.removeColumnSelectionInterval(int, int) through queue |
void |
removeEditor()
Maps JTable.removeEditor() through queue |
void |
removeRowSelectionInterval(int i,
int i1)
Maps JTable.removeRowSelectionInterval(int, int) through queue |
int |
rowAtPoint(Point point)
Maps JTable.rowAtPoint(Point) through queue |
void |
scrollToCell(int row,
int column)
Scrolls to a cell if the table lies on a JScrollPane component. |
void |
selectAll()
Maps JTable.selectAll() through queue |
void |
selectCell(int row,
int column)
Selects a specified cell. |
void |
setAutoCreateColumnsFromModel(boolean b)
Maps JTable.setAutoCreateColumnsFromModel(boolean) through queue |
void |
setAutoResizeMode(int i)
Maps JTable.setAutoResizeMode(int) through queue |
void |
setCellEditor(TableCellEditor tableCellEditor)
Maps JTable.setCellEditor(TableCellEditor) through queue |
void |
setCellSelectionEnabled(boolean b)
Maps JTable.setCellSelectionEnabled(boolean) through queue |
void |
setColumnModel(TableColumnModel tableColumnModel)
Maps JTable.setColumnModel(TableColumnModel) through queue |
void |
setColumnSelectionAllowed(boolean b)
Maps JTable.setColumnSelectionAllowed(boolean) through queue |
void |
setColumnSelectionInterval(int i,
int i1)
Maps JTable.setColumnSelectionInterval(int, int) through queue |
void |
setDefaultEditor(Class clss,
TableCellEditor tableCellEditor)
Maps JTable.setDefaultEditor(Class, TableCellEditor) through queue |
void |
setDefaultRenderer(Class clss,
TableCellRenderer tableCellRenderer)
Maps JTable.setDefaultRenderer(Class, TableCellRenderer) through queue |
void |
setEditingColumn(int i)
Maps JTable.setEditingColumn(int) through queue |
void |
setEditingRow(int i)
Maps JTable.setEditingRow(int) through queue |
void |
setGridColor(Color color)
Maps JTable.setGridColor(Color) through queue |
void |
setIntercellSpacing(Dimension dimension)
Maps JTable.setIntercellSpacing(Dimension) through queue |
void |
setModel(TableModel tableModel)
Maps JTable.setModel(TableModel) through queue |
void |
setOutput(TestOut out)
Defines print output streams or writers. |
void |
setPreferredScrollableViewportSize(Dimension dimension)
Maps JTable.setPreferredScrollableViewportSize(Dimension) through queue |
void |
setRowHeight(int i)
Maps JTable.setRowHeight(int) through queue |
void |
setRowMargin(int i)
Maps JTable.setRowMargin(int) through queue |
void |
setRowSelectionAllowed(boolean b)
Maps JTable.setRowSelectionAllowed(boolean) through queue |
void |
setRowSelectionInterval(int i,
int i1)
Maps JTable.setRowSelectionInterval(int, int) through queue |
void |
setSelectionBackground(Color color)
Maps JTable.setSelectionBackground(Color) through queue |
void |
setSelectionForeground(Color color)
Maps JTable.setSelectionForeground(Color) through queue |
void |
setSelectionMode(int i)
Maps JTable.setSelectionMode(int) through queue |
void |
setSelectionModel(ListSelectionModel listSelectionModel)
Maps JTable.setSelectionModel(ListSelectionModel) through queue |
void |
setShowGrid(boolean b)
Maps JTable.setShowGrid(boolean) through queue |
void |
setShowHorizontalLines(boolean b)
Maps JTable.setShowHorizontalLines(boolean) through queue |
void |
setShowVerticalLines(boolean b)
Maps JTable.setShowVerticalLines(boolean) through queue |
void |
setTableHeader(JTableHeader jTableHeader)
Maps JTable.setTableHeader(JTableHeader) through queue |
void |
setTimeouts(Timeouts times)
Defines current timeouts. |
void |
setUI(TableUI tableUI)
Maps JTable.setUI(TableUI) through queue |
void |
setValueAt(Object object,
int i,
int i1)
Maps JTable.setValueAt(Object, int, int) through queue |
void |
tableChanged(TableModelEvent tableModelEvent)
Maps JTable.tableChanged(TableModelEvent) through queue |
void |
valueChanged(ListSelectionEvent listSelectionEvent)
Maps JTable.valueChanged(ListSelectionEvent) through queue |
void |
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,
ComponentChooser chooser)
Waits 0'th JTable in container. |
static JTable |
waitJTable(Container cont,
ComponentChooser chooser,
int index)
Waits JTable in container. |
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. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CELL_PREFIX_DPROP
getDump()
,
Constant Field Valuespublic static final String COLUMN_PREFIX_DPROP
getDump()
,
Constant Field Valuespublic static final String SELECTED_COLUMN_PREFIX_DPROP
getDump()
,
Constant Field Valuespublic static final String SELECTED_ROW_PREFIX_DPROP
getDump()
,
Constant Field Valuespublic static final String COLUMN_COUNT_DPROP
getDump()
,
Constant Field Valuespublic static final String ROW_COUNT_DPROP
getDump()
,
Constant Field ValuesConstructor Detail |
---|
public JTableOperator(JTable b)
b
- a componentpublic JTableOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- a containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JTableOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- a containerchooser
- a component chooser specifying searching criteria.public JTableOperator(ContainerOperator cont, String text, int row, int column, int index)
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.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public JTableOperator(ContainerOperator cont, String text, int row, int column)
cont
- a containertext
- Text of a cell which is currently selected.row
- a cell row to check.column
- a cell row to check.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public JTableOperator(ContainerOperator cont, String text, int index)
cont
- a containertext
- Text of a cell which is currently selected.index
- Ordinal component index.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public JTableOperator(ContainerOperator cont, String text)
cont
- a containertext
- Text of a cell which is currently selected.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public JTableOperator(ContainerOperator cont, int index)
cont
- a containerindex
- Ordinal component index.
TimeoutExpiredException
public JTableOperator(ContainerOperator cont)
cont
- a container
TimeoutExpiredException
Method Detail |
---|
public static JTable findJTable(Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.
public static JTable findJTable(Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.
public static JTable findJTable(Container cont, String text, boolean ce, boolean ccs, int row, int column, int index)
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.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static JTable findJTable(Container cont, String text, boolean ce, boolean ccs, int row, int column)
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.
Operator.isCaptionEqual(String, String, boolean, boolean)
public static JTable waitJTable(Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.
TimeoutExpiredException
public static JTable waitJTable(Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.
TimeoutExpiredException
public static JTable waitJTable(Container cont, String text, boolean ce, boolean ccs, int row, int column, int index)
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.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public static JTable waitJTable(Container cont, String text, boolean ce, boolean ccs, int row, int column)
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.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public void setTimeouts(Timeouts times)
Timeoutable
setTimeouts
in interface Timeoutable
setTimeouts
in class JComponentOperator
times
- A collection of timeout assignments.Timeoutable.getTimeouts()
public Timeouts getTimeouts()
Timeoutable
getTimeouts
in interface Timeoutable
getTimeouts
in class JComponentOperator
Timeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)
public void setOutput(TestOut out)
Outputable
setOutput
in interface Outputable
setOutput
in class JComponentOperator
out
- Identify the streams or writers used for print output.Outputable.getOutput()
public TestOut getOutput()
Outputable
getOutput
in interface Outputable
getOutput
in class JComponentOperator
Outputable.setOutput(org.netbeans.jemmy.TestOut)
public void copyEnvironment(Operator anotherOperator)
Operator
copyEnvironment
in class ComponentOperator
anotherOperator
- an operator to copy the environment to.public Point findCell(String text, Operator.StringComparator comparator, int index)
text
- a text patterncomparator
- a string comparision algorithmindex
- an ordinal cell index
public Point findCell(String text, Operator.StringComparator comparator, int[] rows, int[] columns, int index)
text
- a text patterncomparator
- a string comparision algorithmrows
- rows to search incolumns
- columns to search inindex
- an ordinal cell index
public int findCellRow(String text, Operator.StringComparator comparator, int index)
text
- a text patterncomparator
- a string comparision algorithmindex
- an ordinal cell index
public int findCellRow(String text, Operator.StringComparator comparator, int column, int index)
text
- a text patterncomparator
- a string comparision algorithmcolumn
- a column index to search inindex
- an ordinal cell index
public int findCellColumn(String text, Operator.StringComparator comparator, int index)
text
- a text patterncomparator
- a string comparision algorithmindex
- an ordinal cell index
public int findCellColumn(String text, Operator.StringComparator comparator, int row, int index)
text
- a text patterncomparator
- a string comparision algorithmrow
- a row index to search inindex
- an ordinal cell index
public int findCellRow(String text, boolean ce, boolean ccs, int index)
text
- Text to search by.ce
- Compare exactly.ccs
- Compare case sensitively.index
- Ordinal index in suitable cells.
findCellRow(String, int)
public int findCellColumn(String text, boolean ce, boolean ccs, int index)
text
- Text to search by.ce
- Compare exactly.ccs
- Compare case sensitively.index
- Ordinal index in suitable cells.
findCellColumn(String, int)
public int findCellRow(String text, boolean ce, boolean ccs)
text
- Text to search by.ce
- Compare exactly.ccs
- Compare case sensitively.
findCellRow(String)
public int findCellColumn(String text, boolean ce, boolean ccs)
text
- Text to search by.ce
- Compare exactly.ccs
- Compare case sensitively.
findCellColumn(String)
public int findCellRow(String text, Operator.StringComparator comparator)
text
- a text patterncomparator
- a string comparision algorithm
public int findCellColumn(String text, Operator.StringComparator comparator)
text
- a text patterncomparator
- a string comparision algorithm
public int findCellRow(String text, int index)
text
- Text to search by.index
- Ordinal index in suitable cells.
public int findCellRow(String text, int column, int index)
text
- a text patterncolumn
- a column index to search inindex
- Ordinal index in suitable cells.
public int findCellColumn(String text, int index)
text
- Text to search by.index
- Ordinal index in suitable cells.
public int findCellColumn(String text, int row, int index)
text
- a text patternrow
- a row index to search inindex
- Ordinal index in suitable cells.
public Point findCell(String text, int index)
text
- a text patternindex
- an ordinal cell index
public Point findCell(String text, int[] rows, int[] columns, int index)
text
- a text patternrows
- rows to search incolumns
- columns to search inindex
- an ordinal cell index
public int findCellRow(String text)
text
- Text to search by.
public int findCellColumn(String text)
text
- Text to search by.
public int findCellRow(ComponentChooser chooser, int index)
chooser
- Component verifying object.index
- Ordinal index in suitable cells.
public int findCellRow(ComponentChooser chooser, int column, int index)
chooser
- Component verifying object.column
- a column index to search inindex
- Ordinal index in suitable cells.
public int findCellColumn(ComponentChooser chooser, int index)
chooser
- Component verifying object.index
- Ordinal index in suitable cells.
public int findCellColumn(ComponentChooser chooser, int row, int index)
chooser
- Component verifying object.row
- a row index to search inindex
- Ordinal index in suitable cells.
public Point findCell(ComponentChooser chooser, int index)
chooser
- Component verifying object.index
- an ordinal cell index
public Point findCell(ComponentChooser chooser, int[] rows, int[] columns, int index)
chooser
- Component verifying object.rows
- rows to search incolumns
- columns to search inindex
- an ordinal cell index
public int findCellRow(ComponentChooser chooser)
chooser
- Component verifying object.
public int findCellColumn(ComponentChooser chooser)
chooser
- Component verifying object.
public Point findCell(ComponentChooser chooser)
chooser
- Component verifying object.
public int findCellRow(JTableOperator.TableCellChooser chooser, int index)
chooser
- Cell verifying object.index
- Ordinal index in suitable cells.
public int findCellRow(JTableOperator.TableCellChooser chooser, int column, int index)
chooser
- Cell verifying object.column
- a column index to search inindex
- Ordinal index in suitable cells.
public int findCellColumn(JTableOperator.TableCellChooser chooser, int index)
chooser
- ComponentCell verifying object.index
- Ordinal index in suitable cells.
public int findCellColumn(JTableOperator.TableCellChooser chooser, int row, int index)
chooser
- Cell verifying object.row
- a row index to search inindex
- Ordinal index in suitable cells.
public Point findCell(JTableOperator.TableCellChooser chooser, int index)
chooser
- cell verifying object.index
- an ordinal cell index
public Point findCell(JTableOperator.TableCellChooser chooser, int[] rows, int[] columns, int index)
chooser
- cell verifying object.rows
- rows to search incolumns
- columns to search inindex
- an ordinal cell index
public int findCellRow(JTableOperator.TableCellChooser chooser)
chooser
- Cell verifying object.
public int findCellColumn(JTableOperator.TableCellChooser chooser)
chooser
- Cell verifying object.
public Point findCell(JTableOperator.TableCellChooser chooser)
chooser
- cell verifying object.
public void clickOnCell(int row, int column, int clickCount, int button, int modifiers)
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)public void clickOnCell(int row, int column, int clickCount, int button)
row
- a row indexcolumn
- a column indexclickCount
- a number of clicksbutton
- a mouse button (value of InputEvent.BUTTON*_MASK field)public void clickOnCell(int row, int column, int clickCount)
row
- a row indexcolumn
- a column indexclickCount
- a number of clickspublic void clickOnCell(int row, int column)
row
- a row indexcolumn
- a column indexpublic void clickForEdit(int row, int column)
row
- a row indexcolumn
- a column index
TimeoutExpiredException
public void changeCellText(int row, int column, String newText)
row
- a row indexcolumn
- a column indexnewText
- a text to enter
TimeoutExpiredException
changeCellObject(int, int, Object)
public void changeCellObject(int row, int column, Object newValue)
row
- a row indexcolumn
- a column indexnewValue
- an object to chenge cell value to.
TimeoutExpiredException
public void scrollToCell(int row, int column)
row
- a row indexcolumn
- a column index
TimeoutExpiredException
public void selectCell(int row, int column)
row
- a row indexcolumn
- a column indexpublic int findColumn(String name, Operator.StringComparator comparator)
name
- a text patterncomparator
- a string comparision algorithm
public int findColumn(String name)
name
- a text pattern
public JPopupMenu callPopupOnCell(int row, int column)
row
- a row indexcolumn
- a column index
public Component getRenderedComponent(int row, int column, boolean isSelected, boolean cellHasFocus)
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.
public Component getRenderedComponent(int row, int column)
row
- cell row index.column
- cell column visible index.
public Point getPointToClick(int row, int column)
row
- a row indexcolumn
- a column index
public JTableHeaderOperator getHeaderOperator()
public Component waitCellComponent(ComponentChooser chooser, int row, int column)
chooser
- a chhoser specifying criteria to distinguish cell editor.row
- a row indexcolumn
- a column index
chooser
public void waitCell(String cellText, int row, int column)
cellText
- Text comparing to cell text by getComparator()
comparator.row
- cell row index. If -1, selected one is checked.column
- cell column visible index. If -1, selected one is checked.public Hashtable getDump()
getDump
in class JComponentOperator
public void addColumn(TableColumn tableColumn)
JTable.addColumn(TableColumn)
through queue
public void addColumnSelectionInterval(int i, int i1)
JTable.addColumnSelectionInterval(int, int)
through queue
public void addRowSelectionInterval(int i, int i1)
JTable.addRowSelectionInterval(int, int)
through queue
public void clearSelection()
JTable.clearSelection()
through queue
public void columnAdded(TableColumnModelEvent tableColumnModelEvent)
JTable.columnAdded(TableColumnModelEvent)
through queue
public int columnAtPoint(Point point)
JTable.columnAtPoint(Point)
through queue
public void columnMarginChanged(ChangeEvent changeEvent)
JTable.columnMarginChanged(ChangeEvent)
through queue
public void columnMoved(TableColumnModelEvent tableColumnModelEvent)
JTable.columnMoved(TableColumnModelEvent)
through queue
public void columnRemoved(TableColumnModelEvent tableColumnModelEvent)
JTable.columnRemoved(TableColumnModelEvent)
through queue
public void columnSelectionChanged(ListSelectionEvent listSelectionEvent)
JTable.columnSelectionChanged(ListSelectionEvent)
through queue
public int convertColumnIndexToModel(int i)
JTable.convertColumnIndexToModel(int)
through queue
public int convertColumnIndexToView(int i)
JTable.convertColumnIndexToView(int)
through queue
public void createDefaultColumnsFromModel()
JTable.createDefaultColumnsFromModel()
through queue
public boolean editCellAt(int i, int i1)
JTable.editCellAt(int, int)
through queue
public boolean editCellAt(int i, int i1, EventObject eventObject)
JTable.editCellAt(int, int, EventObject)
through queue
public void editingCanceled(ChangeEvent changeEvent)
JTable.editingCanceled(ChangeEvent)
through queue
public void editingStopped(ChangeEvent changeEvent)
JTable.editingStopped(ChangeEvent)
through queue
public boolean getAutoCreateColumnsFromModel()
JTable.getAutoCreateColumnsFromModel()
through queue
public int getAutoResizeMode()
JTable.getAutoResizeMode()
through queue
public TableCellEditor getCellEditor()
JTable.getCellEditor()
through queue
public TableCellEditor getCellEditor(int i, int i1)
JTable.getCellEditor(int, int)
through queue
public Rectangle getCellRect(int i, int i1, boolean b)
JTable.getCellRect(int, int, boolean)
through queue
public TableCellRenderer getCellRenderer(int i, int i1)
JTable.getCellRenderer(int, int)
through queue
public boolean getCellSelectionEnabled()
JTable.getCellSelectionEnabled()
through queue
public TableColumn getColumn(Object object)
JTable.getColumn(Object)
through queue
public Class getColumnClass(int i)
JTable.getColumnClass(int)
through queue
public int getColumnCount()
JTable.getColumnCount()
through queue
public TableColumnModel getColumnModel()
JTable.getColumnModel()
through queue
public String getColumnName(int i)
JTable.getColumnName(int)
through queue
public boolean getColumnSelectionAllowed()
JTable.getColumnSelectionAllowed()
through queue
public TableCellEditor getDefaultEditor(Class clss)
JTable.getDefaultEditor(Class)
through queue
public TableCellRenderer getDefaultRenderer(Class clss)
JTable.getDefaultRenderer(Class)
through queue
public int getEditingColumn()
JTable.getEditingColumn()
through queue
public int getEditingRow()
JTable.getEditingRow()
through queue
public Component getEditorComponent()
JTable.getEditorComponent()
through queue
public Color getGridColor()
JTable.getGridColor()
through queue
public Dimension getIntercellSpacing()
JTable.getIntercellSpacing()
through queue
public TableModel getModel()
JTable.getModel()
through queue
public Dimension getPreferredScrollableViewportSize()
JTable.getPreferredScrollableViewportSize()
through queue
public int getRowCount()
JTable.getRowCount()
through queue
public int getRowHeight()
JTable.getRowHeight()
through queue
public int getRowMargin()
JTable.getRowMargin()
through queue
public boolean getRowSelectionAllowed()
JTable.getRowSelectionAllowed()
through queue
public int getScrollableBlockIncrement(Rectangle rectangle, int i, int i1)
JTable.getScrollableBlockIncrement(Rectangle, int, int)
through queue
public boolean getScrollableTracksViewportHeight()
JTable.getScrollableTracksViewportHeight()
through queue
public boolean getScrollableTracksViewportWidth()
JTable.getScrollableTracksViewportWidth()
through queue
public int getScrollableUnitIncrement(Rectangle rectangle, int i, int i1)
JTable.getScrollableUnitIncrement(Rectangle, int, int)
through queue
public int getSelectedColumn()
JTable.getSelectedColumn()
through queue
public int getSelectedColumnCount()
JTable.getSelectedColumnCount()
through queue
public int[] getSelectedColumns()
JTable.getSelectedColumns()
through queue
public int getSelectedRow()
JTable.getSelectedRow()
through queue
public int getSelectedRowCount()
JTable.getSelectedRowCount()
through queue
public int[] getSelectedRows()
JTable.getSelectedRows()
through queue
public Color getSelectionBackground()
JTable.getSelectionBackground()
through queue
public Color getSelectionForeground()
JTable.getSelectionForeground()
through queue
public ListSelectionModel getSelectionModel()
JTable.getSelectionModel()
through queue
public boolean getShowHorizontalLines()
JTable.getShowHorizontalLines()
through queue
public boolean getShowVerticalLines()
JTable.getShowVerticalLines()
through queue
public JTableHeader getTableHeader()
JTable.getTableHeader()
through queue
public TableUI getUI()
JTable.getUI()
through queue
public Object getValueAt(int i, int i1)
JTable.getValueAt(int, int)
through queue
public boolean isCellEditable(int i, int i1)
JTable.isCellEditable(int, int)
through queue
public boolean isCellSelected(int i, int i1)
JTable.isCellSelected(int, int)
through queue
public boolean isColumnSelected(int i)
JTable.isColumnSelected(int)
through queue
public boolean isEditing()
JTable.isEditing()
through queue
public boolean isRowSelected(int i)
JTable.isRowSelected(int)
through queue
public void moveColumn(int i, int i1)
JTable.moveColumn(int, int)
through queue
public Component prepareEditor(TableCellEditor tableCellEditor, int i, int i1)
JTable.prepareEditor(TableCellEditor, int, int)
through queue
public Component prepareRenderer(TableCellRenderer tableCellRenderer, int i, int i1)
JTable.prepareRenderer(TableCellRenderer, int, int)
through queue
public void removeColumn(TableColumn tableColumn)
JTable.removeColumn(TableColumn)
through queue
public void removeColumnSelectionInterval(int i, int i1)
JTable.removeColumnSelectionInterval(int, int)
through queue
public void removeEditor()
JTable.removeEditor()
through queue
public void removeRowSelectionInterval(int i, int i1)
JTable.removeRowSelectionInterval(int, int)
through queue
public int rowAtPoint(Point point)
JTable.rowAtPoint(Point)
through queue
public void selectAll()
JTable.selectAll()
through queue
public void setAutoCreateColumnsFromModel(boolean b)
JTable.setAutoCreateColumnsFromModel(boolean)
through queue
public void setAutoResizeMode(int i)
JTable.setAutoResizeMode(int)
through queue
public void setCellEditor(TableCellEditor tableCellEditor)
JTable.setCellEditor(TableCellEditor)
through queue
public void setCellSelectionEnabled(boolean b)
JTable.setCellSelectionEnabled(boolean)
through queue
public void setColumnModel(TableColumnModel tableColumnModel)
JTable.setColumnModel(TableColumnModel)
through queue
public void setColumnSelectionAllowed(boolean b)
JTable.setColumnSelectionAllowed(boolean)
through queue
public void setColumnSelectionInterval(int i, int i1)
JTable.setColumnSelectionInterval(int, int)
through queue
public void setDefaultEditor(Class clss, TableCellEditor tableCellEditor)
JTable.setDefaultEditor(Class, TableCellEditor)
through queue
public void setDefaultRenderer(Class clss, TableCellRenderer tableCellRenderer)
JTable.setDefaultRenderer(Class, TableCellRenderer)
through queue
public void setEditingColumn(int i)
JTable.setEditingColumn(int)
through queue
public void setEditingRow(int i)
JTable.setEditingRow(int)
through queue
public void setGridColor(Color color)
JTable.setGridColor(Color)
through queue
public void setIntercellSpacing(Dimension dimension)
JTable.setIntercellSpacing(Dimension)
through queue
public void setModel(TableModel tableModel)
JTable.setModel(TableModel)
through queue
public void setPreferredScrollableViewportSize(Dimension dimension)
JTable.setPreferredScrollableViewportSize(Dimension)
through queue
public void setRowHeight(int i)
JTable.setRowHeight(int)
through queue
public void setRowMargin(int i)
JTable.setRowMargin(int)
through queue
public void setRowSelectionAllowed(boolean b)
JTable.setRowSelectionAllowed(boolean)
through queue
public void setRowSelectionInterval(int i, int i1)
JTable.setRowSelectionInterval(int, int)
through queue
public void setSelectionBackground(Color color)
JTable.setSelectionBackground(Color)
through queue
public void setSelectionForeground(Color color)
JTable.setSelectionForeground(Color)
through queue
public void setSelectionMode(int i)
JTable.setSelectionMode(int)
through queue
public void setSelectionModel(ListSelectionModel listSelectionModel)
JTable.setSelectionModel(ListSelectionModel)
through queue
public void setShowGrid(boolean b)
JTable.setShowGrid(boolean)
through queue
public void setShowHorizontalLines(boolean b)
JTable.setShowHorizontalLines(boolean)
through queue
public void setShowVerticalLines(boolean b)
JTable.setShowVerticalLines(boolean)
through queue
public void setTableHeader(JTableHeader jTableHeader)
JTable.setTableHeader(JTableHeader)
through queue
public void setUI(TableUI tableUI)
JTable.setUI(TableUI)
through queue
public void setValueAt(Object object, int i, int i1)
JTable.setValueAt(Object, int, int)
through queue
public void tableChanged(TableModelEvent tableModelEvent)
JTable.tableChanged(TableModelEvent)
through queue
public void valueChanged(ListSelectionEvent listSelectionEvent)
JTable.valueChanged(ListSelectionEvent)
through queue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |