Examples of createEvent()


Examples of org.exoplatform.portal.webui.workspace.UIMaskWorkspace.createEvent()

            if (setPassword) {
                try {
                    user_.setPassword(newpassword);
                    orgService.getUserHandler().saveUser(user_, true);
                    uiMaskWorkspace.createEvent("Close", Phase.DECODE, request).broadcast();
                    uiApp.addMessage(new ApplicationMessage("UIResetPassword.msg.change-password-successfully", null));
                } catch (Exception e) {
                    uiApp.addMessage(new ApplicationMessage("UIResetPassword.msg.change-password-fail", null, ApplicationMessage.ERROR));
                }
            }
View Full Code Here

Examples of org.exoplatform.webui.core.UIApplication.createEvent()

         }
         UIApplication uiApp = getStateManager().restoreUIRootComponent(context);
         context.setUIApplication(uiApp);
         javax.portlet.Event portletEvent = req.getEvent();
         context.setAttribute(PORTLET_EVENT_VALUE, portletEvent.getValue());
         Event<UIComponent> uiEvent = uiApp.createEvent(portletEvent.getName(), Phase.PROCESS, context);
         uiEvent.broadcast();
      }
      finally
      {
         WebuiRequestContext.setCurrentInstance(parentAppRequestContext);
View Full Code Here

Examples of org.exoplatform.webui.core.UIComponent.createEvent()

            event.broadcast();
         }
         return;
      }
      UIComponent uiSubComponent = uicomponent.findComponentById(subComponentId);
      Event<UIComponent> event = uiSubComponent.createEvent(action, Event.Phase.DECODE, context);
      if (event == null)
      {
         event = uicomponent.createEvent(action, Event.Phase.DECODE, context);
      }
      if (event != null)
View Full Code Here

Examples of org.exoplatform.webui.core.UIConfirmation.createEvent()

        @Override
        public void execute(Event<UIEditInlineWorkspace> event) throws Exception {
            UIEditInlineWorkspace uiEditInlineWorkspace = event.getSource();

            UIConfirmation uiConfirmation = uiEditInlineWorkspace.getChild(UIConfirmation.class);
            uiConfirmation.createEvent("Close", event.getExecutionPhase(), event.getRequestContext()).broadcast();

            UIPortalComposer uiPortalComposer = uiEditInlineWorkspace.getChild(UIPortalComposer.class);
            Event<UIComponent> abortEvent = uiPortalComposer.createEvent("Abort", event.getExecutionPhase(),
                    event.getRequestContext());
            abortEvent.broadcast();
View Full Code Here

Examples of org.exoplatform.webui.core.UIConfirmation.createEvent()

        @Override
        public void execute(Event<UIEditInlineWorkspace> event) throws Exception {
            UIEditInlineWorkspace uiEditInlineWorkspace = event.getSource();
            UIConfirmation uiConfirmation = uiEditInlineWorkspace.getChild(UIConfirmation.class);
            uiConfirmation.createEvent("Close", event.getExecutionPhase(), event.getRequestContext()).broadcast();
        }
    }
}
View Full Code Here

Examples of org.exoplatform.webui.core.UIPopupWindow.createEvent()

            context.getUIApplication().addMessage(
                    new ApplicationMessage("UINavigationNodeSelector.msg." + NavigationError.NAVIGATION_NO_SITE.name(), null,
                            ApplicationMessage.ERROR));

            UIPopupWindow popup = getAncestorOfType(UIPopupWindow.class);
            popup.createEvent("ClosePopup", Phase.PROCESS, context).broadcast();

            PortalRequestContext prContext = Util.getPortalRequestContext();
            UIWorkingWorkspace uiWorkingWS = Util.getUIPortalApplication().getChild(UIWorkingWorkspace.class);
            prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
            prContext.setFullRender(true);
View Full Code Here

Examples of org.exoplatform.webui.core.UIRightClickPopupMenu.createEvent()

        @Override
        public void execute(Event<UINavigationManagement> event) throws Exception {
            UINavigationManagement uiManagement = event.getSource();
            UINavigationNodeSelector uiNodeSelector = uiManagement.getChild(UINavigationNodeSelector.class);
            UIRightClickPopupMenu menu = uiNodeSelector.getChild(UIRightClickPopupMenu.class);
            menu.createEvent("AddNode", Phase.PROCESS, event.getRequestContext()).broadcast();
        }

    }
}
View Full Code Here

Examples of org.exoplatform.webui.core.UITree.createEvent()

    }

    public void loadView(Event<? extends UIComponent> event) throws Exception {
        UINavigationNodeSelector uiNodeSelector = getChild(UINavigationNodeSelector.class);
        UITree uiTree = uiNodeSelector.getChild(UITree.class);
        uiTree.createEvent("ChangeNode", event.getExecutionPhase(), event.getRequestContext()).broadcast();
    }

    public static class SaveActionListener extends EventListener<UINavigationManagement> {

        public void execute(Event<UINavigationManagement> event) throws Exception {
View Full Code Here

Examples of org.exoplatform.webui.core.UIWizard.createEvent()

            // 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.createEvent()

                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.