Package org.pentaho.ui.xul.dom

Examples of org.pentaho.ui.xul.dom.Document


      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);
      wizardController.setDesignTimeContext(designTimeContext);

      final XulRunner runner = new SwingXulRunner();
View Full Code Here


      new WizardContentPanel(wizardController).addContent(mainWizardContainer);
      mainWizardContainer.setOuterContext(this.owner);
      wizardController.registerMainXULContainer(mainWizardContainer);
      wizardController.onLoad();

      final Document documentRoot = mainWizardContainer.getDocumentRoot();
      final XulComponent root = documentRoot.getRootElement();

      if (!(root instanceof XulDialog))
      {
        throw new XulException(Messages.getInstance().getString("EMBEDDED_WIZARD.Root_Error") + " " + root); //$NON-NLS-1$ //$NON-NLS-2$
      }
View Full Code Here

    configureDisableTableOnEmptyFile();
  }

  protected void configureDisableTableOnEmptyFile()
  {
    final Document doc = getXulDomContainer().getDocumentRoot();
    final XulComponent paramTableElement = doc.getElementById("parameter-table");//NON-NLS
    if (paramTableElement instanceof XulDrillDownParameterTable == false)
    {
      return;
    }
View Full Code Here

    container.initialize();

    handler = new XulDatabaseHandler();
    container.addEventHandler(handler);   //$NON-NLS-1$

    final Document documentRoot = container.getDocumentRoot();
    final XulComponent root = documentRoot.getRootElement();

    if (root instanceof XulDialog)
    {
      dialog = (XulDialog) root;
      dialog.setResizable(Boolean.TRUE);
View Full Code Here

      throw new NullPointerException();
    }

    this.reportDesignerContext = reportDesignerContext;

    final Document doc = this.xulDomContainer.getDocumentRoot();
    final DefaultBindingFactory bindingFactory = new DefaultBindingFactory();
    bindingFactory.setDocument(doc);
    bindingFactory.setBindingType(Binding.Type.BI_DIRECTIONAL);
    wrapper = new DrillDownModelWrapper(model);
    final XulComponent pathElement = doc.getElementById("path");//NON-NLS
    if (pathElement != null)
    {
      bindingFactory.createBinding(wrapper, DrillDownModel.DRILL_DOWN_PATH_PROPERTY, "path", "value");//NON-NLS
    }
    final XulComponent configElement = doc.getElementById("config");//NON-NLS
    if (configElement != null)
    {
      bindingFactory.createBinding(wrapper, DrillDownModel.DRILL_DOWN_CONFIG_PROPERTY, "config", "value");//NON-NLS
    }
    final XulComponent linkTargetElement = doc.getElementById("link-target");//NON-NLS
    if (linkTargetElement != null)
    {
      bindingFactory.createBinding(wrapper, DrillDownModel.TARGET_FORMULA_PROPERTY, "link-target", "value");//NON-NLS
    }
    final XulComponent linkTooltipElement = doc.getElementById("link-tooltip");//NON-NLS
    if (linkTooltipElement != null)
    {
      bindingFactory.createBinding(wrapper, DrillDownModel.TOOLTIP_FORMULA_PROPERTY, "link-tooltip", "value");//NON-NLS
    }
    final XulComponent previewElement = doc.getElementById("preview");//NON-NLS
    if (previewElement != null)
    {
      final BindingFactory singleSourceBinding = new DefaultBindingFactory();
      singleSourceBinding.setBindingType(Binding.Type.ONE_WAY);
      singleSourceBinding.setDocument(doc);
      singleSourceBinding.createBinding(wrapper, "preview", "preview", "value");//NON-NLS
    }

    // we manage the binding between the table and the outside world manually
    wrapper.refresh();
    final XulComponent paramTableElement = doc.getElementById("parameter-table");//NON-NLS
    if (paramTableElement instanceof XulDrillDownParameterTable)
    {
      final XulDrillDownParameterTable parameterTable = (XulDrillDownParameterTable) paramTableElement;
      table = parameterTable.getTable();
      table.setExtraFields(fields);
      table.setReportDesignerContext(reportDesignerContext);
      table.setDrillDownParameter(model.getDrillDownParameter());
      table.addPropertyChangeListener(DrillDownParameterTable.DRILL_DOWN_PARAMETER_PROPERTY, new TableModelBinding());
    }

    if (model.isLimitedEditor())
    {
      final XulComponent tooltipAndTargetElement = doc.getElementById("tooltip-and-target-panel");//NON-NLS
      if (tooltipAndTargetElement != null)
      {
        tooltipAndTargetElement.setVisible(false);
      }
    }
View Full Code Here

    {
      c = getReportDesignerContext().getView().getParent();
    }
    parameterRefreshHandler = new PentahoParameterRefreshHandler(pentahoPathWrapper, reportDesignerContext, c);

    final Document doc = getXulDomContainer().getDocumentRoot();
    final DefaultBindingFactory bindingFactory = new DefaultBindingFactory();
    bindingFactory.setDocument(doc);
    bindingFactory.setBindingType(Binding.Type.BI_DIRECTIONAL);
    final XulComponent configElement = doc.getElementById("local-path");
    if (configElement != null)
    {
      bindingFactory.createBinding(pentahoPathWrapper, PentahoPathModel.LOCAL_PATH_PROPERTY, "local-path", "value");
    }

    final XulComponent localServerElement = doc.getElementById("local-server-used");
    if (localServerElement != null)
    {
      bindingFactory.createBinding(pentahoPathWrapper, PentahoPathModel.USE_REMOTE_SERVER_PROPERTY, "local-server-used", "checked");
    }

    final XulComponent hideParameterUiElement = doc.getElementById("parameter-table");
    if (hideParameterUiElement != null)
    {
      bindingFactory.createBinding(pentahoPathWrapper, PentahoPathModel.HIDE_PARAMETER_UI_PROPERTY, "parameter-table", "hideParameterUi");
    }

    final XulComponent serverElement = doc.getElementById("server-login");
    if (serverElement != null)
    {
      bindingFactory.createBinding(pentahoPathWrapper, PentahoPathModel.SERVER_PATH_PROPERTY, "server-login", "value");
    }
View Full Code Here

  }


  protected void configureDisableTableOnEmptyFile()
  {
    final Document doc = getXulDomContainer().getDocumentRoot();
    final XulComponent paramTableElement = doc.getElementById("parameter-table");//NON-NLS
    if (paramTableElement instanceof XulDrillDownParameterTable == false)
    {
      return;
    }
View Full Code Here

      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);
View Full Code Here

      new WizardContentPanel(wizardController).addContent(mainWizardContainer);
      mainWizardContainer.setOuterContext(this.owner);
      wizardController.registerMainXULContainer(mainWizardContainer);
      wizardController.onLoad();

      final Document documentRoot = mainWizardContainer.getDocumentRoot();
      final XulComponent root = documentRoot.getRootElement();

      if (!(root instanceof XulDialog))
      {
        throw new XulException(Messages.getInstance().getString("EMBEDDED_WIZARD.Root_Error") + " " + root); //$NON-NLS-1$ //$NON-NLS-2$
      }
View Full Code Here

    container.initialize();

    handler = new XulDatabaseHandler();
    container.addEventHandler(handler);   //$NON-NLS-1$

    final Document documentRoot = container.getDocumentRoot();
    final XulComponent root = documentRoot.getRootElement();

    if (root instanceof XulDialog)
    {
      dialog = (XulDialog) root;
      dialog.setResizable(Boolean.TRUE);
View Full Code Here

TOP

Related Classes of org.pentaho.ui.xul.dom.Document

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.