Examples of UIFormInputWithActions


Examples of org.exoplatform.webui.form.UIFormInputWithActions

   private final static String[] ACTIONS = {"Subscribe", "Reset"};

   public UIRegisterForm() throws Exception
   {
      UIFormInputWithActions registerInput = new UIRegisterInputSet("RegisterInputSet");
      //Set actions on registerInput 's User Name field
      List<ActionData> fieldActions = new ArrayList<ActionData>();
      ActionData checkAvailable = new ActionData();
      checkAvailable.setActionListener(CheckUsernameAvailability.LISTENER_NAME);
      checkAvailable.setActionName(CheckUsernameAvailability.LISTENER_NAME);
      checkAvailable.setActionType(ActionData.TYPE_ICON);
      checkAvailable.setCssIconClass("SearchIcon");
      fieldActions.add(checkAvailable);
      registerInput.setActionField(UIRegisterInputSet.USER_NAME, fieldActions);

      addUIFormInput(registerInput);
      setActions(ACTIONS);
   }
View Full Code Here

Examples of org.exoplatform.webui.form.UIFormInputWithActions

@Serialized
public class UIAccountForm extends UIFormTabPane {

    public UIAccountForm(InitParams initParams) throws Exception {
        super("UIAccountForm");
        UIFormInputWithActions accountInputSet = new UIAccountInputSet("AccountInputSet");
        List<ActionData> actions = new ArrayList<ActionData>();
        ActionData addCategory = new ActionData();
        addCategory.setActionListener("SearchUser");
        addCategory.setActionType(ActionData.TYPE_ICON);
        addCategory.setActionName("SearchUser");
        addCategory.setCssIconClass("SearchIcon");
        actions.add(addCategory);
        accountInputSet.setActionField("username", actions);
        setSelectedTab(accountInputSet.getId());
        addChild(accountInputSet);
        UIFormInputSet userProfileSet = new UIUserProfileInputSet("UIUserProfileInputSet");
        addUIFormInput(userProfileSet);
        if (initParams == null)
            return;
View Full Code Here

Examples of org.exoplatform.webui.form.UIFormInputWithActions

    public UIRegisterForm(InitParams params) throws Exception {
        String skipCaptchaParam = params.getParam(SKIP_CAPTCHA_PARAM_NAME).getValue();
        boolean skipCaptcha = Boolean.parseBoolean(skipCaptchaParam);

        UIFormInputWithActions registerInput = new UIRegisterInputSet("RegisterInputSet", skipCaptcha);

        // Set actions on registerInput 's User Name field
        List<ActionData> fieldActions = new ArrayList<ActionData>();
        ActionData checkAvailable = new ActionData();
        checkAvailable.setActionListener(CheckUsernameAvailability.LISTENER_NAME);
        checkAvailable.setActionName(CheckUsernameAvailability.LISTENER_NAME);
        checkAvailable.setActionType(ActionData.TYPE_ICON);
        checkAvailable.setCssIconClass("SearchIcon");
        fieldActions.add(checkAvailable);
        registerInput.setActionField(UIRegisterInputSet.USER_NAME, fieldActions);

        addUIFormInput(registerInput);
        setActions(ACTIONS);
    }
View Full Code Here

Examples of org.exoplatform.webui.form.UIFormInputWithActions

    private static final String[] ACTIONS = { "Subscribe", "Reset" };

    static final String ATTR_USER = "UIRegisterForm$User";

    public UIRegisterForm() throws Exception {
        UIFormInputWithActions registerInput = new UIRegisterInputSet("RegisterInputSet");
        // Set actions on registerInput 's User Name field
        List<ActionData> fieldActions = new ArrayList<ActionData>();
        ActionData checkAvailable = new ActionData();
        checkAvailable.setActionListener(CheckUsernameAvailability.LISTENER_NAME);
        checkAvailable.setActionName(CheckUsernameAvailability.LISTENER_NAME);
        checkAvailable.setActionType(ActionData.TYPE_ICON);
        checkAvailable.setCssIconClass("SearchIcon");
        fieldActions.add(checkAvailable);
        registerInput.setActionField(UIRegisterInputSet.USER_NAME, fieldActions);

        addUIFormInput(registerInput);
        setActions(ACTIONS);
    }
View Full Code Here

Examples of org.exoplatform.webui.form.UIFormInputWithActions

      setActions(ACTIONS);
   }

