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(); }
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(); }