Split the status panel into two internal subpanels and move them to the sides.
authorpastith <devnull@localhost>
Thu, 26 Mar 2009 11:53:38 +0000 (11:53 +0000)
committerpastith <devnull@localhost>
Thu, 26 Mar 2009 11:53:38 +0000 (11:53 +0000)
gss/src/gr/ebs/gss/client/GSS.java
gss/src/gr/ebs/gss/client/StatusPanel.java

index 2dff71a..7dacae0 100644 (file)
@@ -321,7 +321,6 @@ public class GSS implements EntryPoint, WindowResizeListener {
                outer.add(statusPanel);
                outer.setWidth("100%");
                outer.setCellHorizontalAlignment(messagePanel, HasHorizontalAlignment.ALIGN_CENTER);
-               outer.setCellHorizontalAlignment(statusPanel, HasHorizontalAlignment.ALIGN_RIGHT);
 
                outer.setSpacing(4);
 
index 0caabc4..e3f0fdd 100644 (file)
@@ -29,6 +29,7 @@ import com.google.gwt.user.client.IncrementalCommand;
 import com.google.gwt.user.client.ui.AbstractImagePrototype;\r
 import com.google.gwt.user.client.ui.Composite;\r
 import com.google.gwt.user.client.ui.HTML;\r
+import com.google.gwt.user.client.ui.HasHorizontalAlignment;\r
 import com.google.gwt.user.client.ui.HorizontalPanel;\r
 import com.google.gwt.user.client.ui.ImageBundle;\r
 \r
@@ -73,15 +74,26 @@ public class StatusPanel extends Composite {
        public StatusPanel(Images theImages) {\r
                images = theImages;\r
                HorizontalPanel outer = new HorizontalPanel();\r
-               outer.setSpacing(8);\r
-               outer.add(new HTML("<b>Totals:</b> "));\r
-               outer.add(images.totalFiles().createImage());\r
-               outer.add(fileCountLabel = new HTML(""));\r
-               outer.add(images.totalSize().createImage());\r
-               outer.add(fileSizeLabel = new HTML(""));\r
-               outer.add(quotaLabel = new HTML(""));\r
-               outer.add(currentlyShowingLabel = new HTML(""));\r
+               outer.setWidth("100%");\r
+               outer.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\r
+\r
+               HorizontalPanel left = new HorizontalPanel();\r
+               left.setSpacing(8);\r
+               HorizontalPanel right = new HorizontalPanel();\r
+               right.setSpacing(8);\r
+               outer.add(left);\r
+               outer.add(right);\r
+               left.add(new HTML("<b>Totals:</b> "));\r
+               left.add(images.totalFiles().createImage());\r
+               left.add(fileCountLabel = new HTML(""));\r
+               left.add(images.totalSize().createImage());\r
+               left.add(fileSizeLabel = new HTML(""));\r
+               left.add(quotaLabel = new HTML(""));\r
+               right.add(currentlyShowingLabel = new HTML(""));\r
                outer.setStyleName("statusbar-inner");\r
+               left.setStyleName("statusbar-inner");\r
+               right.setStyleName("statusbar-inner");\r
+               outer.setCellHorizontalAlignment(right, HasHorizontalAlignment.ALIGN_RIGHT);\r
 \r
                initWidget(outer);\r
 \r