HasVerticalAlignment.ALIGN_MIDDLE);
}
private void updateColumn(Column column, Widget widget) {
if (column.isSortable()) {
Hyperlink link = (Hyperlink) widget;
link.setText(column.getTitle());
if (pagination.getParameters() != null
&& column.getParameter().equals(
pagination.getParameters().getParameter())) {
String imageLocation = null;
if (pagination.getParameters().isAscending()) {
imageLocation = getSortAscImage();
} else {
imageLocation = getSortDescImage();
}
// Append an arrow to show the direction
link.setHTML(link.getText() + " <img border=\"0\" src=\""
+ imageLocation + "\" />");
}
} else {
Label label = (Label) widget;
label.setText(column.getTitle());