From d547f87da5f68c12dede7c9d45618cae11ff5699 Mon Sep 17 00:00:00 2001 From: Matt Windsor Date: Fri, 18 Mar 2011 08:28:09 +0000 Subject: Mega-commit to the rescue! Added Javadoc snapshot (admittedly old); show UI now fixed-layout; UI uses system selection colours for accents; now uses bapsserver password and can thus talk to show database relations; removed member relation dependencies until further notice; attempted to get application and applet launchers working but having issues with the latter; started working on a server communicating via a minimal implementation of HTTP 1.1 (standardisation required eventually). --- src/uk/org/ury/frontend/FrontendMaster.java | 45 +++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 3 deletions(-) (limited to 'src/uk/org/ury/frontend/FrontendMaster.java') diff --git a/src/uk/org/ury/frontend/FrontendMaster.java b/src/uk/org/ury/frontend/FrontendMaster.java index c169d04..0a89e89 100644 --- a/src/uk/org/ury/frontend/FrontendMaster.java +++ b/src/uk/org/ury/frontend/FrontendMaster.java @@ -3,6 +3,8 @@ */ package uk.org.ury.frontend; +import uk.org.ury.frontend.exceptions.LoadFailureException; + /** * Interface for classes providing the parent unit of a frontend @@ -24,10 +26,15 @@ public interface FrontendMaster * * @param moduleName The fully qualified class-name of the module, * minus the leading "uk.org.ury." domain. + * + * @throws LoadFailureException if the class is + * not found, or is not an implementor of + * FrontendModule. */ public void - loadModule (String moduleName); + loadModule (String moduleName) + throws LoadFailureException; /** @@ -40,13 +47,18 @@ public interface FrontendMaster * @param moduleName The fully qualified class-name of the module, * minus the leading "uk.org.ury." domain. * - * @param cpanelName The fully qualified class-name of the control + * @param cPanelName The fully qualified class-name of the control * panel to install, minus the leading * "uk.org.ury." domain. + * + * @throws LoadFailureException if the class is + * not found, or is not an implementor of + * FrontendModule. */ public void - loadModule (String moduleName, String cPanelName); + loadModule (String moduleName, String cPanelName) + throws LoadFailureException; /** @@ -62,4 +74,31 @@ public interface FrontendMaster public void restoreModule (FrontendModulePanel mpanel, FrontendControlPanel cpanel); + + + /** + * Report a fatal error, + * + * @param message The message, eg the exception message, to report + * to the user. + */ + + public void + fatalError (String message); + + + /** + * Set up the frontend master's user interface. + */ + + public void + setupUI (); + + + /** + * @return the resource directory. + */ + + public String + getResourceDirectory (); } -- cgit v1.2.3