Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIComponent


    public void renderChild(String id) throws Exception {
        if (!(uicomponent_ instanceof UIContainer))
            return;
        UIContainer uicontainer = (UIContainer) uicomponent_;
        UIComponent uiChild = uicontainer.getChildById(id);
        uiChild.processRender(rcontext_);
    }
View Full Code Here


    public void renderChild(int index) throws Exception {
        if (!(uicomponent_ instanceof UIContainer))
            return;
        UIContainer uicontainer = (UIContainer) uicomponent_;
        UIComponent uiChild = uicontainer.getChild(index);
        uiChild.processRender(rcontext_);
    }
View Full Code Here

            }
        }
    }

    public String event(String eventName, String comId, String beanId) throws Exception {
        UIComponent component = findComponentById(comId);
        if (component == null)
            return super.event(eventName, comId, beanId);
        return component.event(eventName, beanId);
    }
View Full Code Here

            UIUserManagement uiUserManager = uiListUsers.getParent();
            UIUserInfo uiUserInfo = uiUserManager.getChild(UIUserInfo.class);
            uiUserInfo.setUser(username);
            uiUserInfo.setRendered(true);

            UIComponent uiToUpdateAjax = uiListUsers.getAncestorOfType(UIUserManagement.class);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiToUpdateAjax);
        }
View Full Code Here

            service.getUserHandler().removeUser(userName, true);
            uiListUser.search(uiListUser.lastQuery_);
            while (currentPage > pageIterator.getAvailablePage())
                currentPage--;
            pageIterator.setCurrentPage(currentPage);
            UIComponent uiToUpdateAjax = uiListUser.getAncestorOfType(UIUserManagement.class);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiToUpdateAjax);
        }
View Full Code Here

      {
         return;
      }

      //modified by Pham Dinh Tan
      UIComponent uiComponent = (UIComponent) uiInput;
      UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);
      String label;
      try
      {
         label = uiForm.getLabel(uiInput.getName());
      }
View Full Code Here

   static public class ChangeNodeActionListener extends EventListener<UIComponent>
   {
      public void execute(Event<UIComponent> event) throws Exception
      {
         String groupId = event.getRequestContext().getRequestParameter(OBJECTID);
         UIComponent uiComp = event.getSource();
         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
      }
View Full Code Here

   static public class SelectMembershipActionListener extends EventListener<UIGroupMembershipSelector>
   {
      public void execute(Event<UIGroupMembershipSelector> event) throws Exception
      {
         UIGroupMembershipSelector uiSelector = event.getSource();
         UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
         uiPermission.setRenderSibling(uiPermission.getClass());
         WebuiRequestContext pcontext = event.getRequestContext();

         UIPopupWindow uiPopup = uiSelector.getParent();
         UIForm uiForm = uiSelector.getAncestorOfType(UIForm.class);

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

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

      }
View Full Code Here

    */
   private boolean isUsedInWizard()
   {
      UIWorkingWorkspace uiWorkingWS = getAncestorOfType(UIWorkingWorkspace.class);
      UIPortalToolPanel uiToolPanel = uiWorkingWS.findFirstComponentOfType(UIPortalToolPanel.class);
      UIComponent uicomponent = uiToolPanel.getUIComponent();
      if (uicomponent != null && uicomponent instanceof UIWizard)
      {
         return true;
      }
      return false;
View Full Code Here

      UIPortalApplication uiPortalApp = Util.getUIPortalApplication();
      int portalMode = uiPortalApp.getModeState();
      if (portalMode != UIPortalApplication.NORMAL_MODE)
      {
         UITabPane uiTabPane = this.getChild(UITabPane.class);
         UIComponent uiComponent = uiTabPane.getChildById(uiTabPane.getSelectedTabId());
         if (uiComponent instanceof UIApplicationList)
         {
            if (portalMode == UIPortalApplication.APP_VIEW_EDIT_MODE)
            {
               Util.showComponentEditInViewMode(UIPortlet.class);
View Full Code Here

TOP

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

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.