gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-25 03:27:05 27 4
gpt4 key购买 nike

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

XulMenuList.setSelectedIndex介绍

暂无

代码示例

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

public void resetSelectedDatasource() {
 datatypeMenuList.setSelectedIndex( 0 );
}

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

public void setFactTable( JoinTableModel factTable ) {
 List<JoinTableModel> tables = new ArrayList<JoinTableModel>();
 tables.addAll( this.factTables.getElements() );
 if ( factTable != null ) {
  this.factTables.setSelectedIndex( tables.indexOf( factTable.getName() ) );
 }
}

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

private void selectDataSourceMenuList( IWizardStep activatingWizardStep, int index ) {
 if ( datatypeMenuList.getElements().size() > 0
  && index != -1
  && activeDatasource != null ) {
  if ( activeDatasource.getId().equals( "NONE" ) ) {
   this.datatypeMenuList.setSelectedIndex( 0 );
  } else {
   if ( activeDatasource.getId().equals( "CSV" ) ) {
    this.datatypeMenuList.setSelectedIndex( 1 );
   } else {
    if ( activeDatasource.getId().equals( "MULTI-TABLE-DS" ) ) {
     this.datatypeMenuList.setSelectedIndex( 3 );
    } else {
     if ( activeDatasource.getId().equals( "SQL-DS" ) ) {
      this.datatypeMenuList.setSelectedIndex( 2 );
     }
    }
   }
  }
 }
}

代码示例来源:origin: pentaho/modeler

@Bindable
public void setSelectedTimeLevelType( TimeRole selectedTimeLevelType ) {
 TimeRole oldTimeLevelType = this.getSelectedTimeLevelType();
 if ( selectedTimeLevelType == null ) {
  selectedTimeLevelType = TimeRole.DUMMY;
 }
 this.selectedTimeLevelType = selectedTimeLevelType;
 getNode().setDataRole( selectedTimeLevelType );
 List<String> formatsList = selectedTimeLevelType.getFormatsList();
 String value = getTimeLevelFormat();
 int selectedIndex = formatsList.indexOf( value );
 timeLevelFormatList.setElements( formatsList );
 if ( selectedIndex == -1 ) {
  if ( value == null ) {
   value = "";
  }
  timeLevelFormatList.setValue( value );
 } else {
  timeLevelFormatList.setSelectedIndex( selectedIndex );
 }
 firePropertyChange( "selectedTimeLevelType", oldTimeLevelType, selectedTimeLevelType );
}

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

outKeyFieldnames.setSelectedIndex( 0 );
outValueFieldnames.setSelectedIndex( 0 );

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