|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SwingTable
SwingTable is created to represent javax.swing.JTable component
The following code fragment illustrates how to create an
SwingTable
element.
var element = engine.createSwingTable(1, 5);where engine is object of
IScriptEngine
Method Summary | |
---|---|
java.lang.String |
getColumnClass(int column)
Returns the type of the column appearing in the view at column position column . |
int |
getColumnCount()
Returns the number of columns in the column model. |
java.lang.String |
getColumnName(int column)
Returns the name of the column appearing in the view at column position column . |
int |
getRowCount()
Returns the number of rows in this table's model. |
int |
getSelectedColumn()
Returns the index of the first selected column, -1 if no column is selected. |
int |
getSelectedColumnCount()
Returns the number of selected columns. |
int[] |
getSelectedColumns()
Returns the indices of all selected columns. |
int |
getSelectedRow()
Returns the index of the first selected row, -1 if no row is selected. |
int |
getSelectedRowCount()
Returns the number of selected rows. |
int[] |
getSelectedRows()
Returns the indices of all selected rows. |
java.lang.String |
getValueAt(int row,
int column)
Returns the cell value at row and column . |
boolean |
isCellEditable(int row,
int column)
Returns true if the cell at row and column
is editable. |
boolean |
isCellSelected(int row,
int column)
Returns true if the cell at the specified position is selected. |
boolean |
isColumnSelected(int column)
Returns true if the column at the specified index is selected. |
boolean |
isRowSelected(int row)
Returns true if the row at the specified index is selected. |
boolean |
setValueAt(java.lang.String value,
int row,
int column)
Sets the value for the cell in the table model at row and
column . |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtContainer |
---|
getComponentCount |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.JavaComponent |
---|
activate, addAttribute, captureImage, click, close, dblClick, drag, drop, getName, getText, getToolTipText, maximize, minimize, mouseMove, restore, rightClick, set, setBreakPoint, setIgnored, setImagePath, setName, setThinkTime, setTitle, type |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout |
Method Detail |
---|
java.lang.String getColumnClass(int column)
column
.
column
- the column in the view being queried
column
in the
view where the first column is column 0int getColumnCount()
java.lang.String getColumnName(int column)
column
.
column
- the column in the view being queried
column
in the
view where the first column is column 0int getRowCount()
int getSelectedColumn()
int getSelectedColumnCount()
int[] getSelectedColumns()
int getSelectedRow()
int getSelectedRowCount()
int[] getSelectedRows()
java.lang.String getValueAt(int row, int column)
row
and column
.
row
- the row whose value is to be queriedcolumn
- the column whose value is to be queried
boolean isCellEditable(int row, int column)
row
and column
is editable.
row
- the row whose value is to be queriedcolumn
- the column whose value is to be queried
boolean isCellSelected(int row, int column)
row
- the row being queriedcolumn
- the column being queried
(row, column)
is
selected, where the first row and first column are at index 0boolean isColumnSelected(int column)
column
- index
column
is selected,
where 0 is the first columnboolean isRowSelected(int row)
row
- index
row
is selected, where 0
is the first rowboolean setValueAt(java.lang.String value, int row, int column)
row
and
column
.
value
- the new valuerow
- the row of the cell to be changedcolumn
- the column of the cell to be changed
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |