Ejemplo n.º 1
0
 //插入属性
 public void inseartProperty(PropertyElement property,int index)
 {
     PropertyValueElement element = new PropertyValueElement(propertyValueManager);
     element.name = property.name + "";
     element.ValueType = property.ValueType;
     element.setValue(property.getDefaultValue());
     propertyValueManager.insertElement(element, index);
     propertyValueManager.refreshUI();
 }
Ejemplo n.º 2
0
 //配置属性
 public void configProperty(PropertyElement property)
 {
     if (property == null)
     {
         return;
     }
     PropertyValueElement element = (PropertyValueElement)propertyValueManager.getElement(property.getID());
     element.name = property.name + "";
     element.ValueType = property.ValueType;
     element.setValue(property.getDefaultValue());
     propertyValueManager.refreshUI_Element(property.getID());
 }
Ejemplo n.º 3
0
 //增加属性
 public void addProperty(PropertyElement property)
 {
     PropertyValueElement element = new PropertyValueElement(propertyValueManager);
     element.name = property.name + "";
     element.ValueType = property.ValueType;
     element.setValue(property.getDefaultValue());
     propertyValueManager.addElement(element);
     propertyValueManager.refreshUI();
 }