Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIPopupWindow


      {
         UIGroupSelector uiSelector = event.getSource();
         UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
         WebuiRequestContext pcontext = event.getRequestContext();

         UIPopupWindow uiPopup = uiSelector.getParent();
         UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class);
         if (uiForm != null)
         {
            event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
         }
         else
         {
            event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);
         }
         if (uiSelector.getCurrentGroup() == null)
         {
            UIApplication uiApp = pcontext.getUIApplication();
            uiApp.addMessage(new ApplicationMessage("UIGroupSelector.msg.selectGroup", null));
            pcontext.addUIComponentToUpdateByAjax(uiApp.getUIPopupMessages());
            uiPopup.setShow(true);
            return;
         }

         uiPermission.broadcast(event, event.getExecutionPhase());
         uiPopup.setShow(false);

      }
View Full Code Here


         String objectId = event.getRequestContext().getRequestParameter(OBJECTID);
         uiBreadcumbs.setSelectPath(objectId);
         String selectGroupId = uiBreadcumbs.getSelectLocalPath().getId();
         uiSelector.changeGroup(selectGroupId);

         UIPopupWindow uiPopup = uiSelector.getParent();
         uiPopup.setShow(true);

         UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class);
         if (uiForm != null)
         {
            event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
View Full Code Here

         UIGroupMembershipSelector uiSelector = uiComp.getParent();
         uiSelector.changeGroup(groupId);
         UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
         uiPermission.setRenderSibling(uiPermission.getClass());
         uiPermission.broadcast(event, Event.Phase.PROCESS);
         UIPopupWindow uiPopup = uiSelector.getParent();
         uiPopup.setShow(true);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);//TODO: Update relevant tab panes
         /*
         UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class) ;
         if(uiForm != null) {
         event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
View Full Code Here

         UIGroupMembershipSelector uiSelector = event.getSource();
         UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
         uiPermission.setRenderSibling(uiPermission.getClass());
         WebuiRequestContext pcontext = event.getRequestContext();

         UIPopupWindow uiPopup = uiSelector.getParent();
         //TODO: Tung.Pham modified
         //-----------------------------------
         //UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class);//TODO: Remove duplicated call to event.getSource()
         UIForm uiForm = uiSelector.getAncestorOfType(UIForm.class);
         //-----------------------------------

         //TODO: by Minh Hoang TO, retrieve the UIPermissionSelector and update this component
         //UIPermissionSelector pSelector=uiPopup.getAncestorOfType(UIPermissionSelector.class);
         //if(pSelector!=null){
         //  event.getRequestContext().addUIComponentToUpdateByAjax(pSelector);
         //}

         if (uiSelector.getCurrentGroup() == null)
         {
            UIApplication uiApp = pcontext.getUIApplication();
            uiApp.addMessage(new ApplicationMessage("UIGroupMembershipSelector.msg.selectGroup", null));
            //            pcontext.addUIComponentToUpdateByAjax(uiApp.getUIPopupMessages());
            uiPopup.setShow(true);
            return;
         }
         event.getRequestContext().addUIComponentToUpdateByAjax(uiPermission);

         uiPermission.broadcast(event, event.getExecutionPhase());
         uiPopup.setShow(false);

         //      UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class) ;
         //      if(uiForm != null) {
         //      event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
         //      }else{
View Full Code Here

         String objectId = event.getRequestContext().getRequestParameter(OBJECTID);
         uiBreadcumbs.setSelectPath(objectId);
         String selectGroupId = uiBreadcumbs.getSelectLocalPath().getId();
         uiSelector.changeGroup(selectGroupId);

         UIPopupWindow uiPopup = uiSelector.getParent();
         uiPopup.setShow(true);

         event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);//TODO: Update relevant tab panes
         /*
         UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class) ;
         if(uiForm != null) {
View Full Code Here

      uiIterator_ = new UIPageIterator();
      uiIterator_.setPageList(objPageList);
      uiIterator_.setId("UISelectUserPage");

      // create group selector
      UIPopupWindow uiPopup = addChild(UIPopupWindow.class, null, "UIPopupGroupSelector");
      uiPopup.setWindowSize(540, 0);
      UIGroupSelector uiGroup = createUIComponent(UIGroupSelector.class, null, null);
      uiPopup.setUIComponent(uiGroup);
      uiGroup.setId("GroupSelector");
      uiGroup.getChild(UITree.class).setId("TreeGroupSelector");
      uiGroup.getChild(UIBreadcumbs.class).setId("BreadcumbsGroupSelector");
   }
View Full Code Here

        return super.event(name);
    }

    public static class CloseActionListener extends EventListener<UIPopupWindow> {
        public void execute(Event<UIPopupWindow> event) throws Exception {
            UIPopupWindow uiPopupWindow = event.getSource();
            UIForm uiForm = uiPopupWindow.getAncestorOfType(UIForm.class);
            uiPopupWindow.setShow(false);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
        }
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.core.UIPopupWindow

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.