   private UIFormInputWithActions makeUIFormInputWithActions() throws Exception
   {
      UIFormInputWithActions inputSet = new UIFormInputWithActions();
      addUIComponentToSet(inputSet);
     
      List<ActionData> searchUserAction = makeSearchUserActionData();
      inputSet.setActionField(USERNAME, searchUserAction);

      return inputSet;
   }
View Full Code Here

Examples of org.exoplatform.webui.form.UIFormInputWithActions

@Serialized
public class UIAccountForm extends UIFormTabPane {

    public UIAccountForm(InitParams initParams) throws Exception {
        super("UIAccountForm");
        UIFormInputWithActions accountInputSet = new UIAccountInputSet("AccountInputSet");
        List<ActionData> actions = new ArrayList<ActionData>();
        ActionData addCategory = new ActionData();
        addCategory.setActionListener("SearchUser");
        addCategory.setActionType(ActionData.TYPE_ICON);
        addCategory.setActionName("SearchUser");
        addCategory.setCssIconClass("SearchIcon");
        actions.add(addCategory);
        accountInputSet.setActionField("username", actions);
        setSelectedTab(accountInputSet.getId());
        addChild(accountInputSet);
        UIFormInputSet userProfileSet = new UIUserProfileInputSet("UIUserProfileInputSet");
        addUIFormInput(userProfileSet);
        if (initParams == null)
            return;
View Full Code Here

Examples of org.exoplatform.webui.form.UIFormInputWithActions

    public UIRegisterForm(InitParams params) throws Exception {
        String skipCaptchaParam = params.getParam(SKIP_CAPTCHA_PARAM_NAME).getValue();
        boolean skipCaptcha = Boolean.parseBoolean(skipCaptchaParam);

        UIFormInputWithActions registerInput = new UIRegisterInputSet("RegisterInputSet", skipCaptcha);

        // Set actions on registerInput 's User Name field
        List<ActionData> fieldActions = new ArrayList<ActionData>();
        ActionData checkAvailable = new ActionData();
        checkAvailable.setActionListener(CheckUsernameAvailability.LISTENER_NAME);
        checkAvailable.setActionName(CheckUsernameAvailability.LISTENER_NAME);
        checkAvailable.setActionType(ActionData.TYPE_ICON);
        checkAvailable.setCssIconClass("SearchIcon");
        fieldActions.add(checkAvailable);
        registerInput.setActionField(UIRegisterInputSet.USER_NAME, fieldActions);

        addUIFormInput(registerInput);
        setActions(ACTIONS);
    }
View Full Code Here

Examples of org.exoplatform.webui.form.UIFormInputWithActions

        addUIFormInput(makeUIFormInputWithActions());
        setActions(ACTIONS);
    }

    private UIFormInputWithActions makeUIFormInputWithActions() throws Exception {
        UIFormInputWithActions inputSet = new UIFormInputWithActions();
        addUIComponentToSet(inputSet);

        List<ActionData> searchUserAction = makeSearchUserActionData();
        inputSet.setActionField(USERNAME, searchUserAction);

        return inputSet;
    }
View Full Code Here

Examples of org.exoplatform.webui.form.UIFormInputWithActions

{

   public UIAccountForm(InitParams initParams) throws Exception
   {
      super("UIAccountForm");
      UIFormInputWithActions accountInputSet = new UIAccountInputSet("AccountInputSet");
      List<ActionData> actions = new ArrayList<ActionData>();
      ActionData addCategory = new ActionData();
      addCategory.setActionListener("SearchUser");
      addCategory.setActionType(ActionData.TYPE_ICON);
      addCategory.setActionName("SearchUser");
      addCategory.setCssIconClass("SearchIcon");
      actions.add(addCategory);
      accountInputSet.setActionField("username", actions);
      setSelectedTab(accountInputSet.getId());
      addChild(accountInputSet);
      UIFormInputSet userProfileSet = new UIUserProfileInputSet("UIUserProfileInputSet");
      addUIFormInput(userProfileSet);
      if (initParams == null)
         return;
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.