first styling effort
[pithos] / src / gr / ebs / gss / client / AboutDialog.java
index 4184494..1adf09e 100644 (file)
@@ -1,13 +1,20 @@
 /*\r
- * Copyright 2007, 2008, 2009 Electronic Business Systems Ltd. This file is part\r
- * of GSS. GSS is free software: you can redistribute it and/or modify it under\r
- * the terms of the GNU General Public License as published by the Free Software\r
- * Foundation, either version 3 of the License, or (at your option) any later\r
- * version. GSS is distributed in the hope that it will be useful, but WITHOUT\r
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more\r
- * details. You should have received a copy of the GNU General Public License\r
- * along with GSS. If not, see <http://www.gnu.org/licenses/>.\r
+ * Copyright 2007, 2008, 2009 Electronic Business Systems Ltd.\r
+ *\r
+ * This file is part of GSS.\r
+ *\r
+ * GSS is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * GSS is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with GSS.  If not, see <http://www.gnu.org/licenses/>.\r
  */\r
 package gr.ebs.gss.client;\r
 \r
@@ -37,13 +44,15 @@ public class AboutDialog extends DialogBox {
                String service = conf.serviceName();\r
                setText("About " + service);\r
                setAnimationEnabled(true);\r
-               // Create a VerticalPanel to contain the 'about' label and the 'OK'\r
-               // button.\r
+               // A VerticalPanel that contains the 'about' label and the 'OK' button.\r
                final VerticalPanel outer = new VerticalPanel();\r
 \r
-               // Create the 'about' text and set a style name so we can style it with\r
-               // CSS.\r
-               final HTML text = new HTML("This is the Web client for the " + service + " service. You " + "can use it to store, retrieve and share files in the " + service + " server " + "grid. <p>Design and implementation: <a href='http://www.ebs.gr' target='about'>EBS</a></p>");\r
+               // Create the 'about' text and set the style.\r
+               final HTML text = new HTML("This is the Web client for the " + service +\r
+                                       " service. You can use it to store, retrieve and share " +\r
+                                       "files in the " + service + " server grid. <p>Version: " +\r
+                                       conf.version() + "<br>Design and implementation: " +\r
+                                       "<a href='http://www.ebs.gr' target='about'>EBS</a></p>");\r
                text.setStyleName("gss-AboutText");\r
                outer.add(text);\r
 \r
@@ -65,11 +74,10 @@ public class AboutDialog extends DialogBox {
        @Override\r
        protected void onPreviewNativeEvent(NativePreviewEvent preview) {\r
                super.onPreviewNativeEvent(preview);\r
-\r
                NativeEvent evt = preview.getNativeEvent();\r
                if (evt.getType().equals("keydown"))\r
-                       // Use the popup's key preview hooks to close the dialog when either\r
-                       // enter or escape is pressed.\r
+                       // Use the popup's key preview hooks to close the dialog when\r
+                       // either enter or escape is pressed.\r
                        switch (evt.getKeyCode()) {\r
                                case KeyCodes.KEY_ENTER:\r
                                case KeyCodes.KEY_ESCAPE:\r