Package org.exoplatform.webui.application

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


   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

   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

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

      //
      return uiapp;
   }
View Full Code Here

   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

   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

   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

    }

    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

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.