Package com.adito.boot

Examples of com.adito.boot.PropertyDefinitionCategory


     * (non-Javadoc)
     *
     * @see com.adito.tabs.TabModel#getTabTitle(int)
     */
    public String getTabTitle(int idx) {
        PropertyDefinitionCategory cat = categoryDefinitions.get(idx);
        return CoreUtil.getMessageResources(request.getSession(), cat.getBundle()).getMessage(
            (Locale) request.getSession().getAttribute(Globals.LOCALE_KEY), getTabName(idx) + ".name");
    }
View Full Code Here


             * one
             */
            if (parentCategory == 0) {
                sourceCategories = propertyClass.getCategories();
            } else {
                PropertyDefinitionCategory category = propertyClass.getPropertyDefinitionCategory(parentCategory);
                if (category != null) {
                    sourceCategories = category.getCategories();
                } else {
                    sourceCategories = null;
                }
            }

View Full Code Here

                // check log for details.");
            } else {
                log.info("The default user database is " + defaultUserDatabase.getDatabaseDescription());
                for (UserDatabaseDefinition def : UserDatabaseManager.getInstance().getUserDatabaseDefinitions()) {
                    if (def.getInstallationCategory() > 0) {
                        PropertyDefinitionCategory cat = PropertyClassManager.getInstance().getPropertyClass(RealmProperties.NAME)
                                        .getPropertyDefinitionCategory(def.getInstallationCategory());
                        log.info("Disabling user database configuration category " + def.getInstallationCategory() + " ("
                                        + cat.hashCode() + ")");
                        if (cat == null) {
                            log.error("No such category " + def.getInstallationCategory());
                        } else {
                            cat.setEnabled(false);
                        }
                    }
                }
            }
        }
View Full Code Here

             * one
             */
            if (parentCategory == 0) {
                sourceCategories = propertyClass.getCategories();
            } else {
                PropertyDefinitionCategory category = propertyClass.getPropertyDefinitionCategory(parentCategory);
                if (category != null) {
                    sourceCategories = category.getCategories();
                } else {
                    sourceCategories = null;
                }
            }

View Full Code Here

                  def = new XMLPropertyDefinition(ec);
                }
                propertyDefinitions.put(def.getName(), def);
                pc.registerPropertyDefinition(def);
              } else if (ec.getName().equals("category")) {
                PropertyDefinitionCategory cat = new DefaultPropertyDefinitionCategory(
                    ec.getAttribute("id").getIntValue(), ec
                        .getAttributeValue("bundle"),
                    ec.getAttributeValue("image"));
                cat.setPropertyClass(pc);
                if (ec.getAttributeValue("parent") == null) {
                  pc.addPropertyDefinitionCategory(-1, cat);
                } else {
                  PropertyDefinitionCategory parentCat = pc
                      .getPropertyDefinitionCategory(ec
                          .getAttribute("parent")
                          .getIntValue());
                  if (parentCat == null) {
                    throw new ExtensionException(
                        ExtensionException.INTERNAL_ERROR,
                        "No parent category for "
                            + cat.getId()
                            + " of "
                            + ec
                                .getAttributeValue("parent"));
                  }
                  pc.addPropertyDefinitionCategory(parentCat
                      .getId(), cat);
                }
                propertyDefinitionCategories.put(cat.getId(),
                    cat);
              } else {
View Full Code Here

        addCat(c, l);
      }   
  }

  void addCategories(PropertyClass propertyClass, Element el, PropertyDefinitionCategory parent) throws JDOMException {
        PropertyDefinitionCategory cat = new DefaultPropertyDefinitionCategory(el.getAttribute("id").getIntValue(),
            el.getAttributeValue("bundle"),
            el.getAttributeValue("image"));
        propertyClass.addPropertyDefinitionCategory(parent == null ? -1 : parent.getId(), cat);
        for (Iterator i = el.getChildren().iterator(); i.hasNext();) {
            addCategories(propertyClass, (Element) i.next(), cat);
View Full Code Here

TOP

Related Classes of com.adito.boot.PropertyDefinitionCategory

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.