Revision e56be452 src/gr/grnet/pithos/web/client/Pithos.java

b/src/gr/grnet/pithos/web/client/Pithos.java
371 371
        
372 372
        trees = new VerticalPanel();
373 373
        trees.setWidth("100%");
374

  
374
        trees.setSpacing(5);
375 375
        
376
        HorizontalPanel treeHeader = new HorizontalPanel();
377
        treeHeader.addStyleName("pithos-treeHeader");
378
        treeHeader.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
379
        treeHeader.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
380
        HorizontalPanel statistics = new HorizontalPanel();
381
        statistics.addStyleName("pithos-statistics");
382
        statistics.add(new HTML("Used: "));
383
        usedBytes = new HTML();
384
        statistics.add(usedBytes);
385
        statistics.add(new HTML(" of "));
386
        totalBytes = new HTML();
387
        statistics.add(totalBytes);
388
        statistics.add(new HTML(" ("));
389
        usedPercent = new HTML();
390
        statistics.add(usedPercent);
391
        statistics.add(new HTML(")"));
392
        treeHeader.add(statistics);
393
        treeHeader.setCellHorizontalAlignment(statistics, HasHorizontalAlignment.ALIGN_LEFT);
394
        trees.add(treeHeader);
376
//        HorizontalPanel treeHeader = new HorizontalPanel();
377
//        treeHeader.addStyleName("pithos-treeHeader");
378
//        treeHeader.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
379
//        treeHeader.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
380
//        treeHeader.add(statistics);
381
//        treeHeader.setCellHorizontalAlignment(statistics, HasHorizontalAlignment.ALIGN_LEFT);
382
//        trees.add(treeHeader);
395 383

  
396 384
        trees.add(folderTreeView);
385
        
386
        HorizontalPanel separator = new HorizontalPanel();
387
        separator.addStyleName("pithos-statisticsSeparator");
388
        trees.add(separator);
389
        
390
        HorizontalPanel statistics = new HorizontalPanel();
391
	    statistics.addStyleName("pithos-statistics");
392
	    statistics.add(new HTML("Used: "));
393
	    usedBytes = new HTML();
394
	    statistics.add(usedBytes);
395
	    statistics.add(new HTML(" of "));
396
	    totalBytes = new HTML();
397
	    statistics.add(totalBytes);
398
	    statistics.add(new HTML(" ("));
399
	    usedPercent = new HTML();
400
	    statistics.add(usedPercent);
401
	    statistics.add(new HTML(")"));
402
        trees.add(statistics);
403
        
397 404
        trees.add(groupTreeView);
398 405
        // Add the left and right panels to the split panel.
399 406
        splitPanel.setLeftWidget(trees);
400 407
        splitPanel.setRightWidget(inner);
401
        splitPanel.setSplitPosition("35%");
408
        splitPanel.setSplitPosition("219px");
402 409
        splitPanel.setSize("100%", "100%");
403 410
        splitPanel.addStyleName("pithos-splitPanel");
404 411
        splitPanel.setWidth(contentWidth);
......
1145 1152
			@Override
1146 1153
			public void execute() {
1147 1154
			    mysharedTreeView = new MysharedTreeView(mysharedTreeViewModel);
1148
				trees.insert(mysharedTreeView, 2);
1155
				trees.insert(mysharedTreeView, 4);
1149 1156
				treeViews.add(mysharedTreeView);
1150 1157
				createOtherSharedTree();
1151 1158
			}
......
1179 1186
			@Override
1180 1187
			public void execute() {
1181 1188
			    otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel);
1182
				trees.insert(otherSharedTreeView, 2);
1189
				trees.insert(otherSharedTreeView, 4);
1183 1190
				treeViews.add(otherSharedTreeView);
1184 1191
			}
1185 1192
		});

Also available in: Unified diff