Package org.pentaho.ui.xul.binding

Examples of org.pentaho.ui.xul.binding.DefaultBindingFactory


  private LinearWizardController wizardController;

  public StandaloneWizard()
  {
    wizardController = new LinearWizardController(new WizardEditorModel(), new DefaultBindingFactory());
    wizardController.addPropertyChangeListener(new CloseListener());
   
    // add the steps ..
    wizardController.addStep(new LookAndFeelStep());
    wizardController.addStep(new DataSourceAndQueryStep());
View Full Code Here



  private void init()
  {

    wizardController = new LinearWizardController(new WizardEditorModel(), new DefaultBindingFactory());

    // add the steps ..
    wizardController.addStep(new LookAndFeelStep());
    wizardController.addStep(new DataSourceAndQueryStep());
    wizardController.addStep(new LayoutStep());
View Full Code Here

    }

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

    final DrillDownParameterTable drillDownParameterTable = getTable();
    if (drillDownParameterTable != null)
    {
View Full Code Here

  private LinearWizardController wizardController;

  public StandaloneWizard()
  {
    wizardController = new LinearWizardController(new WizardEditorModel(), new DefaultBindingFactory());
    wizardController.addPropertyChangeListener(new CloseListener());
   
    final DataSourceAndQueryStep dataSourceAndQueryStep = new DataSourceAndQueryStep();

    // add the steps ..
View Full Code Here

  private void init()
  {
    dataSourceAndQueryStep = new DataSourceAndQueryStep();

    wizardController = new LinearWizardController(new WizardEditorModel(), new DefaultBindingFactory());

    // add the steps ..
    wizardController.addStep(new LookAndFeelStep());
    wizardController.addStep(dataSourceAndQueryStep);
    wizardController.addStep(new LayoutStep());
View Full Code Here

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

    final DrillDownParameterTable drillDownParameterTable = getTable();
    if (drillDownParameterTable != null)
    {
View Full Code Here

    }

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

TOP

Related Classes of org.pentaho.ui.xul.binding.DefaultBindingFactory

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.