public void handleUseSecurityCheckbox() { if ( useIntegratedSecurityCheck != null ) { if ( useIntegratedSecurityCheck.isChecked() ) { userNameBox.setDisabled( true ); passwordBox.setDisabled( true ); } else { userNameBox.setDisabled( false ); passwordBox.setDisabled( false ); } } }
/** * removeAcl method is called when the user select a or a list of acls to remove from the list. It first display a * confirmation box to the user asking to confirm the removal. If the user selected ok, it deletes selected acls from * the list * * @throws Exception */ public void removeAcl() throws Exception { confirmBox.open(); }
protected void showButtons( boolean showNew, boolean showEdit, boolean showRemove ) { userAddButton.setVisible( showNew ); userEditButton.setVisible( showEdit ); userRemoveButton.setVisible( showRemove ); }
public void changed( LocationEvent event ) { Browser browser = (Browser) event.widget; if ( back != null ) { back.setDisabled( !browser.isBackEnabled() ); forward.setDisabled( !browser.isForwardEnabled() ); location.setValue( browser.getUrl() ); } }
protected void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) { userAddButton.setDisabled( !enableNew ); userEditButton.setDisabled( !enableEdit ); userRemoveButton.setDisabled( !enableRemove ); }
@SuppressWarnings( { "unchecked", "rawtypes" } ) public void selectDatabase( XulMenuList wConnection, String name ) { wConnection.setSelectedItem( wConnection ); }
public void onClusterCheck() { if ( clusteringCheck != null ) { boolean dis = !clusteringCheck.isChecked(); if ( clusterParameterTree != null ) { clusterParameterTree.setDisabled( dis ); } if ( clusterParameterDescriptionLabel != null ) { clusterParameterDescriptionLabel.setDisabled( dis ); } } }
/** * Executed when the user checks or uncheck the "show this dialog at startup checkbox" It saves the current selection. */ public void updateShowDialogAtStartup() { helper.updateShowDialogOnStartup( showAtStartup.isChecked() ); }
/** * Sets the checked value of all the checkboxes * * @param value * the value */ public void setAllChecked( boolean value ) { for ( PermissionsCheckboxes permissionsCheckboxes : ALL_PERMISSIONS ) { permissionsCheckboxes.permissionCheckbox.setChecked( value ); } }
/** * Don't allow more queries until this one finishes. * * @param inProgress * is query in progress */ private void setQueryInProgress( final boolean inProgress ) { refreshButton.setDisabled( inProgress ); fetchNextBatchButton.setDisabled( inProgress ); fetchAllButton.setDisabled( inProgress ); }
/** * Sets the disabled value of all the checkboxes * * @param value * the value */ public void setAllDisabled( boolean value ) { for ( PermissionsCheckboxes permissionsCheckboxes : ALL_PERMISSIONS ) { permissionsCheckboxes.permissionCheckbox.setDisabled( value ); } } }
private void expand() { this.databaseTree.expandAll(); this.isExpanded = true; this.expandCollapseButton.setImage( COLLAPSE_ALL_IMAGE ); }
private boolean controlDisposed( XulToolbarbutton button ) { if ( button.getManagedObject() instanceof Widget ) { Widget widget = (Widget) button.getManagedObject(); return widget.isDisposed(); } return false; }
public void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) { XulButton bNew = (XulButton) document.getElementById( "slaves-new" ); XulButton bEdit = (XulButton) document.getElementById( "slaves-edit" ); XulButton bRemove = (XulButton) document.getElementById( "slaves-remove" ); bNew.setDisabled( !enableNew ); bEdit.setDisabled( !enableEdit ); bRemove.setDisabled( !enableRemove ); }
/** * Don't allow more queries until this one finishes. * * @param inProgress * is query in progress */ private void setQueryInProgress( final boolean inProgress ) { refreshButton.setDisabled( inProgress ); fetchNextBatchButton.setDisabled( inProgress ); fetchAllButton.setDisabled( inProgress ); }
/** * Controls the enabling and disabling of the checkboxes based on the permission level * * @param enableAppropriate * boolean indicating whether the appropriate boxes should be enabled (set to false to disable all) * @param permissionsCheckboxes * the permission level object */ private void enableDisableBoxes( boolean enableAppropriate, PermissionsCheckboxes permissionsCheckboxes ) { for ( XulCheckbox checkbox : permissionsCheckboxes.disabledBoxes ) { checkbox.setDisabled( true ); } for ( XulCheckbox checkbox : permissionsCheckboxes.enabledBoxes ) { checkbox.setDisabled( !enableAppropriate ); } }
private void collapse() { this.databaseTree.collapseAll(); this.isExpanded = false; this.expandCollapseButton.setImage( EXPAND_ALL_IMAGE ); }
public void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) { XulButton bNew = (XulButton) document.getElementById( "partitions-new" ); XulButton bEdit = (XulButton) document.getElementById( "partitions-edit" ); XulButton bRemove = (XulButton) document.getElementById( "partitions-remove" ); bNew.setDisabled( !enableNew ); bEdit.setDisabled( !enableEdit ); bRemove.setDisabled( !enableRemove ); }
private void setMoreRows( final boolean moreRows ) { fetchNextBatchButton.setDisabled( !moreRows ); }
private void setMoreRows( final boolean moreRows ) { fetchNextBatchButton.setDisabled( !moreRows ); }