| jacareto.test.Test jacareto.test.JComponentTest jacareto.test.JTableTest
JTableTest | public class JTableTest extends JComponentTest (Code) | | Test class for testing java.swing.JTable components. The following criteria are
tested by this class:
-
selected row - tests if the correct row is selected
-
selected column - tests if the correct column is selected
author: Christian Spannagel version: 1.0 |
Constructor Summary | |
public | JTableTest(Environment env, String componentName, boolean isIgnoring, boolean isCorrecting, boolean hasFocus, boolean isEnabled, int selectedRow, int selectedColumn) Creates a new test with the specified values. | public | JTableTest(Environment env, Components components, Component component) Creates a new test with the values of the given component and default values.
Parameters: env - the environment. Parameters: components - the components instance Parameters: component - the component to test. | public | JTableTest() Creates a new test with default values and no environment. |
JTableTest | public JTableTest(Environment env, String componentName, boolean isIgnoring, boolean isCorrecting, boolean hasFocus, boolean isEnabled, int selectedRow, int selectedColumn)(Code) | | Creates a new test with the specified values.
Parameters: env - env the environment Parameters: componentName - the name of the component Parameters: isIgnoring - if the test result should be ignored Parameters: isCorrecting - if the values of the component should be corrected when the test hasfailed Parameters: hasFocus - if the component has the focus Parameters: isEnabled - if the component is set enabled Parameters: selectedRow - the number of the selected row Parameters: selectedColumn - the number of the selected column |
JTableTest | public JTableTest(Environment env, Components components, Component component)(Code) | | Creates a new test with the values of the given component and default values.
Parameters: env - the environment. Parameters: components - the components instance Parameters: component - the component to test. Must be of type javax.swing.JTable . |
getSelectedColumn | public int getSelectedColumn()(Code) | | Returns the number of the selected column
the index of the selected column |
getSelectedRow | public int getSelectedRow()(Code) | | Returns the number of the selected row
the index of the selected row |
setSelectedColumn | public void setSelectedColumn(int selectedColumn)(Code) | | Sets the number of the selected column.
Parameters: selectedColumn - the index of the selected column |
setSelectedRow | public void setSelectedRow(int selectedRow)(Code) | | Sets the number of the selected row.
Parameters: selectedRow - the index of the selected row |
|
|