summaryrefslogtreecommitdiff
path: root/BKUCommonGUI/src/main/java
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-13 13:59:06 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-13 13:59:06 +0000
commitaa099311111a1d53f999705762aceb4005ecc187 (patch)
tree7af5281eb2af51d06e61479159d60c373be1210b /BKUCommonGUI/src/main/java
parent128dc80f2e484b224c131abc8de6fab204d71d19 (diff)
downloadmocca-aa099311111a1d53f999705762aceb4005ecc187.tar.gz
mocca-aa099311111a1d53f999705762aceb4005ecc187.tar.bz2
mocca-aa099311111a1d53f999705762aceb4005ecc187.zip
config guiStyle simple/advanced, hashdatadisplay internal/external
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@107 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUCommonGUI/src/main/java')
-rw-r--r--BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIFactory.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIFactory.java b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIFactory.java
index 5124914a..4a338f23 100644
--- a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIFactory.java
+++ b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIFactory.java
@@ -17,16 +17,23 @@
package at.gv.egiz.bku.gui;
public class BKUGUIFactory {
+
+ public static final String SIMPLE_GUI = "simple";
+ public static final String ADVANCED_GUI = "advanced";
+
private static BKUGUIFactory instance = new BKUGUIFactory();
private BKUGUIFactory() {
}
- protected BKUGUIFacade createNewGUI() {
+ protected BKUGUIFacade createNewGUI(String style) {
+ if (ADVANCED_GUI.equals(style)) {
+ return new BKUGUI();
+ }
return new SimpleGUI();
}
- public static BKUGUIFacade createGUI() {
- return instance.createNewGUI();
+ public static BKUGUIFacade createGUI(String style) {
+ return instance.createNewGUI(style);
}
}