Package org.exoplatform.webui.form

Examples of org.exoplatform.webui.form.UIFormInputIconSelector


      UIPageSelector2 uiPageSelector = createUIComponent(UIPageSelector2.class, null, null);
      uiPageSelector.configure("UIPageSelector2", "pageReference");
      addUIFormInput(uiPageSelector);

      UIFormInputIconSelector uiIconSelector = new UIFormInputIconSelector("Icon", "icon");
      addUIFormInput(uiIconSelector);
      setActions(new String[]{"Save", "Back"});
   }
View Full Code Here


            pageNode = new PageNode();
         uiPageNodeForm.invokeSetBindingBean(pageNode);
         UIPageSelector2 pageSelector = uiPageNodeForm.getChild(UIPageSelector2.class);
         if (pageSelector.getPage() == null)
            pageNode.setPageReference(null);
         UIFormInputIconSelector uiIconSelector = uiPageNodeForm.getChild(UIFormInputIconSelector.class);
         if (uiIconSelector.getSelectedIcon().equals("Default"))
            pageNode.setIcon(null);
         else
            pageNode.setIcon(uiIconSelector.getSelectedIcon());
         if (pageNode.getLabel() == null)
            pageNode.setLabel(pageNode.getName());

         Object selectedParent = uiPageNodeForm.getSelectedParent();
         PageNavigation pageNav = null;
View Full Code Here

                .addUIFormInput(new UICheckBoxInput("showWindowState", "showWindowState", false))
                .addUIFormInput(
                        new UIFormTextAreaInput("description", "description", null).addValidator(NotHTMLTagValidator.class,
                                "UIPortletForm.msg.InvalidPortletDescription"));
        addUIFormInput(uiSettingSet);
        UIFormInputIconSelector uiIconSelector = new UIFormInputIconSelector("Icon", "icon");
        addUIFormInput(uiIconSelector);

        UIFormInputThemeSelector uiThemeSelector = new UIFormInputThemeSelector(FIELD_THEME, null);
        SkinService skinService = getApplicationComponent(SkinService.class);
        uiThemeSelector.getChild(UIItemThemeSelector.class).setValues(skinService.getPortletThemes());
View Full Code Here

    public static class SaveActionListener extends EventListener<UIPortletForm> {
        public void execute(final Event<UIPortletForm> event) throws Exception {
            UIPortletForm uiPortletForm = event.getSource();
            UIPortlet uiPortlet = uiPortletForm.getUIPortlet();
            UIFormInputIconSelector uiIconSelector = uiPortletForm.getChild(UIFormInputIconSelector.class);
            uiPortletForm.invokeSetBindingBean(uiPortlet);
            if (uiIconSelector.getSelectedIcon().equals("Default")) {
                uiPortlet.setIcon("PortletIcon");
            } else {
                uiPortlet.setIcon(uiIconSelector.getSelectedIcon());
            }
            UIFormInputThemeSelector uiThemeSelector = uiPortletForm.getChild(UIFormInputThemeSelector.class);
            uiPortlet.putSuitedTheme(null, uiThemeSelector.getChild(UIItemThemeSelector.class).getSelectedTheme());
            uiPortletForm.savePreferences();
            UIMaskWorkspace uiMaskWorkspace = uiPortletForm.getParent();
View Full Code Here

            if (pageNode.getLabel() == null)
                pageNode.setLabel(pageNode.getName());
            uiPageNodeForm.invokeSetBindingBean(pageNode);

            UIFormInputIconSelector uiIconSelector = uiPageNodeForm.getChild(UIFormInputIconSelector.class);
            if (uiIconSelector.getSelectedIcon().equals("Default"))
                pageNode.setIcon(null);
            else
                pageNode.setIcon(uiIconSelector.getSelectedIcon());

            uiPageNodeForm.createEvent("Back", Phase.DECODE, ctx).broadcast();
        }
View Full Code Here

        UIPageSelector uiPageSelector = createUIComponent(UIPageSelector.class, null, null);
        uiPageSelector.configure("UIPageSelector", "pageRef");
        addUIFormInput(uiPageSelector);

        UIFormInputIconSelector uiIconSelector = new UIFormInputIconSelector("Icon", "icon");
        addUIFormInput(uiIconSelector);
        setActions(new String[] { "Save", "Back" });
    }
