Ejemplo n.º 1
0
  void initializeInherit() {
    try {
      if (mIniParser.hasKey("Type", "Inherit")) {
        String inheritName = mIniParser.getData("Type", "Inherit");
        if (inheritName != null && !inheritName.equals("")) {
          String[] inheritNames = inheritName.split(",");
          for (String name : inheritNames) {
            Element inheritParentComponent = new Element(sdk, name);

            for (Property property : inheritParentComponent.properties.getValues()) {
              property.parent = this;
              properties.put(property.name, property);
            }

            for (Point point : inheritParentComponent.points.getValues()) {
              point.parent = this;
              points.put(point.name, point);
            }
          }
        }
        ;
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
Ejemplo n.º 2
0
 void initializePoints() {
   String[] iniMethods = mIniParser.getKeys("Methods");
   if (iniMethods != null)
     for (String method : iniMethods) {
       Point point = new Point(method, mIniParser.getData("Methods", method), this);
       points.put(point.name, point);
     }
 }
Ejemplo n.º 3
0
 void initializeProperties() {
   description = mIniParser.getData("Type", "Info");
   String[] iniProperties = mIniParser.getKeys("Property");
   if (iniProperties != null)
     for (String propertyName : iniProperties) {
       Property property =
           new Property(propertyName, mIniParser.getData("Property", propertyName), this);
       properties.put(property.name, property);
     }
 }