selected
flag.
- *
- * @param row
- * @param selected
- */
- void styleRow(final int row, final boolean selected) {
- if (row != -1 && row >= 0)
- if (selected)
- table.getRowFormatter().addStyleName(row + 1, "gss-SelectedRow");
- else
- table.getRowFormatter().removeStyleName(row + 1, "gss-SelectedRow");
- }
-
- /**
- * Update the display of the file list.
- */
- void update(boolean sort) {
- int count = folderFileCount;
- int max = startIndex + GSS.VISIBLE_FILE_COUNT;
- if (max > count)
- max = count;
- folderTotalSize = 0;
-
- if (sort && files != null && files.size() != 0) {
- clearLabels();
- clearSelectedRows();
-
- Collections.sort(files, new Comparator"); + sb.appendHtmlConstant(imageHtml); + sb.appendHtmlConstant(" | "); + + // Add the name and address. + DisplayHelper.log("value.getName()"); + sb.appendHtmlConstant(""); + sb.appendEscaped(value.getName()); + sb.appendHtmlConstant(" |
"); + sb.appendEscaped(value.getFileSizeAsString()); + sb.appendHtmlConstant(" |