}
}
- public void insertRows(UIDL rowData, int firstIndex, int rows) {
+ protected void insertRows(UIDL rowData, int firstIndex, int rows) {
aligns = tHead.getColumnAlignments();
final Iterator<?> it = rowData.getChildIterator();
/**
* @return false if couldn't remove row
*/
- public boolean unlinkRow(boolean fromBeginning) {
+ protected boolean unlinkRow(boolean fromBeginning) {
if (lastRendered - firstRendered < 0) {
return false;
}
}
}
- public void unlinkRows(int firstIndex, int count) {
+ protected void unlinkRows(int firstIndex, int count) {
if (count < 1) {
return;
}
fixSpacers();
}
- public void unlinkAllRowsAfter(int index) {
+ protected void unlinkAllRowsAfter(int index) {
if (firstRendered > index) {
index = firstRendered;
}
private boolean[] findCellsWithComponents() {
final boolean[] isComponent = new boolean[visibleColumns.size()];
- int isComponentIndex = 0;
- for (final Iterator<Object> it = visibleColumns.iterator(); it
- .hasNext() && isComponentIndex < isComponent.length;) {
- final Object columnId = it.next();
+ int ix = 0;
+ for (Object columnId : visibleColumns) {
if (columnGenerators.containsKey(columnId)) {
- isComponent[isComponentIndex++] = true;
+ isComponent[ix++] = true;
} else {
final Class<?> colType = getType(columnId);
- isComponent[isComponentIndex++] = colType != null
+ isComponent[ix++] = colType != null
&& Component.class.isAssignableFrom(colType);
}
}
private void paintVisibleColumnOrder(PaintTarget target) {
// Visible column order
final ArrayList<String> visibleColOrder = new ArrayList<String>();
- for (final Iterator<Object> it = visibleColumns.iterator(); it
- .hasNext();) {
- final Object columnId = it.next();
+ for (Object columnId : visibleColumns) {
if (!isColumnCollapsed(columnId)) {
visibleColOrder.add(columnIdMap.key(columnId));
}