]> git.argeo.org Git - gpl/argeo-suite.git/blob - org.argeo.suite.e4.rap/src/org/argeo/suite/e4/rap/ArgeoOfficeRapE4App.java
Use tabbed area.
[gpl/argeo-suite.git] / org.argeo.suite.e4.rap / src / org / argeo / suite / e4 / rap / ArgeoOfficeRapE4App.java
1
2 package org.argeo.suite.e4.rap;
3
4 import org.argeo.cms.e4.rap.AbstractRapE4App;
5 import org.eclipse.rap.rwt.application.Application;
6 import org.eclipse.rap.rwt.client.WebClient;
7 import org.osgi.framework.BundleContext;
8 import org.osgi.framework.FrameworkUtil;
9
10 /** Argeo Office RAP application. */
11 public class ArgeoOfficeRapE4App extends AbstractRapE4App {
12 private BundleContext bc = FrameworkUtil.getBundle(getClass()).getBundleContext();
13
14 public ArgeoOfficeRapE4App() {
15 // setPageTitle("Argeo Office");
16 // setE4Xmi("org.argeo.suite.e4/e4xmi/argeo-office.e4xmi");
17 // setPath("/office");
18 setLifeCycleUri("bundleclass://org.argeo.suite.e4.rap/org.argeo.suite.e4.rap.ArgeoSuiteLoginLifecycle");
19 }
20
21 @Override
22 protected void addEntryPoints(Application application) {
23 // CmsTheme cmsTheme = new CmsTheme(bc, "org.argeo.theme.argeo2");
24 // cmsTheme.apply(application);
25
26 String font = "<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Source+Sans+Pro'/>";
27 getBaseProperties().put(WebClient.HEAD_HTML, font);
28
29 addE4EntryPoint(application, "/office", "org.argeo.suite.e4/e4xmi/argeo-office.e4xmi", customise("Office"));
30 addE4EntryPoint(application, "/docs", "org.argeo.suite.e4/e4xmi/argeo-docs.e4xmi", customise("Docs"));
31 }
32
33 // protected void addEntryPoint(Application application, E4ApplicationConfig config, Map<String, String> properties) {
34 // // String theme ="org.argeo.theme.argeo2.office";
35 // String theme = RWT.DEFAULT_THEME_ID;
36 // Bundle themeBundle = findTheme("org.argeo.theme.argeo2");
37 // // application.addStyleSheet(theme, "rap/office-rwt.css", new
38 // // BundleResourceLoader(themeBundle));
39 // application.addStyleSheet(theme, "rap/office.css", new BundleResourceLoader(themeBundle));
40 // properties.put(WebClient.THEME_ID, theme);
41 // String font = "<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Source+Sans+Pro'/>";
42 // properties.put(WebClient.HEAD_HTML, font);
43 // //super.addEntryPoint(application, config, properties);
44 // }
45
46 }