summaryrefslogtreecommitdiff
path: root/BKUCommonGUI/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
Diffstat (limited to 'BKUCommonGUI/src/main/java/at/gv/egiz')
-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);
}
}