Examples of UIWizard


Examples of org.apache.myfaces.tobago.component.UIWizard

  }

  @Override
  protected void setProperties(final UIComponent uiComponent) {
    super.setProperties(uiComponent);
    final UIWizard component = (UIWizard) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
        component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
      }
    }
    if (var != null) {
      component.setVar(var);
    }

    if (title != null) {
      component.setValueExpression("title", title);
    }

    if (outcome != null) {
      component.setOutcome(outcome);
    }

    if (allowJumpForward != null) {
      if (!allowJumpForward.isLiteralText()) {
        component.setValueExpression("allowJumpForward", allowJumpForward);
      } else {
        component.setAllowJumpForward(Boolean.parseBoolean(allowJumpForward.getExpressionString()));
      }
    }
    if (controller != null) {
      if (!controller.isLiteralText()) {
        component.setValueExpression("controller", controller);
      /*} else {
        component.setController(controller.getExpressionString());*/
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIWizard

  }

  @Override
  protected void setProperties(final UIComponent uiComponent) {
    super.setProperties(uiComponent);
    final UIWizard component = (UIWizard) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
        component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
      }
    }
    if (var != null) {
      component.setVar(var);
    }

    if (title != null) {
      component.setValueExpression("title", title);
    }

    if (outcome != null) {
      component.setOutcome(outcome);
    }

    if (allowJumpForward != null) {
      if (!allowJumpForward.isLiteralText()) {
        component.setValueExpression("allowJumpForward", allowJumpForward);
      } else {
        component.setAllowJumpForward(Boolean.parseBoolean(allowJumpForward.getExpressionString()));
      }
    }
    if (controller != null) {
      if (!controller.isLiteralText()) {
        component.setValueExpression("controller", controller);
      /*} else {
        component.setController(controller.getExpressionString());*/
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIWizard

  }

  @Override
  protected void setProperties(UIComponent uiComponent) {
    super.setProperties(uiComponent);
    UIWizard component = (UIWizard) uiComponent;
    FacesContext context = FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    if (controller != null && isValueReference(controller)) {
      component.setValueBinding("controller", application.createValueBinding(controller));
    }
    if (outcome != null) {
      if (isValueReference(outcome)) {
        component.setValueBinding("outcome", application.createValueBinding(outcome));
      } else {
        component.setOutcome(outcome);
      }
    }
    if (var != null) {
      if (isValueReference(var)) {
        component.setValueBinding("var", application.createValueBinding(var));
      } else {
        component.setVar(var);
      }
    }
    if (title != null) {
      if (isValueReference(title)) {
        component.setValueBinding("title", application.createValueBinding(title));
      } else {
        component.setTitle(title);
      }
    }
    if (allowJumpForward != null) {
      if (isValueReference(allowJumpForward)) {
        component.setValueBinding("allowJumpForward", application.createValueBinding(allowJumpForward));
      } else {
        component.setAllowJumpForward(Boolean.valueOf(allowJumpForward));
      }
    }

  }
View Full Code Here

Examples of org.apache.myfaces.tobago.component.UIWizard

  }

  @Override
  protected void setProperties(UIComponent uiComponent) {
    super.setProperties(uiComponent);
    UIWizard component = (UIWizard) uiComponent;
    FacesContext context = FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    if (controller != null && isValueReference(controller)) {
      component.setValueBinding("controller", application.createValueBinding(controller));
    }
    if (outcome != null) {
      if (isValueReference(outcome)) {
        component.setValueBinding("outcome", application.createValueBinding(outcome));
      } else {
        component.setOutcome(outcome);
      }
    }
    if (var != null) {
      if (isValueReference(var)) {
        component.setValueBinding("var", application.createValueBinding(var));
      } else {
        component.setVar(var);
      }
    }
    if (title != null) {
      if (isValueReference(title)) {
        component.setValueBinding("title", application.createValueBinding(title));
      } else {
        component.setTitle(title);
      }
    }
    if (allowJumpForward != null) {
      if (isValueReference(allowJumpForward)) {
        component.setValueBinding("allowJumpForward", application.createValueBinding(allowJumpForward));
      } else {
        component.setAllowJumpForward(Boolean.valueOf(allowJumpForward));
      }
    }

  }
