/** * 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() ); }
public void updateModificationComments() { model.setModificationComments( modificationComments.isChecked() ); }
/** * Update the model with the current status */ public void updateSystemRoleActionPermission() { for ( Entry<XulCheckbox, String> currentEntry : logicalSystemRoleChecboxMap.entrySet() ) { XulCheckbox permissionCheckbox = currentEntry.getKey(); if ( permissionCheckbox.isChecked() ) { absSecurity.addLogicalRole( currentEntry.getValue() ); } else { absSecurity.removeLogicalRole( currentEntry.getValue() ); } } }
/** * Update the model with the current status */ public void updateRoleActionPermission() { for ( Entry<XulCheckbox, String> currentEntry : logicalRoleChecboxMap.entrySet() ) { XulCheckbox permissionCheckbox = currentEntry.getKey(); if ( permissionCheckbox.isChecked() ) { absSecurity.addLogicalRole( currentEntry.getValue() ); } else { absSecurity.removeLogicalRole( currentEntry.getValue() ); } } }
public void onClusterCheck() { if ( clusteringCheck != null ) { boolean dis = !clusteringCheck.isChecked(); if ( clusterParameterTree != null ) { clusterParameterTree.setDisabled( dis ); } if ( clusterParameterDescriptionLabel != null ) { clusterParameterDescriptionLabel.setDisabled( dis ); } } }
/** * Goes through the checkboxes and returns the resulting set of permissions * * @param enableAppropriate * boolean indicating whether the appropriate boxes should be enabled (set to false to disable all) * @return the resulting set of permissions */ public EnumSet<RepositoryFilePermission> processCheckboxes( boolean enableAppropriate ) { EnumSet<RepositoryFilePermission> result = EnumSet.noneOf( RepositoryFilePermission.class ); boolean foundMaxPermission = false; for ( PermissionsCheckboxes permissionsCheckboxes : ALL_PERMISSIONS ) { if ( foundMaxPermission ) { result.add( permissionsCheckboxes.repositoryFilePermission ); } else if ( permissionsCheckboxes.permissionCheckbox.isChecked() ) { enableDisableBoxes( enableAppropriate, permissionsCheckboxes ); foundMaxPermission = true; result.add( permissionsCheckboxes.repositoryFilePermission ); } } if ( !foundMaxPermission ) { setAllDisabled( true ); if ( enableAppropriate ) { ALL_PERMISSIONS.get( ALL_PERMISSIONS.size() - 1 ).permissionCheckbox.setDisabled( false ); } } return result; }
@Override protected void updateCheckboxes( UIRepositoryObjectAcl acl ) { permissionsCheckboxHandler.updateCheckboxes( !inheritParentPermissionCheckbox.isChecked() && hasManageAclAccess(), acl.getPermissionSet() ); } }
public void updateInheritFromParentPermission() throws AccessDeniedException { viewAclsModel.setEntriesInheriting( inheritParentPermissionCheckbox.isChecked() ); if ( inheritParentPermissionCheckbox.isChecked() ) { addAclButton.setDisabled( true ); UIRepositoryObject ro = repoObject.get( 0 ); if ( ro instanceof IAclObject ) { // force inherit to true to get effective ACLs before apply... ( (IAclObject) ro ).clearAcl(); ( (IAclObject) ro ).getAcls( viewAclsModel, true ); } permissionsCheckboxHandler.updateCheckboxes( EnumSet.noneOf( RepositoryFilePermission.class ) ); } else { addAclButton.setDisabled( !hasManageAclAccess() ); permissionsCheckboxHandler.processCheckboxes(); } }
public void handleUseSecurityCheckbox() { if ( useIntegratedSecurityCheck != null ) { if ( useIntegratedSecurityCheck.isChecked() ) { userNameBox.setDisabled( true ); passwordBox.setDisabled( true ); } else { userNameBox.setDisabled( false ); passwordBox.setDisabled( false ); } } }
meta.setSupportsBooleanDataType( supportBooleanDataType.isChecked() ); meta.setSupportsTimestampDataType( supportTimestampDataType.isChecked() ); meta.setQuoteAllFields( quoteIdentifiersCheck.isChecked() ); meta.setForcingIdentifiersToLowerCase( lowerCaseIdentifiersCheck.isChecked() ); meta.setForcingIdentifiersToUpperCase( upperCaseIdentifiersCheck.isChecked() ); meta.setPreserveReservedCase( preserveReservedCaseCheck.isChecked() ); .setStrictBigNumberInterpretation( strictBigNumberInterpretaion.isChecked() ); meta.setPartitioned( clusteringCheck.isChecked() ); meta.setUsingConnectionPool( poolingCheck.isChecked() );
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 ); } } }
meta.setStreamingResults( resultStreamingCursorCheck.isChecked() ); meta.setUsingDoubleDecimalAsSchemaTableSeparator( doubleDecimalSeparatorCheck.isChecked() ); Boolean useIntegratedSecurity = useIntegratedSecurityCheck.isChecked(); meta.getAttributes().put( MSSQLServerNativeDatabaseMeta.ATTRIBUTE_USE_INTEGRATED_SECURITY,
@Bindable public void setTimeDimension( boolean timeDimension ) { if ( getNode() != null ) { getNode().setTimeDimension( timeDimension ); } if ( timeDimension == isTimeDim.isChecked() ) { return; } isTimeDim.setChecked( timeDimension ); }
@Bindable public void setUniqueMembers( boolean uniqueMembers ) { if ( getNode() != null ) { getNode().setUniqueMembers( uniqueMembers ); } if ( uniqueMembers == hasUniqueMembers.isChecked() ) { return; } hasUniqueMembers.setChecked( uniqueMembers ); }