View Full Code Here

         new UIFormCheckBoxInput("showPortletMode", "showPortletMode", false)).addUIFormInput(
         new UIFormCheckBoxInput("showWindowState", "showWindowState", false)).addUIFormInput(
         new UIFormTextAreaInput("description", "description", null).addValidator(StringLengthValidator.class, 0,
            255).addValidator(ExpressionValidator.class, "[^\\<\\>]*", "UIPortletForm.msg.InvalidPortletDescription"));
      addUIFormInput(uiSettingSet);
      UIFormInputIconSelector uiIconSelector = new UIFormInputIconSelector("Icon", "icon");
      addUIFormInput(uiIconSelector);

      UIFormInputThemeSelector uiThemeSelector = new UIFormInputThemeSelector(FIELD_THEME, null);
      SkinService skinService = getApplicationComponent(SkinService.class);
      uiThemeSelector.getChild(UIItemThemeSelector.class).setValues(skinService.getPortletThemes());
View Full Code Here

   {
      public void execute(final Event<UIPortletForm> event) throws Exception
      {
         UIPortletForm uiPortletForm = event.getSource();
         UIPortlet uiPortlet = uiPortletForm.getUIPortlet();
         UIFormInputIconSelector uiIconSelector = uiPortletForm.getChild(UIFormInputIconSelector.class);
         uiPortletForm.invokeSetBindingBean(uiPortlet);
         if (uiIconSelector.getSelectedIcon().equals("Default"))
         {
            uiPortlet.setIcon("PortletIcon");
         }
         else
         {
            uiPortlet.setIcon(uiIconSelector.getSelectedIcon());
         }
         UIFormInputThemeSelector uiThemeSelector = uiPortletForm.getChild(UIFormInputThemeSelector.class);
         uiPortlet.putSuitedTheme(null, uiThemeSelector.getChild(UIItemThemeSelector.class).getSelectedTheme());
         uiPortletForm.savePreferences();
         UIMaskWorkspace uiMaskWorkspace = uiPortletForm.getParent();
View Full Code Here

                .addUIFormInput(new UICheckBoxInput("showWindowState", "showWindowState", false))
                .addUIFormInput(
                        new UIFormTextAreaInput("description", "description", null).addValidator(NotHTMLTagValidator.class,
                                "UIPortletForm.msg.InvalidPortletDescription"));
        addUIFormInput(uiSettingSet);
        UIFormInputIconSelector uiIconSelector = new UIFormInputIconSelector("Icon", "icon");
        addUIFormInput(uiIconSelector);

        UIFormInputThemeSelector uiThemeSelector = new UIFormInputThemeSelector(FIELD_THEME, null);
        SkinService skinService = getApplicationComponent(SkinService.class);
        uiThemeSelector.getChild(UIItemThemeSelector.class).setValues(skinService.getPortletThemes());
View Full Code Here

    public static class SaveActionListener extends EventListener<UIPortletForm> {
        public void execute(final Event<UIPortletForm> event) throws Exception {
            UIPortletForm uiPortletForm = event.getSource();
            UIPortlet uiPortlet = uiPortletForm.getUIPortlet();
            UIFormInputIconSelector uiIconSelector = uiPortletForm.getChild(UIFormInputIconSelector.class);
            uiPortletForm.invokeSetBindingBean(uiPortlet);
            if (uiIconSelector.getSelectedIcon().equals("Default")) {
                uiPortlet.setIcon("PortletIcon");
            } else {
                uiPortlet.setIcon(uiIconSelector.getSelectedIcon());
            }
            UIFormInputThemeSelector uiThemeSelector = uiPortletForm.getChild(UIFormInputThemeSelector.class);
            uiPortlet.putSuitedTheme(null, uiThemeSelector.getChild(UIItemThemeSelector.class).getSelectedTheme());
            uiPortletForm.savePreferences();
            UIMaskWorkspace uiMaskWorkspace = uiPortletForm.getParent();
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.form.UIFormInputIconSelector

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.