Package org.openbp.jaspira.propertybrowser.editor

Examples of org.openbp.jaspira.propertybrowser.editor.EditorParameterParser


  /**
   * Parses the editor parameters.
   */
  protected void parseParams()
  {
    EditorParameterParser parser = new EditorParameterParser(this);

    // First, check for the most common form.
    // Just one item type is given, which will be displayed and is also selectable
    itemType = parser.getString("type");

    Iterator itNames = parser.get("propertyname");
    if (itNames.hasNext())
    {
      properties = new HashMap();

      Iterator itValues = parser.get("propertyvalue");

      while (itNames.hasNext())
      {
        String name = (String) itNames.next();
        Object value = itValues.next();

        properties.put(name, value);
      }
    }

    supportedItemTypeList = parseList(parser, "supporteditemtype", false);
    selectableItemTypeList = parseList(parser, "selectableitemtype", false);
    supportedObjectClassList = parseList(parser, "supportedobjectclass", true);
    selectableObjectClassList = parseList(parser, "selectableobjectclass", true);

    title = parser.getString("title");
    if (title == null)
    {
      // TOLOCALIZE
      title = "Component Selection";
    }

    String s = parser.getString("opensystemmodel");
    openSystemModel = "true".equals(s);

    customizerClassName = parser.getString("customizer");
  }
View Full Code Here


  /**
   * Parses the editor parameters.
   */
  protected void parseParams()
  {
    EditorParameterParser parser = new EditorParameterParser(this);

    Iterator itNames = parser.get("propertyname");
    if (itNames.hasNext())
    {
      properties = new HashMap();

      Iterator itValues = parser.get("propertyvalue");

      while (itNames.hasNext())
      {
        String name = (String) itNames.next();
        Object value = itValues.next();

        properties.put(name, value);
      }
    }

    rootObjectPropertyPath = parser.getString("rootobjectpropertypath");

    title = parser.getString("title");
    if (title == null)
    {
      // TOLOCALIZE
      title = "Data Member Path Selection";
    }

    customizerClassName = parser.getString("customizer");
  }
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.propertybrowser.editor.EditorParameterParser

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.