//插入属性 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(); }
//配置属性 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()); }
//增加属性 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(); }