*/\r
package gr.ebs.gss.client;\r
\r
+import com.google.gwt.core.client.GWT;\r
+import com.google.gwt.resources.client.ClientBundle;\r
+import com.google.gwt.resources.client.ImageResource;\r
import com.google.gwt.user.client.Command;\r
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.HasHorizontalAlignment;\r
import com.google.gwt.user.client.ui.HasVerticalAlignment;\r
import com.google.gwt.user.client.ui.HorizontalPanel;\r
-import com.google.gwt.user.client.ui.ImageBundle;\r
import com.google.gwt.user.client.ui.MenuBar;\r
import com.google.gwt.user.client.ui.MenuItem;\r
\r
/**\r
* An image bundle for this widgets images.\r
*/\r
- public interface Images extends ImageBundle, FileMenu.Images, EditMenu.Images,\r
+ public interface Images extends ClientBundle, FileMenu.Images, EditMenu.Images,\r
SettingsMenu.Images, GroupMenu.Images, FilePropertiesDialog.Images,\r
HelpMenu.Images {\r
\r
- @Resource("gr/ebs/gss/resources/exit.png")\r
- AbstractImagePrototype exit();\r
+ @Source("gr/ebs/gss/resources/exit.png")\r
+ ImageResource exit();\r
\r
- @Resource("gr/ebs/gss/resources/folder_blue.png")\r
- AbstractImagePrototype folder();\r
+ @Source("gr/ebs/gss/resources/folder_blue.png")\r
+ ImageResource folder();\r
\r
- @Resource("gr/ebs/gss/resources/edit.png")\r
- AbstractImagePrototype edit();\r
+ @Source("gr/ebs/gss/resources/edit.png")\r
+ ImageResource edit();\r
\r
- @Resource("gr/ebs/gss/resources/edit_group.png")\r
- AbstractImagePrototype group();\r
+ @Source("gr/ebs/gss/resources/edit_group.png")\r
+ ImageResource group();\r
\r
- @Resource("gr/ebs/gss/resources/configure.png")\r
- AbstractImagePrototype configure();\r
+ @Source("gr/ebs/gss/resources/configure.png")\r
+ ImageResource configure();\r
\r
- @Resource("gr/ebs/gss/resources/help.png")\r
- AbstractImagePrototype help();\r
+ @Source("gr/ebs/gss/resources/help.png")\r
+ ImageResource help();\r
\r
- @Resource("gr/ebs/gss/resources/pithos-logo.png")\r
- AbstractImagePrototype gssLogo();\r
+ @Source("gr/ebs/gss/resources/pithos-logo.png")\r
+ ImageResource gssLogo();\r
\r
- @Resource("gr/ebs/gss/resources/grnet-logo.png")\r
- AbstractImagePrototype grnetLogo();\r
+ @Source("gr/ebs/gss/resources/grnet-logo.png")\r
+ ImageResource grnetLogo();\r
}\r
\r
/**\r
}\r
};\r
MenuItem quitItem = new MenuItem("<table style='font-size: 100%'><tr><td>" +\r
- images.exit().getHTML() + "</td><td>Quit</td></tr></table>", true, quitCommand);\r
+ AbstractImagePrototype.create(images.exit()).getHTML() + "</td><td>Quit</td></tr></table>", true, quitCommand);\r
MenuItem fileItem = new MenuItem("<table style='font-size: 100%'><tr><td>" +\r
- images.folder().getHTML() + "</td><td>File</td></tr></table>", true, new MenuBar(true)){\r
+ AbstractImagePrototype.create(images.folder()).getHTML() + "</td><td>File</td></tr></table>", true, new MenuBar(true)){\r
@Override\r
public MenuBar getSubMenu() {\r
return fileMenu.createMenu();\r
}\r
};\r
MenuItem editItem = new MenuItem("<table style='font-size: 100%'><tr><td>" +\r
- images.edit().getHTML() + "</td><td>Edit</td></tr></table>", true, new MenuBar(true)){\r
+ AbstractImagePrototype.create(images.edit()).getHTML() + "</td><td>Edit</td></tr></table>", true, new MenuBar(true)){\r
@Override\r
public MenuBar getSubMenu() {\r
return editMenu.createMenu();\r
}\r
};\r
MenuItem groupItem = new MenuItem("<table style='font-size: 100%'><tr><td>" +\r
- images.group().getHTML() + "</td><td>Group</td></tr></table>", true,\r
+ AbstractImagePrototype.create(images.group()).getHTML() + "</td><td>Group</td></tr></table>", true,\r
groupMenu.getContextMenu());\r
MenuItem configureItem = new MenuItem("<table style='font-size: 100%'><tr><td>" +\r
- images.configure().getHTML() + "</td><td>Settings</td></tr></table>",\r
+ AbstractImagePrototype.create(images.configure()).getHTML() + "</td><td>Settings</td></tr></table>",\r
true,settingsMenu.getContextMenu());\r
MenuItem helpItem = new MenuItem("<table style='font-size: 100%'><tr><td>" +\r
- images.help().getHTML() + "</td><td>Help</td></tr></table>", true, new MenuBar(true)){\r
+ AbstractImagePrototype.create(images.help()).getHTML() + "</td><td>Help</td></tr></table>", true, new MenuBar(true)){\r
@Override\r
public MenuBar getSubMenu() {\r
return helpMenu.createMenu();\r
outer.add(menu);\r
outer.setStyleName("toolbar");\r
\r
- HTML logos = new HTML("<table><tr><td><a href='http://pithos.grnet.gr/' target='gss'>" +\r
- images.gssLogo().getHTML() + "</a><a href='http://www.grnet.gr/' " +\r
- "target='grnet'>" + images.grnetLogo().getHTML()+"</a></td></tr></table>");\r
+ Configuration conf = (Configuration) GWT.create(Configuration.class);\r
+ HTML logos = new HTML("<table><tr><td><a href='" + conf.serviceHome() +\r
+ "' target='gss'>" + AbstractImagePrototype.create(images.gssLogo()).getHTML() +\r
+ "</a><a href='http://www.grnet.gr/' " + "target='grnet'>" +\r
+ AbstractImagePrototype.create(images.grnetLogo()).getHTML()+"</a></td></tr></table>");\r
outer.add(logos);\r
\r
outer.setCellHorizontalAlignment(logos, HasHorizontalAlignment.ALIGN_RIGHT);\r