View Full Code Here

Examples of org.exoplatform.webui.core.UIWizard

            UIPortalComposer composer = uiWorkingWS.findFirstComponentOfType(UIPortalComposer.class).setRendered(false);
            composer.setEditted(false);

            // If it is a page creation wizard
            if (composer.isUsedInWizard()) {
                UIWizard wizard = (UIWizard) uiToolPanel.getUIComponent();
                int step = wizard.getCurrentStep();
                step++;
                Event<UIComponent> uiEvent = wizard.createEvent("ViewStep" + step, Phase.PROCESS, event.getRequestContext());
                uiEvent.broadcast();
                return;
            }

            // Perform model update
View Full Code Here

Examples of org.exoplatform.webui.core.UIWizard

        public void execute(Event<UIPortalComposer> event) throws Exception {
            UIPortalComposer composer = event.getSource();
            if (composer.isUsedInWizard()) {
                UIWorkingWorkspace uiWorkingWS = composer.getAncestorOfType(UIWorkingWorkspace.class);
                UIPortalToolPanel uiToolPanel = uiWorkingWS.findFirstComponentOfType(UIPortalToolPanel.class);
                UIWizard wizard = (UIWizard) uiToolPanel.getUIComponent();
                int step = wizard.getCurrentStep();
                step--;
                Event<UIComponent> uiEvent = wizard.createEvent("ViewStep" + step, Phase.PROCESS, event.getRequestContext());
                uiEvent.broadcast();
            }
        }
View Full Code Here

Examples of org.exoplatform.webui.core.UIWizard

        public void execute(Event<UIWizardPageSetInfo> event) throws Exception {
            UIWizardPageSetInfo uiForm = event.getSource();
            boolean isCheck = uiForm.getUICheckBoxInput(SHOW_PUBLICATION_DATE).isChecked();
            uiForm.getUIFormDateTimeInput(START_PUBLICATION_DATE).setRendered(isCheck);
            uiForm.getUIFormDateTimeInput(END_PUBLICATION_DATE).setRendered(isCheck);
            UIWizard uiWizard = uiForm.getAncestorOfType(UIWizard.class);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiWizard);
        }
View Full Code Here

Examples of org.exoplatform.webui.core.UIWizard

        public void execute(Event<UIWizardPageSetInfo> event) throws Exception {
            UIWizardPageSetInfo uiForm = event.getSource();
            boolean isCheck = uiForm.getUICheckBoxInput(SHOW_PUBLICATION_DATE).isChecked();
            uiForm.getUIFormDateTimeInput(START_PUBLICATION_DATE).setRendered(isCheck);
            uiForm.getUIFormDateTimeInput(END_PUBLICATION_DATE).setRendered(isCheck);
            UIWizard uiWizard = uiForm.getAncestorOfType(UIWizard.class);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiWizard);
        }
View Full Code Here

Examples of org.exoplatform.webui.core.UIWizard

         composer.setEditted(false);
        
         // If it is a page creation wizard
         if (composer.isUsedInWizard())
         {
            UIWizard wizard = (UIWizard)uiToolPanel.getUIComponent();
            int step = wizard.getCurrentStep();
            step++;
            Event<UIComponent> uiEvent =
               wizard.createEvent("ViewStep" + step, Phase.PROCESS, event.getRequestContext());
            uiEvent.broadcast();
            return;
         }

         // Perform model update
View Full Code Here

Examples of org.exoplatform.webui.core.UIWizard

         UIPortalComposer composer = event.getSource();
         if (composer.isUsedInWizard())
         {
            UIWorkingWorkspace uiWorkingWS = composer.getAncestorOfType(UIWorkingWorkspace.class);
            UIPortalToolPanel uiToolPanel = uiWorkingWS.findFirstComponentOfType(UIPortalToolPanel.class);
            UIWizard wizard = (UIWizard)uiToolPanel.getUIComponent();
            int step = wizard.getCurrentStep();
            step--;
            Event<UIComponent> uiEvent =
               wizard.createEvent("ViewStep" + step, Phase.PROCESS, event.getRequestContext());
            uiEvent.broadcast();
         }
      }
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.