aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/testrig
diff options
context:
space:
mode:
Diffstat (limited to 'src/uk/org/ury/testrig')
-rw-r--r--src/uk/org/ury/testrig/ApplicationLauncher.java32
-rw-r--r--src/uk/org/ury/testrig/DemoControlPanel.java47
-rw-r--r--src/uk/org/ury/testrig/DemoMenu.java64
-rw-r--r--src/uk/org/ury/testrig/DemoMenuPanel.java90
-rw-r--r--src/uk/org/ury/testrig/Launcher.java17
-rw-r--r--src/uk/org/ury/testrig/demo_control_panel.xml7
6 files changed, 0 insertions, 257 deletions
diff --git a/src/uk/org/ury/testrig/ApplicationLauncher.java b/src/uk/org/ury/testrig/ApplicationLauncher.java
deleted file mode 100644
index ce48722..0000000
--- a/src/uk/org/ury/testrig/ApplicationLauncher.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- *
- */
-package uk.org.ury.testrig;
-
-import uk.org.ury.frontend.FrontendFrame;
-
-
-/**
- * An application-based entry point into the frontend.
- *
- * If provided with no arguments, this will launch the main menu.
- *
- * @author Matt Windsor
- */
-
-public class ApplicationLauncher implements Launcher
-{
- /**
- * Main method.
- *
- * @param args The command-line arguments to the program. These
- * will currently be ignored.
- */
-
- public static void
- main (String[] args)
- {
- FrontendFrame fr = new FrontendFrame (DEFAULT_MODULE_NAME);
- fr.setupUI ();
- }
-}
diff --git a/src/uk/org/ury/testrig/DemoControlPanel.java b/src/uk/org/ury/testrig/DemoControlPanel.java
deleted file mode 100644
index 85789c5..0000000
--- a/src/uk/org/ury/testrig/DemoControlPanel.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package uk.org.ury.testrig;
-
-
-import uk.org.ury.frontend.FrontendControlPanel;
-import uk.org.ury.frontend.exceptions.UICreationFailureException;
-
-
-/**
- * Control panel for the demo system.
- *
- * @author Matt Windsor
- *
- */
-
-public class DemoControlPanel extends FrontendControlPanel
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 7558888612002013312L;
-
-
- /**
- * Constructs a new DemoControlPanel.
- *
- * @throws UICreationFailureException if the UI creation fails.
- */
-
- public
- DemoControlPanel ()
- throws UICreationFailureException
- {
- super ("demo_control_panel.xml");
- }
-
-
- /**
- * Go back to the previous module.
- */
-
- public void
- back ()
- {
- master.restoreModule (parent, prevCPanel);
- }
-}
diff --git a/src/uk/org/ury/testrig/DemoMenu.java b/src/uk/org/ury/testrig/DemoMenu.java
deleted file mode 100644
index 19e68d9..0000000
--- a/src/uk/org/ury/testrig/DemoMenu.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package uk.org.ury.testrig;
-
-import uk.org.ury.frontend.AbstractFrontendModule;
-import uk.org.ury.frontend.FrontendMaster;
-import uk.org.ury.frontend.FrontendModulePanel;
-import uk.org.ury.frontend.exceptions.LoadFailureException;
-
-
-/**
- * Application frontend, for testing early-stage frontend code.
- *
- * @author Matt Windsor
- *
- */
-
-public class DemoMenu extends AbstractFrontendModule
-{
- /**
- *
- */
- private static final long serialVersionUID = -5264235507636809476L;
- private FrontendMaster master;
-
-
- /**
- *
- */
-
- public void
- loadModule (String module)
- {
- try
- {
- master.loadModule (module, "testrig.DemoControlPanel");
- }
- catch (LoadFailureException e)
- {
- master.fatalError (e.getMessage ());
- }
- }
-
-
- /**
- * Run the demo menu, creating a user interface.
- */
-
- public void
- run ()
- {
-
- }
-
-
- /**
- * Run the demo menu in frontend mode.
- */
-
- @Override
- public FrontendModulePanel
- runFrontend (FrontendMaster master)
- {
- return new DemoMenuPanel (master);
- }
-}
diff --git a/src/uk/org/ury/testrig/DemoMenuPanel.java b/src/uk/org/ury/testrig/DemoMenuPanel.java
deleted file mode 100644
index f38a3a0..0000000
--- a/src/uk/org/ury/testrig/DemoMenuPanel.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package uk.org.ury.testrig;
-
-import java.awt.GridLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-
-import javax.swing.JButton;
-
-import uk.org.ury.frontend.FrontendMaster;
-import uk.org.ury.frontend.FrontendModulePanel;
-import uk.org.ury.frontend.exceptions.LoadFailureException;
-
-public class DemoMenuPanel extends FrontendModulePanel
-{
- /**
- *
- */
- private static final long serialVersionUID = 5268978856289909262L;
-
-
- /**
- * Construct a new DemoMenuPanel.
- *
- * @param inMaster The new frontend master of the panel, if any.
- */
-
- public
- DemoMenuPanel (FrontendMaster inMaster)
- {
- super (null, inMaster);
-
- setLayout (new GridLayout (2, 1));
-
- JButton lb = new JButton ("Library Viewer Demo");
- JButton sb = new JButton ("Show Viewer Demo");
-
- lb.addActionListener (new ActionListener ()
- {
- @Override
- public void
- actionPerformed (ActionEvent arg0)
- {
- try
- {
- master.loadModule ("library.viewer.LibraryViewer",
- "testrig.DemoControlPanel");
- }
- catch (LoadFailureException e)
- {
- master.fatalError (e.getMessage ());
- }
- }
- });
-
-
- sb.addActionListener (new ActionListener ()
- {
- @Override
- public void
- actionPerformed (ActionEvent arg0)
- {
- try
- {
- master.loadModule ("show.viewer.ShowViewer",
- "testrig.DemoControlPanel");
- }
- catch (LoadFailureException e)
- {
- master.fatalError (e.getMessage ());
- }
- }
- });
-
-
- add (lb);
- add (sb);
- }
-
-
- /**
- * @return the name of the module.
- */
-
- @Override
- public String
- getModuleName ()
- {
- return "Demo Menu";
- }
-}
diff --git a/src/uk/org/ury/testrig/Launcher.java b/src/uk/org/ury/testrig/Launcher.java
deleted file mode 100644
index d5126c7..0000000
--- a/src/uk/org/ury/testrig/Launcher.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- *
- */
-package uk.org.ury.testrig;
-
-
-/**
- * Interface for entry points into the frontend.
- *
- * @author Matt Windsor
- */
-
-
-public interface Launcher
-{
- public String DEFAULT_MODULE_NAME = "testrig.DemoMenu";
-}
diff --git a/src/uk/org/ury/testrig/demo_control_panel.xml b/src/uk/org/ury/testrig/demo_control_panel.xml
deleted file mode 100644
index a9b5329..0000000
--- a/src/uk/org/ury/testrig/demo_control_panel.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<panel>
- <hbox border="EmptyBorder(0,5,5,5)">
- <button id="backButton" text="Back to Demo Menu" mnemonic="VK_B" action="back" />
- <button id="aboutButton" text="About..." mnemonic="VK_A" action="about" />
- </hbox>
-</panel>