boolean (final List<RadComponent> selection, final boolean incrementRow) { int aRow = selection.get(0).getConstraints().getCell(incrementRow); int aRowSpan = selection.get(0).getConstraints().getSpan(incrementRow); for(int i=1; i<selection.size(); i++) { final RadComponent c = selection.get(i); if (c.getConstraints().getSpan(incrementRow) > 1 || aRowSpan > 1) { if (c.getConstraints().getCell(incrementRow) != aRow || c.getConstraints().getSpan(incrementRow) != aRowSpan) { return false; } } } return true; }