table.getCellFormatter().setWordWrap(i, 5, false);\r
table.getCellFormatter().setWordWrap(i, 6, false);\r
table.getCellFormatter().setWordWrap(i, 7, false);\r
+ table.getCellFormatter().setHorizontalAlignment(i, 3, HasHorizontalAlignment.ALIGN_CENTER);\r
table.getCellFormatter().setHorizontalAlignment(i, 4, HasHorizontalAlignment.ALIGN_CENTER);\r
}\r
prevButton.setVisible(false);\r
table.getCellFormatter().setWordWrap(i, 4, false);\r
table.getCellFormatter().setWordWrap(i, 5, false);\r
table.getCellFormatter().setWordWrap(i, 6, false);\r
+ table.getCellFormatter().setHorizontalAlignment(i, 3, HasHorizontalAlignment.ALIGN_CENTER);\r
table.getCellFormatter().setHorizontalAlignment(i, 4, HasHorizontalAlignment.ALIGN_CENTER);\r
- // table.getFlexCellFormatter().setColSpan(i, 5, 2);\r
}\r
prevButton.setVisible(false);\r
nextButton.setVisible(false);\r
table.setWidget(row + 1, 0, contextMenu);\r
\r
}\r
- /*if (row < folderFileCount) {\r
-\r
- styleRow(selectedRow, false);\r
- styleRow(row, true);\r
-\r
- previous = selectedRow;\r
- selectedRow = row;\r
- GSS.get().setCurrentSelection(files.get(selectedRow));\r
-\r
- if (previous >= 0)\r
- table.setWidget(previous + 1, 0, images.document().createImage());\r
- table.setWidget(selectedRow + 1, 0, contextMenu);\r
- }\r
- */\r
}\r
\r
public List<FileResource> getSelectedFiles() {\r
nextButton.setVisible(startIndex + GSS.VISIBLE_FILE_COUNT < count);\r
}\r
updateCurrentlyShowingStats();\r
-\r
- // Reset the selected line.\r
- // styleRow(selectedRow, false);\r
- // selectedRow = -1;\r
-\r
}\r
\r
/**\r
};\r
DeferredCommand.addCommand(eg);\r
}\r
- /*\r
- service.searchFiles(userId, query, new AsyncCallback() {\r
-\r
- public void onSuccess(final Object result) {\r
- final List<FileResource> f = (List<FileResource>) result;\r
- // GWT.log(f[0].toString(), null);\r
- setFiles(f);\r
- update();\r
- GSS.get().hideLoadingIndicator();\r
- }\r
-\r
- public void onFailure(final Throwable caught) {\r
- GWT.log("", caught);\r
- GSS.get().hideLoadingIndicator();\r
- if (caught instanceof RpcException)\r
- GSS.get().displayError("An error occurred while " + "communicating with the server: " + caught.getMessage());\r
- else\r
- GSS.get().displayError(caught.getMessage());\r
- }\r
-\r
- });\r
- */\r
}\r
\r
/**\r