Examples of XulComponent


Examples of org.pentaho.ui.xul.XulComponent

      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

Examples of org.pentaho.ui.xul.XulComponent

      final XulRunner runner = new SwingXulRunner();
      runner.addContainer(container);

      runner.initialize();
      final org.pentaho.ui.xul.dom.Document documentRoot = runner.getXulDomContainers().get(0).getDocumentRoot();
      final XulComponent rootElement = documentRoot.getElementById("root");
      if (rootElement != null)
      {
        editor = (Component) rootElement.getManagedObject();
      }
      else
      {
        final XulComponent rootEle = documentRoot.getRootElement();
        if (rootEle instanceof SwingWindow)
        {
          final SwingWindow window = (SwingWindow) rootEle;
          final JFrame rootFrame = (JFrame) window.getRootObject();
          editor = rootFrame.getContentPane();
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

  }

  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

Examples of org.pentaho.ui.xul.XulComponent

    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);
      }
    }

    SwingUtilities.invokeLater(new RefreshParameterTask());
  }
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    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

Examples of org.pentaho.ui.xul.XulComponent

    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

Examples of org.pentaho.ui.xul.XulComponent


  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

Examples of org.pentaho.ui.xul.XulComponent

      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

Examples of org.pentaho.ui.xul.XulComponent

    // validate is a hardcoded name inside the xul dialogs
    dialog.addPropertyChangeListener(new ChangeHandler());
    dialog.validate();

    XulComponent root = dialog.getXulDomContainer().getDocumentRoot().getElementById("root");

    // Without the following two lines of code, message boxes and prompts will freeze the dialog...
    // There must be a better way.
    SwingDialog parent = (SwingDialog) root.getParent();
    JComponent panel = parent.getContainer();
    dialog.setModalParent(panel);
    editor = panel;
    return panel;
  }
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    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
Copyright © 2018 www.massapi.com. 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.