01: /*
02: * UIObserver.java Copyright (c) 2006,07 Swaroop Belur
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08:
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13:
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17: *
18: */
19:
20: package net.sf.jdec.ui.core;
21:
22: public class UIObserver {
23:
24: private java.lang.String observerType = "";
25: private static UIObserver observer = null;
26:
27: private UIObserver() {
28:
29: }
30:
31: public static UIObserver getUIObserver() {
32: if (observer == null) {
33: observer = new UIObserver();
34: return observer;
35: } else
36: return observer;
37:
38: }
39:
40: public void resetOutputFrame(String type) {
41: if (type.equalsIgnoreCase("jeditorPane")
42: || type.equalsIgnoreCase("table"))
43: observerType = type;
44: else
45: observerType = "jeditorPane";
46: }
47:
48: public String getOutputFrameType() {
49: return observerType;
50: }
51:
52: public void resetTabsPane(boolean jarTree) {
53: renderJarTree = jarTree;
54: }
55:
56: public boolean renderJarTree() {
57: return renderJarTree;
58: }
59:
60: private boolean renderJarTree = false;
61: }
|