gpt4 book ai didi

org.pentaho.ui.xul.components.XulButton.setDisabled()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 21:42:40 25 4
gpt4 key购买 nike

本文整理了Java中org.pentaho.ui.xul.components.XulButton.setDisabled()方法的一些代码示例,展示了XulButton.setDisabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XulButton.setDisabled()方法的具体详情如下:
包路径:org.pentaho.ui.xul.components.XulButton
类名称:XulButton
方法名:setDisabled

XulButton.setDisabled介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

protected void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) {
 userAddButton.setDisabled( !enableNew );
 userEditButton.setDisabled( !enableEdit );
 userRemoveButton.setDisabled( !enableRemove );
}

代码示例来源:origin: pentaho/pentaho-kettle

@Override
protected void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) {
 super.enableButtons( enableNew, enableEdit, enableRemove );
 roleAddButton.setDisabled( !enableNew );
 roleEditButton.setDisabled( !enableEdit );
 roleRemoveButton.setDisabled( !enableRemove );
 addUserToRoleButton.setDisabled( !enableNew );
 removeUserFromRoleButton.setDisabled( !enableNew );
 addRoleToUserButton.setDisabled( !enableNew );
 removeRoleFromUserButton.setDisabled( !enableNew );
}

代码示例来源:origin: pentaho/pentaho-kettle

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 );
}

代码示例来源:origin: pentaho/pentaho-kettle

public void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) {
 XulButton bNew = (XulButton) document.getElementById( "clusters-new" );
 XulButton bEdit = (XulButton) document.getElementById( "clusters-edit" );
 XulButton bRemove = (XulButton) document.getElementById( "clusters-remove" );
 bNew.setDisabled( !enableNew );
 bEdit.setDisabled( !enableEdit );
 bRemove.setDisabled( !enableRemove );
}

代码示例来源:origin: pentaho/pentaho-kettle

public void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) {
 XulButton bNew = (XulButton) document.getElementById( "connections-new" );
 XulButton bEdit = (XulButton) document.getElementById( "connections-edit" );
 XulButton bRemove = (XulButton) document.getElementById( "connections-remove" );
 bNew.setDisabled( !enableNew );
 bEdit.setDisabled( !enableEdit );
 bRemove.setDisabled( !enableRemove );
}

代码示例来源:origin: pentaho/pentaho-kettle

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 );
}

代码示例来源:origin: pentaho/pentaho-kettle

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" ) );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

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();
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

okButton.setDisabled( true );
 cancelButton.setDisabled( true );
 box.start();
} catch ( XulException e1 ) {

代码示例来源:origin: pentaho/pentaho-kettle

applyAclButton.setDisabled( true );
 addAclButton.setDisabled( true );
 removeAclButton.setDisabled( true );
 manageAclCheckbox.setDisabled( true );
 deleteCheckbox.setDisabled( true );
 viewAclsModel.setHasManageAclAccess( false );
} else {
 applyAclButton.setDisabled( false );
 addAclButton.setDisabled( false );
 viewAclsModel.setHasManageAclAccess( true );

代码示例来源:origin: pentaho/pentaho-kettle

if ( !hasManageAclAccess() ) {
 applyAclButton.setDisabled( true );
 addAclButton.setDisabled( true );
 removeAclButton.setDisabled( true );
 inheritParentPermissionCheckbox.setDisabled( true );
 manageAclCheckbox.setDisabled( true );
 viewAclsModel.setHasManageAclAccess( false );
} else {
 applyAclButton.setDisabled( false );
 inheritParentPermissionCheckbox.setDisabled( false );
 viewAclsModel.setHasManageAclAccess( true );

代码示例来源:origin: pentaho/data-access

public void error( String message, Throwable error ) {
 showMessagebox( "Error", error.getLocalizedMessage() ); //$NON-NLS-1$
 removeDatasourceButton.setDisabled( false );
}

代码示例来源:origin: pentaho/big-data-plugin

public void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) {
 XulButton bNew = (XulButton) document.getElementById( "named-clusters-new" );
 XulButton bEdit = (XulButton) document.getElementById( "named-clusters-edit" );
 XulButton bRemove = (XulButton) document.getElementById( "named-clusters-remove" );
 bNew.setDisabled( !enableNew );
 bEdit.setDisabled( !enableEdit );
 bRemove.setDisabled( !enableRemove );
}

代码示例来源:origin: pentaho/data-access

public void success( Boolean retVal ) {
  refreshDatasources( null, null );
  removeDatasourceConfirmationDialog.hide();
  removeDatasourceButton.setDisabled( false );
 }
} );

代码示例来源:origin: pentaho/data-access

@Override
 public void error( String s, Throwable throwable ) {
  finishButton.setDisabled( false );
  throwable.printStackTrace();
  MessageHandler.getInstance().showErrorDialog( throwable.getMessage() );
 }
} );

代码示例来源:origin: pentaho/data-access

public void propertyChange( PropertyChangeEvent evt ) {
  boolean isDisabled = StringUtils.isEmpty( paramNameTextBox.getValue() )
   || StringUtils.isEmpty( paramValueTextBox.getValue() );
  parametersAcceptButton.setDisabled( isDisabled );
 }
}

代码示例来源:origin: pentaho/data-access

@Bindable
public void removeParameter() {
 int[] selectedRows = analysisParametersTree.getSelectedRows();
 if ( selectedRows.length == 1 ) {
  importDialogModel.removeParameter( selectedRows[ 0 ] );
  acceptButton.setDisabled( !isValid() );
 }
}

代码示例来源:origin: pentaho/data-access

@Bindable
public void setPreference( Integer preference ) {
 analysisPreferencesDeck.setSelectedIndex( preference );
 importDialogModel.setParameterMode( preference == PARAMETER_MODE );
 acceptButton.setDisabled( !isValid() );
}

代码示例来源:origin: pentaho/data-access

@Override
 public void onChange( ChangeEvent event ) {
  schemaNameLabel.setValue( ( (FileUpload) event.getSource() ).getFilename() );
  importDialogModel.setUploadedFile( ( (FileUpload) event.getSource() ).getFilename() );
  acceptButton.setDisabled( !isValid() );
 }
} );

代码示例来源:origin: pentaho/data-access

@Bindable
public void addParameter() {
 String paramName = paramNameTextBox.getValue();
 String paramValue = paramValueTextBox.getValue();
 if ( !StringUtils.isEmpty( paramName ) && !StringUtils.isEmpty( paramValue ) ) {
  importDialogModel.addParameter( paramName, paramValue );
  closeParametersDialog();
  acceptButton.setDisabled( !isValid() );
 }
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com