IDEMPIERE-364 Improve Grid Layout / Refactor customizegrid

This commit is contained in:
Juan David Arboleda 2012-12-17 18:04:33 -05:00
parent 565b5b0dca
commit bbba2cdd72
1 changed files with 2 additions and 4 deletions

View File

@ -408,13 +408,11 @@ public class CustomizeGridViewPanel extends Panel
*/
void migrateValueWithinYesList (int endIndex, List<ListElement> selObjects)
{
int length = selObjects.size();
int iniIndex =0;
Arrays.sort(selObjects.toArray());
ListElement endObject = (ListElement)yesModel.getElementAt(endIndex);
for (int i = 0; i < length; i++) {
iniIndex = yesModel.indexOf(selObjects.get(i));
for (ListElement selected : selObjects) {
iniIndex = yesModel.indexOf(selected);
ListElement selObject = (ListElement)yesModel.getElementAt(iniIndex);
yesModel.removeElement(selObject);
endIndex = yesModel.indexOf(endObject);