Java Code Examples for org.pentaho.ui.xul.XulDomContainer#loadOverlay()

The following examples show how to use org.pentaho.ui.xul.XulDomContainer#loadOverlay() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BeamSpoonPlugin.java    From kettle-beam with Apache License 2.0 5 votes vote down vote up
@Override
public void applyToContainer( String category, XulDomContainer container ) throws XulException {
  container.registerClassLoader( getClass().getClassLoader() );
  if ( category.equals( "spoon" ) ) {
    container.loadOverlay( "beam_spoon_overlays.xul", resourceBundle );
    container.addEventHandler( BeamHelper.getInstance() );
  }
  if ( category.equals( "trans-graph" ) ) {
    container.loadOverlay( "beam_transgraph_overlays.xul", resourceBundle );
    container.addEventHandler( BeamHelper.getInstance() );
  }
}
 
Example 2
Source File: Neo4jSpoonPlugin.java    From knowbi-pentaho-pdi-neo4j-output with Apache License 2.0 5 votes vote down vote up
@Override
public void applyToContainer( String category, XulDomContainer container ) throws XulException {
  container.registerClassLoader( getClass().getClassLoader() );
  if ( category.equals( "spoon" ) ) {
    container.loadOverlay( "neo4j_spoon_overlays.xul", resourceBundle );
    container.addEventHandler( Neo4jHelper.getInstance() );
  }
}
 
Example 3
Source File: DataSetSpoonPlugin.java    From pentaho-pdi-dataset with Apache License 2.0 5 votes vote down vote up
public void applyToContainer( String category, XulDomContainer container ) throws XulException {
  container.registerClassLoader( getClass().getClassLoader() );
  if ( category.equals( "spoon" ) ) {
    container.loadOverlay( "org/pentaho/di/dataset/spoon/xul/spoon_overlays.xul" );
    container.addEventHandler( DataSetHelper.getInstance() );
  }
  if ( category.equals( "trans-graph" ) ) {
    container.loadOverlay( "org/pentaho/di/dataset/spoon/xul/trans_graph_overlays.xul" );
    container.addEventHandler( DataSetHelper.getInstance() );
  }
}
 
Example 4
Source File: LookAndFeelStep.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
public void createPresentationComponent( final XulDomContainer mainWizardContainer ) throws XulException {
  super.createPresentationComponent( mainWizardContainer );

  // Add the overlay
  mainWizardContainer.loadOverlay( LOOK_AND_FEEL_STEP_OVERLAY );

  // Add event handlers
  mainWizardContainer.addEventHandler( new SelectTemplateStepHandler() );
}
 
Example 5
Source File: DataSourceAndQueryStep.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
public void createPresentationComponent( final XulDomContainer mainWizardContainer ) throws XulException {
  super.createPresentationComponent( mainWizardContainer );

  mainWizardContainer.loadOverlay( DATASOURCE_AND_QUERY_STEP_OVERLAY );
  mainWizardContainer.addEventHandler( new DatasourceAndQueryStepHandler() );
  final XulListbox box = (XulListbox) getDocument().getElementById( DATASOURCE_SELECTIONS_BOX_ID );
  box.removeItems();
  for ( final XulEditorDataFactoryMetaData dfMeta : dataFactoryMetas ) {
    box.addItem( dfMeta );
  }
  box.addPropertyChangeListener( new SelectedIndexUpdateHandler() );
}
 
Example 6
Source File: FormatStep.java    From pentaho-reporting with GNU Lesser General Public License v2.1 5 votes vote down vote up
public void createPresentationComponent( final XulDomContainer mainWizardContainer ) throws XulException {
  super.createPresentationComponent( mainWizardContainer );

  mainWizardContainer.loadOverlay( FORMAT_STEP_OVERLAY );

  // Add event handlers
  mainWizardContainer.addEventHandler( formatStepHandler );
}
 
Example 7
Source File: AbstractRepositoryExplorerUISupport.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public void apply( XulDomContainer container ) throws XulException {
  this.container = container;
  container.registerClassLoader( getClass().getClassLoader() );
  for ( XulEventHandler handler : handlers ) {
    container.addEventHandler( handler );
  }
  for ( XulOverlay overlay : overlays ) {
    if ( overlay instanceof RepositoryExplorerDefaultXulOverlay ) {
      container.loadOverlay( overlay.getOverlayUri(), new XulSpoonResourceBundle(
        ( (RepositoryExplorerDefaultXulOverlay) overlay ).getPackageClass() ) );
    } else {
      container.loadOverlay( overlay.getOverlayUri(), overlay.getResourceBundleUri() );
    }
  }
}
 
Example 8
Source File: SparkTuningPopupMenu.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
@Override public void applyToContainer( String category, XulDomContainer container ) throws XulException {
  if ( category.equals( "trans-graph" ) ) {
    container.registerClassLoader( getClass().getClassLoader() );
    container.loadOverlay( "org/pentaho/di/engine/configuration/impl/spark/spark-tuning-menu.xul", resourceBundle );
    container.addEventHandler( this.handler );
  }
}
 
Example 9
Source File: StarModelerSpoonPlugin.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public void applyToContainer(String category, XulDomContainer container) throws XulException {
  container.registerClassLoader(getClass().getClassLoader());
  if(category.equals("spoon")){
    container.loadOverlay("org/pentaho/di/starmodeler/xul/spoon_overlays.xul");
    container.addEventHandler(ModelerHelper.getInstance());
  }
}
 
Example 10
Source File: LayoutStep.java    From pentaho-reporting with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void createPresentationComponent( final XulDomContainer mainWizardContainer ) throws XulException {
  super.createPresentationComponent( mainWizardContainer );

  mainWizardContainer.loadOverlay( LAYOUT_STEP_OVERLAY );
  mainWizardContainer.addEventHandler( new SelectFieldsAndGroupsEventHandler() );
}
 
Example 11
Source File: WizardControllerPanel.java    From pentaho-reporting with GNU Lesser General Public License v2.1 4 votes vote down vote up
/**
 * @param mainWizardContainer
 */
public void addContent( final XulDomContainer mainWizardContainer ) throws XulException {
  mainWizardContainer.loadOverlay( WIZARD_CONTROLLER_OVERLAY );
  mainWizardContainer.addEventHandler( (XulEventHandler) controller );
}