trees = new VerticalPanel();
trees.setWidth("100%");
-
+ trees.setSpacing(5);
- HorizontalPanel treeHeader = new HorizontalPanel();
- treeHeader.addStyleName("pithos-treeHeader");
- treeHeader.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
- treeHeader.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
- HorizontalPanel statistics = new HorizontalPanel();
- statistics.addStyleName("pithos-statistics");
- statistics.add(new HTML("Used: "));
- usedBytes = new HTML();
- statistics.add(usedBytes);
- statistics.add(new HTML(" of "));
- totalBytes = new HTML();
- statistics.add(totalBytes);
- statistics.add(new HTML(" ("));
- usedPercent = new HTML();
- statistics.add(usedPercent);
- statistics.add(new HTML(")"));
- treeHeader.add(statistics);
- treeHeader.setCellHorizontalAlignment(statistics, HasHorizontalAlignment.ALIGN_LEFT);
- trees.add(treeHeader);
+// HorizontalPanel treeHeader = new HorizontalPanel();
+// treeHeader.addStyleName("pithos-treeHeader");
+// treeHeader.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
+// treeHeader.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
+// treeHeader.add(statistics);
+// treeHeader.setCellHorizontalAlignment(statistics, HasHorizontalAlignment.ALIGN_LEFT);
+// trees.add(treeHeader);
trees.add(folderTreeView);
+
+ HorizontalPanel separator = new HorizontalPanel();
+ separator.addStyleName("pithos-statisticsSeparator");
+ trees.add(separator);
+
+ HorizontalPanel statistics = new HorizontalPanel();
+ statistics.addStyleName("pithos-statistics");
+ statistics.add(new HTML("Used: "));
+ usedBytes = new HTML();
+ statistics.add(usedBytes);
+ statistics.add(new HTML(" of "));
+ totalBytes = new HTML();
+ statistics.add(totalBytes);
+ statistics.add(new HTML(" ("));
+ usedPercent = new HTML();
+ statistics.add(usedPercent);
+ statistics.add(new HTML(")"));
+ trees.add(statistics);
+
trees.add(groupTreeView);
// Add the left and right panels to the split panel.
splitPanel.setLeftWidget(trees);
splitPanel.setRightWidget(inner);
- splitPanel.setSplitPosition("35%");
+ splitPanel.setSplitPosition("219px");
splitPanel.setSize("100%", "100%");
splitPanel.addStyleName("pithos-splitPanel");
splitPanel.setWidth(contentWidth);
@Override
public void execute() {
mysharedTreeView = new MysharedTreeView(mysharedTreeViewModel);
- trees.insert(mysharedTreeView, 2);
+ trees.insert(mysharedTreeView, 4);
treeViews.add(mysharedTreeView);
createOtherSharedTree();
}
@Override
public void execute() {
otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel);
- trees.insert(otherSharedTreeView, 2);
+ trees.insert(otherSharedTreeView, 4);
treeViews.add(otherSharedTreeView);
}
});
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.ui.AbstractImagePrototype;
import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.HasVerticalAlignment;
+import com.google.gwt.user.client.ui.HorizontalPanel;
+import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.VerticalPanel;
VerticalPanel panel = new VerticalPanel();
panel.addStyleName("pithos-folderTreeSection");
Resources resources = GWT.create(Resources.class);
- SafeHtmlBuilder sb = new SafeHtmlBuilder();
- sb.appendHtmlConstant(AbstractImagePrototype.create(resources.icon()).getHTML());
- sb.append(Templates.INSTANCE.nameSpan("My Files"));
- panel.add(new HTML(sb.toSafeHtml()));
+
+ HorizontalPanel header = new HorizontalPanel();
+
+// SafeHtmlBuilder sb = new SafeHtmlBuilder();
+ Image img = new Image(resources.icon());
+ header.add(img);
+ header.setCellVerticalAlignment(img, HasVerticalAlignment.ALIGN_MIDDLE);
+ header.setCellWidth(img, "32px");
+ HTML title = new HTML("My Files");
+ header.add(title);
+ header.setCellVerticalAlignment(title, HasVerticalAlignment.ALIGN_MIDDLE);
+
+// sb.appendHtmlConstant(AbstractImagePrototype.create(resources.icon()).getHTML());
+ // sb.append(Templates.INSTANCE.nameSpan("My Files"));
+// HTML header = new HTML(sb.toSafeHtml());
+ header.addStyleName("pithos-folderTreeSectionHeader");
+ panel.add(header);
/*