Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIComponent


    public UIPortalToolPanel() {
    }

    public <T extends UIComponent> void setWorkingComponent(Class<T> clazz, String id) throws Exception {
        UIComponent component = createUIComponent(clazz, null, id);
        setUIComponent(component);
    }
View Full Code Here


            }
        }
    }

    private static void buildUIContainer(UIContainer uiContainer, Object model, boolean dashboard) throws Exception {
        UIComponent uiComponent = null;
        WebuiRequestContext context = Util.getPortalRequestContext();

        if (model instanceof SiteBody) {
            UISiteBody uiSiteBody = uiContainer.createUIComponent(context, UISiteBody.class, null, null);
            uiSiteBody.setStorageId(((SiteBody) model).getStorageId());
View Full Code Here

     * @return
     */
    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

    public void processRender(WebuiRequestContext context) throws Exception {
        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);
                } else {
                    uiPortalApp.setModeState(UIPortalApplication.APP_BLOCK_EDIT_MODE);
View Full Code Here

   public void validate(UIFormInput uiInput) throws Exception
   {
      if (uiInput.getValue() == null || ((String)uiInput.getValue()).length() == 0)
         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

      return actions_;
   }

   public void renderField(String name) throws Exception
   {
      UIComponent uiInput = findComponentById(name);
      WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
      uiInput.processRender(context);
   }
View Full Code Here

      StringBuilder b = new StringBuilder();
      //TODO: Tung.Pham modified
      //------------------------
      b.append("javascript:");
      WebuiRequestContext rcontext = WebuiRequestContext.getCurrentInstance();
      UIComponent subComponent = findComponentById(componentId);
      org.exoplatform.webui.config.Event event = subComponent.getComponentConfig().getUIComponentEventConfig(name);
      if (event == null)
         return "??config??";
      String confirm = event.getConfirm();
      if (confirm != null && confirm.trim().length() > 0)
      {
View Full Code Here

   public void validate(UIFormInput uiInput) throws Exception
   {
      if (uiInput == null || ((String)uiInput.getValue()).trim().length() == 0)
         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

         if (min_ <= length && max_ >= length)
            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

         if (min_ <= length && max_ >= length)
            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

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.