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());

         String remoteUser = ctx.getRemoteUser();
         Object selectedParent = uiPageNodeForm.getSelectedParent();
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

         new UIFormCheckBoxInput("showPortletMode", "showPortletMode", false)).addUIFormInput(
         new UIFormCheckBoxInput("showWindowState", "showWindowState", false)).addUIFormInput(
         new UIFormTextAreaInput("description", "description", null).addValidator(StringLengthValidator.class, 0,
            255));
      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

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.