- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
if(rightTable.isCellPresent(0, 0))
for(int i = 0; i < rightTable.getRowCount(); i++)
if(((CheckBox)((HorizontalPanel)rightTable.getWidget(i, 0)).getWidget(0)).getValue())
{ isChanged = true;
leftTableList.add(currentTemplate.getColumns().get(i));
for(int j = 0; j < resultTable.getCellCount(0); j++)
if(((Label)((HorizontalPanel)resultTable.getWidget(0, j)).getWidget(1)).getText().compareTo(new Integer(currentTemplate.getColumns().get(i).getOrder()).toString()) == 0)
resultTable.removeCell(0, j);
System.out.println(resultTable.getCellCount(0));
rightTable.removeRow(i);
currentTemplate.getColumns().remove(i);
i--;
}
Комментарии (0) RSS