gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-23 01:45:05 29 4
gpt4 key购买 nike

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

XulComponent.setDisabled介绍

暂无

代码示例

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

private void traverseDomSetReadOnly( XulComponent component, boolean readonly ) {
 component.setDisabled( readonly );
 List<XulComponent> children = component.getChildNodes();
 if ( children != null && children.size() > 0 ) {
  for ( XulComponent child : children ) {
   child.setDisabled( readonly );
   traverseDomSetReadOnly( child, readonly );
  }
 }
}

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

private void disableButtons() {
 document.getElementById( OPEN_REVISION_BUTTON ).setDisabled( true );
 document.getElementById( RESTORE_REVISION_BUTTON ).setDisabled( true );
}

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

private void disableMenuItem( org.pentaho.ui.xul.dom.Document doc, String itemId, boolean disable ) {
 XulComponent menuItem = doc.getElementById( itemId );
 if ( menuItem != null ) {
  menuItem.setDisabled( disable );
 } else {
  log.logError( "Non-Fatal error : Menu Item with id = " + itemId + " does not exist! Check 'menubar.xul'" );
 }
}

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

boolean executePermitted = securityProvider.isAllowed( IAbsSecurityProvider.EXECUTE_CONTENT_ACTION );
container.getDocumentRoot().getElementById( "folder-context-export" ).setDisabled( !createPermitted || !executePermitted );

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

/**
 * Set the enabled state for all buttons that require a valid database to be selected.
 *
 * @param b
 *          {@code true} if the buttons should be disabled
 */
protected void setDatabaseInteractionButtonsDisabled( boolean b ) {
 document.getElementById( getEditConnectionButtonId() ).setDisabled( b );
 document.getElementById( getBrowseTableButtonId() ).setDisabled( b );
 // document.getElementById(getBrowseSchemaButtonId()).setDisabled(b);
}

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

private void updateDeleteButton() {
 boolean disabled = config.getCustomArguments().size() == 0;
 XulComponent delete = getXulDomContainer().getDocumentRoot().getElementById( "delete-button" );
 delete.setDisabled( disabled );
}

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

public void success( Domain retVal ) {
 model.setDomain( retVal );
 if ( model.getLogicalModel( modelerPerspective ) != null ) {
  controller.setModelerPerspective( modelerPerspective );
 } else {
  controller.setModelerPerspective( ModelerPerspective.REPORTING );
 }
 controller.resetPropertyForm();
 // disable edit button if required model not present (imported dsw)
 XulComponent editIcon = container.getDocumentRoot().getElementById( EDIT_TOOLBAR_BUTTON_ID );
 boolean disabled = model.getDomain().getLogicalModels().get( 0 ).getProperty( "datasourceModel" ) == null;
 editIcon.setDisabled( disabled );
 enableWaitCursor( false );
 showDialog();
}

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