Beispiel #1
0
 public void movePropertyToLeft(int index) {
   if (propertiesNames == null) return;
   if (index <= 0) return;
   Object aux = propertiesNames.get(index);
   propertiesNames.set(index, propertiesNames.get(index - 1));
   propertiesNames.set(index - 1, aux);
   resetAfterAddRemoveProperty();
 }
Beispiel #2
0
 public void movePropertyToRight(int index) {
   if (propertiesNames == null) return;
   if (index >= propertiesNames.size() - 1) return;
   Object aux = propertiesNames.get(index);
   propertiesNames.set(index, propertiesNames.get(index + 1));
   propertiesNames.set(index + 1, aux);
   resetAfterAddRemoveProperty();
 }
 private MetaProperty getMetaProperty(int i) {
   return (MetaProperty) metaProperties.get(i);
 }