Ejemplo n.º 1
0
 public static void addPropertyToPropertyMap(String s, StringProperty stringproperty) {
   PropertyTable propertytable = (PropertyTable) cPropertyMap.get(s);
   if (propertytable == null) {
     return;
   } else {
     propertytable.add(stringproperty.name, stringproperty);
     return;
   }
 }
Ejemplo n.º 2
0
  protected static void addProperties(String s, StringProperty astringproperty[]) {
    Class class1;
    try {
      class1 = Class.forName(s);
    } catch (ClassNotFoundException classnotfoundexception) {
      System.out.println("Class " + s + " not found in AddProperties");
      return;
    }
    Class class2 = class1.getSuperclass();
    PropertyTable propertytable = (PropertyTable) cPropertyMap.get(class2.getName());
    PropertyTable propertytable1 = new PropertyTable(propertytable);
    for (int i = 0; i < astringproperty.length; i++) {
      propertytable1.add(astringproperty[i].name, astringproperty[i]);
    }

    cPropertyMap.put(s, propertytable1);
    cClassValues.put(s, new HashMap());
  }