* Build the panel that contains the icon, the message and the 'clear' link.\r
*/\r
private void buildPanel() {\r
+ inner.clear();\r
inner.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\r
inner.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\r
- inner.setSpacing(4);\r
+// inner.setSpacing(4);\r
inner.add(message);\r
inner.add(clearMessageLink);\r
inner.setCellVerticalAlignment(message, HasVerticalAlignment.ALIGN_MIDDLE);\r
outer.setCellHorizontalAlignment(topPanel, HasHorizontalAlignment.ALIGN_CENTER);
}
- messagePanel.setWidth(contentWidth);
- messagePanel.setVisible(false);
- outer.add(messagePanel);
- outer.setCellHorizontalAlignment(messagePanel, HasHorizontalAlignment.ALIGN_CENTER);
-
HorizontalPanel header = new HorizontalPanel();
header.addStyleName("pithos-header");
header.setWidth(contentWidth);
if (bareContent)
header.addStyleName("pithos-header-noframe");
- HorizontalPanel leftHeader = new HorizontalPanel();
- VerticalPanel uploadButtonPanel = new VerticalPanel();
upload = new Button("Upload File", new ClickHandler() {
@Override
public void onClick(@SuppressWarnings("unused") ClickEvent event) {
}
});
upload.addStyleName("pithos-uploadButton");
- uploadButtonPanel.add(upload);
- uploadButtonPanel.setWidth("100%");
- uploadButtonPanel.setHeight("60px");
- uploadButtonPanel.setCellHorizontalAlignment(upload, HasHorizontalAlignment.ALIGN_LEFT);
- uploadButtonPanel.setCellVerticalAlignment(upload, HasVerticalAlignment.ALIGN_MIDDLE);
- leftHeader.add(uploadButtonPanel);
- header.add(leftHeader);
- header.setCellWidth(leftHeader, "35%");
-
- HorizontalPanel rightHeader = new HorizontalPanel();
- rightHeader.addStyleName("pithos-rightSide");
- rightHeader.setSpacing(5);
+ header.add(upload);
+ header.setCellHorizontalAlignment(upload, HasHorizontalAlignment.ALIGN_LEFT);
+ header.setCellVerticalAlignment(upload, HasVerticalAlignment.ALIGN_MIDDLE);
+ header.setCellWidth(upload, "146px");
+ messagePanel.setVisible(false);
+ header.add(messagePanel);
+ header.setCellHorizontalAlignment(messagePanel, HasHorizontalAlignment.ALIGN_CENTER);
+ header.setCellVerticalAlignment(messagePanel, HasVerticalAlignment.ALIGN_MIDDLE);
+
+
toolsButton = new Button(AbstractImagePrototype.create(images.tools()).getHTML());
toolsButton.addClickHandler(new ClickHandler() {
}
}
});
- rightHeader.add(toolsButton);
- rightHeader.setCellHorizontalAlignment(toolsButton, HasHorizontalAlignment.ALIGN_LEFT);
+ header.add(toolsButton);
+ header.setCellHorizontalAlignment(toolsButton, HasHorizontalAlignment.ALIGN_RIGHT);
+ header.setCellVerticalAlignment(toolsButton, HasVerticalAlignment.ALIGN_MIDDLE);
+ header.setCellWidth(toolsButton, "30px");
HorizontalPanel folderStatistics = new HorizontalPanel();
folderStatistics.addStyleName("pithos-folderStatistics");
HTML numOfFilesLabel = new HTML(" Files");
folderStatistics.add(numOfFilesLabel);
folderStatistics.setCellVerticalAlignment(numOfFilesLabel, HasVerticalAlignment.ALIGN_MIDDLE);
- rightHeader.add(folderStatistics);
- rightHeader.setCellHorizontalAlignment(folderStatistics, HasHorizontalAlignment.ALIGN_RIGHT);
- header.add(rightHeader);
- header.setCellVerticalAlignment(rightHeader, HasVerticalAlignment.ALIGN_MIDDLE);
- header.setCellHeight(rightHeader, "60px");
+ header.add(folderStatistics);
+ header.setCellHorizontalAlignment(folderStatistics, HasHorizontalAlignment.ALIGN_RIGHT);
+ header.setCellVerticalAlignment(folderStatistics, HasVerticalAlignment.ALIGN_MIDDLE);
+ header.setCellWidth(folderStatistics, "60px");
outer.add(header);
outer.setCellHorizontalAlignment(header, HasHorizontalAlignment.ALIGN_CENTER);
// Inner contains the various lists.nner
});
}
});
+
+// Scheduler.get().scheduleDeferred(new Command() {
+//
+// @Override
+// public void execute() {
+// displayError("lalala");
+//
+// }
+// });
}
public void applyPermissions(Folder f) {
}
.cellTreeItemImage {
+ padding-top: 5px;
}
.cellTreeItemImageValue {
}
.cellTreeItem:HOVER {
- background-color: #A1C8DB;
+ background-color: #A1C8DA;
}
.cellTreeOpenItem {
.cellTreeSelectedItem {
color: #d45500;
+ background-color: #BCD7E3;
height: auto;
overflow: visible;
}
public String getFileSizeAsString() {
if (bytesUsed < 1024)
- return String.valueOf(bytesUsed) + " B";
+ return String.valueOf(bytesUsed) + "B";
else if (bytesUsed < 1024*1024)
- return getSize(bytesUsed, 1024D) + " KB";
+ return getSize(bytesUsed, 1024D) + "KB";
else if (bytesUsed < 1024*1024*1024)
- return getSize(bytesUsed,(1024D*1024D)) + " MB";
- return getSize(bytesUsed , (1024D*1024D*1024D)) + " GB";
+ return getSize(bytesUsed,(1024D*1024D)) + "MB";
+ return getSize(bytesUsed , (1024D*1024D*1024D)) + "GB";
}
public String getQuotaAsString() {
long quota = bytesUsed + bytesRemaining;
if (quota < 1024)
- return String.valueOf(quota) + " B";
+ return String.valueOf(quota) + "B";
else if (quota < 1024 * 1024)
- return getSize(quota, 1024D) + " KB";
+ return getSize(quota, 1024D) + "KB";
else if (quota < 1024 * 1024 * 1024)
- return getSize(quota,(1024D * 1024D)) + " MB";
- return getSize(quota , (1024D * 1024D * 1024D)) + " GB";
+ return getSize(quota,(1024D * 1024D)) + "MB";
+ return getSize(quota , (1024D * 1024D * 1024D)) + "GB";
}
public List<Group> getGroups() {
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
ImageResource cellTreeClosedItem();
@Override
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
ImageResource cellTreeOpenItem();
@Override
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
ImageResource cellTreeClosedItem();
@Override
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
ImageResource cellTreeOpenItem();
@Override
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
ImageResource cellTreeClosedItem();
@Override
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
ImageResource cellTreeOpenItem();
@Override
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
ImageResource cellTreeClosedItem();
@Override
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
ImageResource cellTreeOpenItem();
@Override
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeClosedItem.png")
ImageResource cellTreeClosedItem();
@Override
@Override
@ImageOptions(flipRtl = true)
- @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.gif")
+ @Source("gr/grnet/pithos/web/client/cellTreeOpenItem.png")
ImageResource cellTreeOpenItem();
@Override
.pithos-errorMessage {
font-size: 90%;
- background-color: #ff9999;
+ background-color: #880000;
+ color: #fff;
cursor: pointer;
}
}
.pithos-splitPanel {
- background: url(images/white50.png);
+ background: url(images/white50.png) transparent;
margin-bottom: 34px;
}
background-color: #ff7f2a;
font-size: 120%;
text-align: center;
- height: 32px;
+ height: auto;
+ padding: 8px;
width: 146px;
border: none;
}
.pithos-header {
background: url(images/white50.png);
margin-top: 34;
+ height: 60px;
}
.pithos-header-noframe {
margin-top: 0;
}
-.cellTreeWidget-selectedTree {
- background-color: #a1c8da;
+/*.cellTreeWidget-selectedTree {
+ background-color: #BCD7E3;
+}*/
+
+.pithos-list thead th img {
+ top: 5px;
}
+
+.effectPanel-inner {
+ background-color: #4085A5;
+}
\ No newline at end of file