Revision 0f797b1b src/gr/grnet/pithos/web/client/Pithos.java
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
253 | 253 |
|
254 | 254 |
Button upload; |
255 | 255 |
|
256 |
private HTML totalFiles; |
|
257 |
|
|
258 | 256 |
private HTML usedBytes; |
259 | 257 |
|
260 | 258 |
private HTML totalBytes; |
... | ... | |
381 | 379 |
treeHeader.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); |
382 | 380 |
HorizontalPanel statistics = new HorizontalPanel(); |
383 | 381 |
statistics.addStyleName("pithos-statistics"); |
384 |
statistics.add(new HTML("Total Objects: ")); |
|
385 |
totalFiles = new HTML(); |
|
386 |
statistics.add(totalFiles); |
|
387 |
statistics.add(new HTML(" | Used: ")); |
|
382 |
statistics.add(new HTML("Used: ")); |
|
388 | 383 |
usedBytes = new HTML(); |
389 | 384 |
statistics.add(usedBytes); |
390 | 385 |
statistics.add(new HTML(" of ")); |
... | ... | |
646 | 641 |
} |
647 | 642 |
|
648 | 643 |
protected void showStatistics() { |
649 |
totalFiles.setHTML(String.valueOf(account.getNumberOfObjects())); |
|
650 | 644 |
usedBytes.setHTML(String.valueOf(account.getFileSizeAsString())); |
651 | 645 |
totalBytes.setHTML(String.valueOf(account.getQuotaAsString())); |
652 | 646 |
NumberFormat nf = NumberFormat.getPercentFormat(); |
Also available in: Unified diff