org.pentaho.ui.xul.swing.SwingXulRunner Java Examples
The following examples show how to use
org.pentaho.ui.xul.swing.SwingXulRunner.
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: StandaloneWizard.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
public StandaloneWizard() { wizardController = new LinearWizardController( new WizardEditorModel(), new DefaultBindingFactory() ); wizardController.addPropertyChangeListener( new CloseListener() ); final DataSourceAndQueryStep dataSourceAndQueryStep = new DataSourceAndQueryStep(); // add the steps .. wizardController.addStep( new LookAndFeelStep() ); wizardController.addStep( dataSourceAndQueryStep ); wizardController.addStep( new LayoutStep() ); wizardController.addStep( new FormatStep() ); try { final XulDomContainer mainWizardContainer = new SwingXulLoader().loadXul( MAIN_WIZARD_PANEL ); new WizardContentPanel( wizardController ).addContent( mainWizardContainer ); wizardController.registerMainXULContainer( mainWizardContainer ); final Document documentRoot = mainWizardContainer.getDocumentRoot(); final XulDialog root = (XulDialog) documentRoot.getRootElement(); final Window window = (Window) root.getRootObject(); final DesignTimeContext designTimeContext = new DefaultWizardDesignTimeContext( wizardController.getEditorModel(), window ); dataSourceAndQueryStep.setDesignTimeContext( designTimeContext ); wizardController.setDesignTimeContext( designTimeContext ); final XulRunner runner = new SwingXulRunner(); runner.addContainer( mainWizardContainer ); runner.initialize(); runner.start(); } catch ( Exception e ) { ExceptionDialog.showExceptionDialog( null, "Error", e.getMessage(), e ); } }
Example #2
Source File: MongoDbInputXulDialog.java From pentaho-mongodb-plugin with Apache License 2.0 | 4 votes |
protected void initializeXul() throws XulException { initializeXul( new SwingXulLoader(), new SwingBindingFactory(), new SwingXulRunner(), parent ); }
Example #3
Source File: PreviewRowsSwingDialog.java From pentaho-mongodb-plugin with Apache License 2.0 | 2 votes |
protected void initializeXul() throws XulException { initializeXul( new SwingXulLoader(), new SwingBindingFactory(), new SwingXulRunner(), parent ); }