Examples of createUIComponent()


Examples of org.exoplatform.portal.webui.workspace.UIWorkingWorkspace.createUIComponent()

            uiComposer.setId(UIPortalComposer.UIPORTAL_COMPOSER);

            UIPortal uiPortal = Util.getUIPortal();
            uiWorkingWS.setBackupUIPortal(uiPortal);

            UIPortal editPortal = uiWorkingWS.createUIComponent(UIPortal.class, null, null);
            PortalDataMapper.toUIPortal(editPortal, pConfig);
            uiEditWS.setUIComponent(editPortal);

            // Check if edit current portal
            if (uiPortal.getName().equals(editPortal.getName())) {
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiApplication.createUIComponent()

        if (uiapp == null) {
            ConfigurationManager cmanager = app.getConfigurationManager();
            String uirootClass = cmanager.getApplication().getUIRootComponent().trim();
            Class<? extends UIApplication> type = (Class<UIApplication>) Thread.currentThread().getContextClassLoader()
                    .loadClass(uirootClass);
            uiapp = app.createUIComponent(type, null, null, context);
        }

        //
        return uiapp;
    }
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiApplication.createUIComponent()

        if (uiapp == null) {
            ConfigurationManager cmanager = app.getConfigurationManager();
            String uirootClass = cmanager.getApplication().getUIRootComponent().trim();
            Class<? extends UIApplication> type = (Class<UIApplication>) Thread.currentThread().getContextClassLoader()
                    .loadClass(uirootClass);
            uiapp = app.createUIComponent(type, null, null, context);
        }

        //
        return uiapp;
    }
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiApplication.createUIComponent()

    public UIPage createUIPage(WebuiRequestContext context) throws Exception {
        if (context == null) {
            context = WebuiRequestContext.getCurrentInstance();
        }
        WebuiApplication app = (WebuiApplication) context.getApplication();
        UIPage uiPage = app.createUIComponent(UIPage.class, null, null, context);
        return uiPage;
    }
}
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiApplication.createUIComponent()

   public <T extends UIComponent> T replaceChild(String targetChildId, Class<T> type, String configId, String id)
      throws Exception
   {
      WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
      WebuiApplication app = (WebuiApplication)context.getApplication();
      UIComponent comp = app.createUIComponent(type, configId, id, context);
      comp = replaceChild(targetChildId, comp);
      return (T)comp;
   }

   public <T extends UIComponent> T addChild(Class<T> type, String configId, String id) throws Exception
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiApplication.createUIComponent()

   public <T extends UIComponent> T addChild(Class<T> type, String configId, String id) throws Exception
   {
      WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
      WebuiApplication app = (WebuiApplication)context.getApplication();
      T comp = app.createUIComponent(type, configId, id, context);
      addChild(comp);
      return comp;
   }

   @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiApplication.createUIComponent()

   public <T extends UIComponent> T createUIComponent(WebuiRequestContext context, Class<T> type, String configId,
      String componentId) throws Exception
   {
      WebuiApplication app = (WebuiApplication)context.getApplication();
      T comp = app.createUIComponent(type, configId, componentId, context);
      return comp;
   }

   @SuppressWarnings("unchecked")
   public <T extends UIComponent> T findComponentById(String lookupId)
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiApplication.createUIComponent()

    }

    public <T extends UIComponent> T createUIComponent(WebuiRequestContext context, Class<T> type, String configId,
            String componentId) throws Exception {
        WebuiApplication app = (WebuiApplication) context.getApplication();
        T comp = app.createUIComponent(type, configId, componentId, context);
        return comp;
    }

    @SuppressWarnings("unchecked")
    public <T extends UIComponent> T findComponentById(String lookupId) {
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiApplication.createUIComponent()

    public <T extends UIComponent> T replaceChild(String targetChildId, Class<T> type, String configId, String id)
            throws Exception {
        WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
        WebuiApplication app = (WebuiApplication) context.getApplication();
        UIComponent comp = app.createUIComponent(type, configId, id, context);
        comp = replaceChild(targetChildId, comp);
        return type.cast(comp);
    }

    public <T extends UIComponent> T addChild(Class<T> type, String configId, String id) throws Exception {
View Full Code Here

Examples of org.exoplatform.webui.application.WebuiApplication.createUIComponent()

    }

    public <T extends UIComponent> T addChild(Class<T> type, String configId, String id) throws Exception {
        WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
        WebuiApplication app = (WebuiApplication) context.getApplication();
        T comp = app.createUIComponent(type, configId, id, context);
        addChild(comp);
        return comp;
    }

    // todo (julien) : this is not type safe
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.