gpt4 book ai didi

org.pentaho.ui.xul.components.XulMenuList类的使用及代码示例

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

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

XulMenuList介绍

暂无

代码示例

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

@SuppressWarnings( { "unchecked", "rawtypes" } )
public void selectDatabase( XulMenuList wConnection, String name ) {
 wConnection.setSelectedItem( wConnection );
}

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

DatabaseInterface databaseInterface = meta.getDatabaseInterface();
if ( databaseInterface instanceof  GenericDatabaseMeta ) {
 ( (GenericDatabaseMeta) databaseInterface).setDatabaseDialect( databaseDialectList.getValue() );

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

databaseDialectList.setElements( databaseDialects  );
DatabaseInterface databaseInterface = meta.getDatabaseInterface();
if ( databaseInterface instanceof  GenericDatabaseMeta ) {
 databaseDialectList.setSelectedItem( ( (GenericDatabaseMeta) databaseInterface).getDatabaseDialect() );

代码示例来源: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/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/pentaho-kettle

@SuppressWarnings( { "rawtypes", "unchecked" } )
public void addDatabases( XulMenuList wConnection, Class<? extends DatabaseInterface> databaseType ) {
 List<String> databases = new ArrayList<String>();
 for ( int i = 0; i < transMeta.nrDatabases(); i++ ) {
  DatabaseMeta ci = transMeta.getDatabase( i );
  if ( databaseType == null || ci.getDatabaseInterface().getClass().equals( databaseType ) ) {
   databases.add( ci.getName() );
  }
 }
 wConnection.setElements( databases );
}

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

public String targetToSource( String target ) {
  Collection<String> encodings = encodingTypeMenuList.getElements();
  if ( target != null && !encodings.contains( target ) ) {
   encodings.add( target );
   encodingTypeMenuList.setElements( encodings );
  }
  return target;
 }
};

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

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

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

public void success( List schemaValues ) {
  schemas.removePropertyChangeListener( schemaSelection );
  joinGuiModel.setSchemas( schemaValues );
  //processAvailableTables(connection, schemaValues.size() > 0 ? schemaValues.get(0).toString() : null);
  schemas.addPropertyChangeListener( schemaSelection );
 }
} );

代码示例来源: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

geoRoles.add( dummyGeoRole );
geoRoles.addAll( workspace.getGeoContext() );
geoList.setElements( geoRoles );
timeRoles.clear();
timeRoles.addAll( TimeRole.getAllRoles() );
timeLevelTypeList.setElements( timeRoles );

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

public void success( List schemaValues ) {
  schemas.removePropertyChangeListener( schemaSelection );
  joinGuiModel.setSchemas( schemaValues );
  schemas.addPropertyChangeListener( schemaSelection );
  fetchTables();
 }
} );

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

protected void setSelectedItemForEachMenu() {
 getXulMenu( XUL_EC2_ROLE ).setSelectedItem( getJobEntry().getEc2Role() );
 getXulMenu( XUL_EMR_ROLE ).setSelectedItem( getJobEntry().getEmrRole() );
 getXulMenu( XUL_MASTER_INSTANCE_TYPE ).setSelectedItem( getJobEntry().getMasterInstanceType() );
 getXulMenu( XUL_SLAVE_INSTANCE_TYPE ).setSelectedItem( getJobEntry().getSlaveInstanceType() );
}

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

private int fetchValue( XulMenuList<?> menulist ) {
 int result = -1;
 if ( menulist != null && menulist.getValue() != null ) {
  result = ValueMeta.getType( menulist.getValue() );
 }
 return result;
}

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

(XulMenuList<?>) getXulDomContainer().getDocumentRoot().getElementById( "output-value-fieldname" );
if ( ( outKeyFieldnames != null ) && ( outKeyFieldnames.getElements().size() > 0 ) ) {
 outKeyFieldnames.setSelectedIndex( 0 );
if ( ( outValueFieldnames != null ) && ( outValueFieldnames.getElements().size() > 0 ) ) {
 outValueFieldnames.setSelectedIndex( 0 );

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

encodingTypeMenuList.setElements( ENCODINGS );

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

public void selectNamedCluster( String configName ) {
 @SuppressWarnings( "unchecked" )
 XulMenuList<NamedCluster> namedConfigMenu =
  (XulMenuList<NamedCluster>) container.getDocumentRoot().getElementById( "named-clusters" );
 for ( NamedCluster nc : getNamedClusters() ) {
  if ( configName != null && configName.equals( nc.getName() ) ) {
   namedConfigMenu.setSelectedItem( nc );
  }
 }
}

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

@Override
public void onAccept() {
 metaMapper.setOutKeyFieldname( outKeyFieldnames.getValue() );
 metaMapper.setOutValueFieldname( outValueFieldnames.getValue() );
 if ( !workingStepname.equals( stepname ) ) {
  stepname = workingStepname;
  baseStepMeta.setChanged();
 }
 metaMapper.saveMeta( (HadoopExitMeta) baseStepMeta );
 dispose();
}

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

protected void initializeEc2RoleSelection() {
 @SuppressWarnings( "unchecked" )
 XulMenuList<String> ec2RoleMenu = getXulMenu( XUL_EC2_ROLE );
 String selectedEc2Role = getJobEntry().getEc2Role();
 ec2RoleMenu.setSelectedItem( selectedEc2Role );
}

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

protected void fetchTables() {
 showWaitingDialog();
 IDatabaseConnection connection = ( (MultiTableDatasource) parentDatasource ).getConnection();
 processAvailableTables( connection, schemas.getValue() );
}

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