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 ); } } }
XulTreeItem potRow = optionsParameterTree.getRootChildren().getItem( i ); if ( potRow != null && potRow.getRow() != null ) { 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() );
@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(); }
@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(); }