Added a native log() that writes to the browser 's console for debugging
[pithos-web-client] / src / gr / grnet / pithos / web / client / StatusPanel.java
index 4a06cbb..ff2dec3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2011 GRNET S.A. All rights reserved.
+ * Copyright 2011-2012 GRNET S.A. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or
  * without modification, are permitted provided that the following
@@ -34,9 +34,7 @@
  */
 package gr.grnet.pithos.web.client;
 
-import com.google.gwt.resources.client.ClientBundle;
-import com.google.gwt.resources.client.ImageResource;
-import com.google.gwt.user.client.ui.AbstractImagePrototype;
+import com.google.gwt.user.client.ui.Anchor;
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.HasHorizontalAlignment;
@@ -60,18 +58,23 @@ public class StatusPanel extends Composite {
         inner.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
                HorizontalPanel firstLine = new HorizontalPanel();
                firstLine.setSpacing(8);
-        firstLine.add(new HTML("<a href='javascript:void(0)'>About</a> |"));
-        firstLine.add(new HTML("<a href='javascript:void(0)'>Help</a> |"));
-        firstLine.add(new HTML("<a href='javascript:void(0)'>Contact</a> |"));
-        firstLine.add(new HTML("<a href='javascript:void(0)'>Terms</a> |"));
-        firstLine.add(new HTML("<a href='javascript:void(0)'>Privacy</a>"));
+               firstLine.add(new Anchor("About"));
+               firstLine.add(new HTML("|"));
+        firstLine.add(new Anchor("Help"));
+               firstLine.add(new HTML("|"));
+        firstLine.add(new Anchor("Contact"));
+               firstLine.add(new HTML("|"));
+        firstLine.add(new Anchor("Terms"));
+               firstLine.add(new HTML("|"));
+        firstLine.add(new Anchor("Privacy"));
                inner.add(firstLine);
 
         HorizontalPanel secondLine = new HorizontalPanel();
-        secondLine.add(new HTML("Copyright (C) 2011 Greek Research and Technology Network"));
+        secondLine.add(new HTML("<a class='grnet-sign' href='http://www.grnet.gr'>Copyright (C) 2011-2012 Greek Research and Technology Network</a>"));
         inner.add(secondLine);
-        
         outer.add(inner);
+        outer.addStyleName("pithos-statusbar");
+
                initWidget(outer);
        }
 }