public void changeToRoleDeck() { security.setSelectedDeck( ObjectRecipient.Type.ROLE ); instructionalTextLabel.setValue( BaseMessages.getString( PKG, "SecurityTab.RoleInstructionalText" ) ); }
public void onClusterCheck() { if ( clusteringCheck != null ) { boolean dis = !clusteringCheck.isChecked(); if ( clusterParameterTree != null ) { clusterParameterTree.setDisabled( dis ); } if ( clusterParameterDescriptionLabel != null ) { clusterParameterDescriptionLabel.setDisabled( dis ); } } }
private void setReadOnly( boolean readonly ) { // set the readonly status of EVERYTHING! traverseDomSetReadOnly( document.getRootElement(), readonly ); if ( noticeLabel != null ) { noticeLabel.setVisible( readonly ); } if ( readonly ) { // now turn back on the cancel and test buttons if ( cancelButton != null ) { cancelButton.setDisabled( false ); } if ( testButton != null ) { testButton.setDisabled( false ); } noticeLabel.setValue( Messages.getString( "DatabaseDialog.label.ConnectionIsReadOnly" ) ); } }
@Override public void activating() throws XulException { // get the grid itself so we can update it later final XulGrid stepGrid = (XulGrid) document.getElementById( STEP_GRID_ID ); // grab the rows and add a new row to it final XulRows stepRows = (XulRows) document.getElementById( STEP_ROWS_ID ); stepRow = (XulRow) document.createElement( XUL_ROW_TYPE ); stepRows.addChild( stepRow ); // Create and add the activeImage to the row (goes in the first column) stepImage = (XulImage) document.createElement( XUL_IMAGE_TYPE ); stepImage.setSrc( STEP_IMAGE_SRC ); stepImage.setId( this.getStepName() ); stepImage.setVisible( false ); ( (GwtImage) stepImage ).setAttribute( "pen:classname", "pentaho-chevron" ); //$NON-NLS-1$ //$NON-NLS-2$ stepRow.addChild( stepImage ); // Create and add the text label to the row (goes in the second column) stepLabel = (XulLabel) document.createElement( XUL_LABEL_TYPE ); stepLabel.setValue( this.getStepName() ); stepLabel.setFlex( 1 ); stepRow.addChild( stepLabel ); stepGrid.update(); activated = true; }
public void changeToSystemRoleDeck() { security.setSelectedDeck( ObjectRecipient.Type.SYSTEM_ROLE ); instructionalTextLabel.setValue( BaseMessages.getString( PKG, "SecurityTab.SystemRoleInstructionalText" ) ); }
public void onPoolingCheck() { if ( poolingCheck != null ) { boolean dis = !poolingCheck.isChecked(); if ( poolSizeBox != null ) { poolSizeBox.setDisabled( dis ); } if ( maxPoolSizeBox != null ) { maxPoolSizeBox.setDisabled( dis ); } if ( poolSizeLabel != null ) { poolSizeLabel.setDisabled( dis ); } if ( maxPoolSizeLabel != null ) { maxPoolSizeLabel.setDisabled( dis ); } if ( poolParameterTree != null ) { poolParameterTree.setDisabled( dis ); } if ( poolingParameterDescriptionLabel != null ) { poolingParameterDescriptionLabel.setDisabled( dis ); } if ( poolingDescriptionLabel != null ) { poolingDescriptionLabel.setDisabled( dis ); } if ( poolingDescription != null ) { poolingDescription.setDisabled( dis ); } } }
.setValue( BaseMessages.getString( PKG, "AclTab.UserRolePermission", repoObject.getName() ) ); //$NON-NLS-1$ bf.setBindingType( Binding.Type.ONE_WAY ); bf.createBinding( viewAclsModel, "acls", userRoleList, "elements" ); //$NON-NLS-1$ //$NON-NLS-2$
public void setDisabled( boolean disabled ) { boolean oldDisabled = this.disabled; this.disabled = disabled; if ( stepLabel != null ) { stepLabel.setDisabled( this.disabled ); } this.firePropertyChange( DISABLED_PROPERTY_NAME, oldDisabled, this.disabled ); }
connNameLabel.setValue( BaseMessages.getString( PKG, "AclTab.ConnectionPermission", dbconnObject.getDisplayName() ) ); //$NON-NLS-1$ bf.setBindingType( Binding.Type.ONE_WAY );
public void showErrorDialog( String message ) { errorLabel.setValue( message ); errorDialog.show(); }
public void showSuccessDialog( String message ) { successLabel.setValue( message ); successDialog.show(); }
public void showSuccessDialog( String message ) { successLabel.setValue( message ); successDialog.show(); }
public void showErroDialog( String error ) { errorLabel.setValue( error ); errorDialog.show(); }
public void showErrorDetailsDialog( String title, String message, String detailMessage ) { XulDialog errorDialog = (XulDialog) document.getElementById( "errorDetailsDialog" ); errorDialog.setTitle( title ); XulLabel errorLabel = (XulLabel) document.getElementById( "errorDetailsLabel" ); errorLabel.setValue( message ); XulLabel detailMessageBox = (XulLabel) document.getElementById( "error_dialog_details" ); detailMessageBox.setValue( detailMessage ); errorDialog.show(); }
@Bindable public void openSuccesDialog( String title, String message ) { successDialog.setTitle( title ); successLabel.setValue( message ); successDialog.show(); }
@Bindable public void setSelectedFile( String name ) { schemaNameLabel.setValue( name ); importDialogModel.setUploadedFile( name ); firePropertyChange( "selectedFile", null, name ); //$NON-NLS-1$ }
@Bindable public void openSuccesDialog( String title, String message ) { successDialog.setTitle( title ); successLabel.setValue( message ); successDialog.show(); }
@Bindable public void openErrorDialog( String title, String message ) { errorDialog.setTitle( title ); errorLabel.setValue( message ); errorDialog.show(); }
@Bindable public void openErrorDialog( String title, String message ) { errorDialog.setTitle( title ); errorLabel.setValue( message ); errorDialog.show(); }