From 7ed5b34b2e06e668012e1de9d0dac7052416ebe8 Mon Sep 17 00:00:00 2001
From: Jani Laakso
- * As mentioned, all IT Mill Toolkit applications must inherit this class. However,
- * this is almost all of what one needs to do to create a fully functional
- * application. The only thing a class inheriting the
+ * As mentioned, all IT Mill Toolkit applications must inherit this class.
+ * However, this is almost all of what one needs to do to create a fully
+ * functional application. The only thing a class inheriting the
* Application
needs to do is implement the init()
* where it creates the windows it needs to perform its function. Note that all
- * applications must have at least one window: the main window. The
- * first unnamed window constructed by an application automatically becomes the
- * main window which behaves just like other windows with one exception: when
+ * applications must have at least one window: the main window. The first
+ * unnamed window constructed by an application automatically becomes the main
+ * window which behaves just like other windows with one exception: when
* accessing windows using URLs the main window corresponds to the application
* URL whereas other windows correspond to a URL gotten by catenating the
* window's name to the application URL.
@@ -88,14 +88,13 @@ import java.net.URL;
*
- * Theme selection. The theme selection process - * allows a theme to be specified at three different levels. When a window's - * theme needs to be found out, the window itself is queried for a preferred - * theme. If the window does not prefer a specific theme, the application - * containing the window is queried. If neither the application prefers a theme, - * the default theme for the - * {@link com.itmill.toolkit.terminal.Terminal terminal} is used. The terminal - * always defines a default theme. + * Theme selection. The theme selection process allows a theme + * to be specified at three different levels. When a window's theme needs to be + * found out, the window itself is queried for a preferred theme. If the window + * does not prefer a specific theme, the application containing the window is + * queried. If neither the application prefers a theme, the default theme for + * the {@link com.itmill.toolkit.terminal.Terminal terminal} is used. The + * terminal always defines a default theme. *
* * @author IT Mill Ltd. @@ -520,15 +519,9 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener /* * @see com.itmill.toolkit.terminal.URIHandler#handleURI(URL, String) */ - public DownloadStream handleURI(URL context, String relativeUri) { // If - // the - // relative - // uri - // is - // null, - // we - // are - // ready + public DownloadStream handleURI(URL context, String relativeUri) { + + // If the relative uri is null, we are ready if (relativeUri == null) return null; -- cgit v1.2.3