Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIDropDownControl


   public UIFormInputIconSelector(String name, String bindingField) throws Exception
   {
      super(name, bindingField, String.class);
      setComponentConfig(UIFormInputIconSelector.class, null);
      UIDropDownControl dropIconSet = addChild(UIDropDownControl.class, null, null);
      dropIconSet.setAction("eXo.webui.UIDropDownControl.init");
      this.setValues(paramDefault);
      selectType = "page";
   }
View Full Code Here


    public void setSelectedCategory(String cateName) {
        selectedCategory = null;
        if (cateName == null)
            return;
        UIDropDownControl uiDropDown = getChild(UIDropDownControl.class);
        for (ThemeCategory cate : categories) {
            if (cate.getName().equals(cateName)) {
                selectedCategory = cate;
                uiDropDown.setValue(cateName);
                return;
            }
        }
    }
View Full Code Here

    }

    public static class ChangeOptionActionListener extends EventListener<UIDropDownControl> {

        public void execute(Event<UIDropDownControl> event) throws Exception {
            UIDropDownControl uiDropDown = event.getSource();
            String category = event.getRequestContext().getRequestParameter(OBJECTID);
            UIItemThemeSelector uiFormInput = uiDropDown.getParent();
            uiFormInput.setSelectedCategory(category);
            UIPortletForm uiportletForm = uiFormInput.getAncestorOfType(UIPortletForm.class);
            uiportletForm.setSelectedTab(uiportletForm.getChild(UIFormInputThemeSelector.class).getId());
            event.getRequestContext().addUIComponentToUpdateByAjax(uiFormInput);
        }
View Full Code Here

        for (SelectItemCategory<String> itemCategory : categories_) {
            itemOptions.add(new SelectItemOption<String>(itemCategory.getName()));
        }

        // modify: Dang.Tung
        UIDropDownControl uiItemSelector = addChild(UIDropDownControl.class, null, "UIDropDownPageTemp");
        uiItemSelector.setOptions(itemOptions);
        uiItemSelector.setAction("eXo.webui.UIPageTemplateOptions.selectPageLayout");
        // end modify
    }
View Full Code Here

            category.setSelected(false);
            if (!found) {
                for (SelectItemOption<String> itemOption : category.getSelectItemOptions()) {
                    if (itemOption.getLabel().equals(value)) {

                        UIDropDownControl uiItemSelector = findFirstComponentOfType(UIDropDownControl.class);
                        uiItemSelector.setValue(category.getName());

                        category.setSelected(true);
                        selectedItemOption_ = itemOption;
                        for (SelectItemOption<String> item : category.getSelectItemOptions()) {
                            item.setSelected(false);
View Full Code Here

        for (SelectItemCategory itemCategory : categories_) {
            itemOptions.add(new SelectItemOption(itemCategory.getName()));
        }

        // modify: Dang.Tung
        UIDropDownControl uiItemSelector = addChild(UIDropDownControl.class, null, "UIDropDownPageTemp");
        uiItemSelector.setOptions(itemOptions);
        uiItemSelector.setAction("eXo.webui.UIPageTemplateOptions.selectPageLayout");
        // end modify
    }
View Full Code Here

        for (SelectItemCategory<String> itemCategory : categories_) {
            itemOptions.add(new SelectItemOption<String>(itemCategory.getName()));
        }

        // modify: Dang.Tung
        UIDropDownControl uiItemSelector = addChild(UIDropDownControl.class, null, "UIDropDownPageTemp");
        uiItemSelector.setOptions(itemOptions);
        uiItemSelector.setAction("eXo.webui.UIPageTemplateOptions.selectPageLayout");
        // end modify
    }
View Full Code Here

            category.setSelected(false);
            if (!found) {
                for (SelectItemOption<String> itemOption : category.getSelectItemOptions()) {
                    if (itemOption.getLabel().equals(value)) {

                        UIDropDownControl uiItemSelector = findFirstComponentOfType(UIDropDownControl.class);
                        uiItemSelector.setValue(category.getName());

                        category.setSelected(true);
                        selectedItemOption_ = itemOption;
                        for (SelectItemOption<String> item : category.getSelectItemOptions()) {
                            item.setSelected(false);
View Full Code Here

   public void setSelectedCategory(String cateName)
   {
      selectedCategory = null;
      if (cateName == null)
         return;
      UIDropDownControl uiDropDown = getChild(UIDropDownControl.class);
      for (ThemeCategory cate : categories)
      {
         if (cate.getName().equals(cateName))
         {
            selectedCategory = cate;
            uiDropDown.setValue(cateName);
            return;
         }
      }
   }
View Full Code Here

   public static class ChangeOptionActionListener extends EventListener<UIDropDownControl>
   {

      public void execute(Event<UIDropDownControl> event) throws Exception
      {
         UIDropDownControl uiDropDown = event.getSource();
         String category = event.getRequestContext().getRequestParameter(OBJECTID);
         UIItemThemeSelector uiFormInput = uiDropDown.getParent();
         uiFormInput.setSelectedCategory(category);
         UIPortletForm uiportletForm = uiFormInput.getAncestorOfType(UIPortletForm.class);
         uiportletForm.setSelectedTab(uiportletForm.getChild(UIFormInputThemeSelector.class).getId());
         event.getRequestContext().addUIComponentToUpdateByAjax(uiFormInput);
      }
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.core.UIDropDownControl

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.