public void editOptions( int index ) { if ( index + 1 == optionsParameterTree.getRows() ) { // editing last row add a new one below Object[][] values = optionsParameterTree.getValues(); Object[] row = values[values.length - 1]; if ( row != null && ( !StringUtils.isEmpty( (String) row[0] ) || !StringUtils.isEmpty( (String) row[1] ) ) ) { // acutally have something in current last row XulTreeRow newRow = optionsParameterTree.getRootChildren().addNewRow(); newRow.addCellText( 0, "" ); newRow.addCellText( 1, "" ); } } }
String databaseType = databaseTypeString; if ( currentType != null && currentType.equals( databaseType ) ) { XulTreeRow row = optionsParameterTree.getRootChildren().addNewRow(); row.addCellText( 0, parameterOption ); row.addCellText( 1, value ); XulTreeRow row = optionsParameterTree.getRootChildren().addNewRow(); row.addCellText( 0, "" ); // easy way of putting new cells in the row row.addCellText( 1, "" );
private void setDefaultPoolParameters() { if ( poolParameterTree != null ) { for ( DatabaseConnectionPoolParameter parameter : BaseDatabaseMeta.poolingParameters ) { XulTreeRow row = poolParameterTree.getRootChildren().addNewRow(); row.addCellText( 0, "false" ); row.addCellText( 1, parameter.getParameter() ); row.addCellText( 2, parameter.getDefaultValue() ); } } }
while ( theItr.hasNext() ) { theObj = theItr.next(); theRow = thePreviewTable.getRootChildren().addNewRow(); theRowCount++; for ( int i = 0; i < theObj.length; i++ ) {
XulTreeRow tRow = tableView.getRootChildren().addNewRow();
XulTreeRow row = clusterParameterTree.getRootChildren().addNewRow(); row.addCellText( 0, Const.NVL( meta.getPartitionId(), "" ) ); row.addCellText( 1, Const.NVL( meta.getHostname(), "" ) ); XulTreeRow row = clusterParameterTree.getRootChildren().addNewRow(); row.addCellText( 0, "" ); // easy way of putting new cells in the row row.addCellText( 1, "" );