XulTreeCell cell = potRow.getRow().getCell( 0 ); XulTreeCell cell2 = potRow.getRow().getCell( 1 ); if ( cell != null && cell.getLabel() != null && cell.getLabel().equals( "instance" ) ) { cell2.setLabel( serverInstanceBox.getValue() ); if ( serverInstanceBox.getValue().trim().length() == 0 ) { cell.setLabel( "" );
for ( int j = 0; j < columnCount; j++ ) { XulTreeCell cell = (XulTreeCell) document.createElement( "treecell" ); //$NON-NLS-1$ cell.setLabel( getCellData( data, i, j ) ); row.addCell( cell );
@Bindable public void selectAll() { XulTree tree = (XulTree) document.getElementById( "csvModelDataTable" ); //$NON-NLS-1$ for ( XulComponent component : tree.getRootChildren().getChildNodes() ) { XulTreeItem item = (XulTreeItem) component; for ( XulComponent childComp : item.getChildNodes() ) { XulTreeRow row = (XulTreeRow) childComp; XulTreeCell cell = row.getCell( 0 ); cell.setValue( true ); } } datasourceModel.getModelInfo().validate(); }
public void restoreDefaults() { if ( poolParameterTree != null ) { for ( int i = 0; i < poolParameterTree.getRootChildren().getItemCount(); i++ ) { XulTreeItem item = poolParameterTree.getRootChildren().getItem( i ); String parameterName = item.getRow().getCell( 1 ).getLabel(); String defaultValue = DatabaseConnectionPoolParameter .findParameter( parameterName, BaseDatabaseMeta.poolingParameters ).getDefaultValue(); if ( ( defaultValue == null ) || ( defaultValue.trim().length() <= 0 ) ) { continue; } item.getRow().addCellText( 2, defaultValue ); } } }
@Bindable public void deselectAll() { XulTree tree = (XulTree) document.getElementById( "csvModelDataTable" ); //$NON-NLS-1$ for ( XulComponent component : tree.getRootChildren().getChildNodes() ) { XulTreeItem item = (XulTreeItem) component; for ( XulComponent childComp : item.getChildNodes() ) { XulTreeRow row = (XulTreeRow) childComp; XulTreeCell cell = row.getCell( 0 ); cell.setValue( false ); } } datasourceModel.getModelInfo().validate(); }