Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIComponent


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


   static private final String EMAIL_REGEX = "[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[_A-Za-z0-9-.]+";

   public void validate(UIFormInput uiInput) throws Exception
   {
      //  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

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

      {
         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

*/
public class UIPortalLifecycle extends Lifecycle<UIPortal> {

    public void processRender(UIPortal uicomponent, WebuiRequestContext context) throws Exception {
        if (uicomponent.getMaximizedUIComponent() != null) {
            UIComponent uiComponent = uicomponent.getMaximizedUIComponent();
            uiComponent.processRender(context);
            return;
        }
        super.processRender(uicomponent, context);
    }
View Full Code Here

            if (!uiMaskWS.isShow() || !uiMaskWS.getUIComponent().getClass().equals(UIRegisterOAuth.class)) {
                if (log.isTraceEnabled()) {
                    log.trace("Showing registration form for OAuth registration");
                }
                UIComponent uiRegisterOauth = uiMaskWS.createUIComponent(UIRegisterOAuth.class, null, null);
                uiMaskWS.setUIComponent(uiRegisterOauth);
            }
        }

        // Show message about successful social account linking
View Full Code Here

    public void processDecode(UIStandaloneApplication uicomponent, WebuiRequestContext context) throws Exception {
        String componentId = context.getRequestParameter(context.getUIComponentIdParameterName());
        if (componentId == null) {
            return;
        }
        UIComponent uiTarget = uicomponent.findComponentById(componentId);
        if (uiTarget == null) {
            context.addUIComponentToUpdateByAjax(uicomponent.getChild(UIStandaloneAppContainer.class));
            return;
        }
        if (uiTarget == uicomponent) {
            super.processDecode(uicomponent, context);
        }
        uiTarget.processDecode(context);
    }
View Full Code Here

    public void processAction(UIStandaloneApplication uicomponent, WebuiRequestContext context) throws Exception {
        String componentId = context.getRequestParameter(context.getUIComponentIdParameterName());
        if (componentId == null) {
            return;
        }
        UIComponent uiTarget = uicomponent.findComponentById(componentId);
        if (uiTarget == null) {
            return;
        }
        if (uiTarget == uicomponent) {
            super.processAction(uicomponent, context);
        }
        uiTarget.processAction(context);
    }
View Full Code Here

    public <T extends UIComponent> T createUIComponent(Class<T> clazz) throws Exception {
        return createUIComponent(clazz, null, null);
    }

    public UIComponent setUIComponent(UIComponent uicomponent) {
        UIComponent oldOne = super.setUIComponent(uicomponent);
        setShow(uicomponent != null);
        return oldOne;
    }
View Full Code Here

    }

    public static class CloseActionListener extends EventListener<UIComponent> {
        public void execute(Event<UIComponent> event) throws Exception {
            UIMaskWorkspace uiMaskWorkspace = null;
            UIComponent uiSource = event.getSource();
            if (uiSource instanceof UIMaskWorkspace) {
                uiMaskWorkspace = (UIMaskWorkspace) uiSource;
            } else {
                uiMaskWorkspace = uiSource.getAncestorOfType(UIMaskWorkspace.class);
            }
            if (uiMaskWorkspace == null || !uiMaskWorkspace.isShow()) {
                return;
            }
            uiMaskWorkspace.setUIComponent(null);
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.