Ejemplo n.º 1
0
 public void getPropertyInfo(int index, Hashtable properties, PropertyInfo info) {
   if (index == 0) {
     info.name = "name";
     info.type = PropertyInfo.STRING_CLASS;
     info.namespace = "";
   } else if (index == 1) {
     info.name = "count";
     info.type = PropertyInfo.INTEGER_CLASS;
     info.namespace = "";
   } else {
     throw new RuntimeException("invalid parameter");
   }
 }
 public void getPropertyInfo(int index, Hashtable properties, PropertyInfo info) {
   info.name = getItemDescriptor();
   info.type = getElementClass();
 }