public TableOperator createOperatorByIndex(int index) { return new TableOperator(new JTableOperator((ContainerOperator) Context.getContext(), index)); }
/** Tries to find null JTable in this dialog. * @return JTableOperator */ public JTableOperator tabSourcePackageFolders() { if (_tabSourcePackageFolders==null) { if (lblSourcePackageFolders().getLabelFor()!=null) { _tabSourcePackageFolders = new JTableOperator( (JTable) lblSourcePackageFolders().getLabelFor()); } else { _tabSourcePackageFolders = new JTableOperator(this); } } return _tabSourcePackageFolders; }
public TableOperator createOperatorByName(String name) { return new TableOperator(new JTableOperator((ContainerOperator) Context.getContext(), new ByNameComponentChooser(name))); } }
/** * find a table and select a cell in it. double click if requested * * @param operator * the operator to search in * @param fieldLabel * the column name * @param value * the value to search in the column cells * @param doubleClick * if True will double click the cell, False will only select */ public void selectInTable(ContainerOperator operator, String fieldLabel, Object value, boolean doubleClick) { JTableOperator table = new JTableOperator(operator); int column = table.findColumn(fieldLabel); int row = table.findCellRow(value.toString(), column, 0); if (doubleClick) { table.clickOnCell(row, column, 2); } else { table.selectCell(row, column); } }