this.columnHeaders.put(it.next(), columnHeaders[i]);
}
- // Assures the visual refresh
- // FIXME: Is this really needed? Header captions should not affect
- // content so requestRepaint() should be sufficient.
- resetPageBuffer();
- refreshRenderedCells();
+ requestRepaint();
}
/**
this.columnIcons.put(it.next(), columnIcons[i]);
}
- // Assure visual refresh
- resetPageBuffer();
- refreshRenderedCells();
+ requestRepaint();
}
/**
columnIcons.put(propertyId, icon);
}
- // Assures the visual refresh
- resetPageBuffer();
- refreshRenderedCells();
+ requestRepaint();
}
/**
columnHeaders.put(propertyId, header);
}
- // Assures the visual refresh
- // FIXME: Is this really needed? Header captions should not affect
- // content so requestRepaint() should be sufficient.
- refreshRenderedCells();
+ requestRepaint();
}
/**
/**
* Sets whether column reordering is allowed or not.
*
- * @param reorderingAllowed
+ * @param columnReorderingAllowed
* specifies whether column reordering is allowed.
*/
- public void setColumnReorderingAllowed(boolean reorderingAllowed) {
- columnReorderingAllowed = reorderingAllowed;
-
- // Assures the visual refresh
- refreshRenderedCells();
+ public void setColumnReorderingAllowed(boolean columnReorderingAllowed) {
+ if (columnReorderingAllowed != this.columnReorderingAllowed) {
+ this.columnReorderingAllowed = columnReorderingAllowed;
+ requestRepaint();
+ }
}
/*
* the New value of property columnHeaderMode.
*/
public void setColumnHeaderMode(int columnHeaderMode) {
- if (columnHeaderMode >= COLUMN_HEADER_MODE_HIDDEN
+ if (columnHeaderMode != this.columnHeaderMode
+ && columnHeaderMode >= COLUMN_HEADER_MODE_HIDDEN
&& columnHeaderMode <= COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID) {
this.columnHeaderMode = columnHeaderMode;
+ requestRepaint();
}
- // Assures the visual refresh
- refreshRenderedCells();
}
/**
public void setSortDisabled(boolean sortDisabled) {
if (this.sortDisabled != sortDisabled) {
this.sortDisabled = sortDisabled;
- refreshRenderedCells();
+ requestRepaint();
}
}
* Should the footer be visible
*/
public void setFooterVisible(boolean visible) {
- columnFootersVisible = visible;
-
- // Assures the visual refresh
- refreshRenderedCells();
+ if (visible != columnFootersVisible) {
+ columnFootersVisible = visible;
+ requestRepaint();
+ }
}
/**