01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin;
05:
06: import java.awt.BorderLayout;
07:
08: import com.tc.admin.common.XApplet;
09: import com.tc.admin.common.XMenuBar;
10: import com.tc.admin.common.XTreeNode;
11:
12: public class AdminClientApplet extends XApplet implements
13: AdminClientController {
14: private AdminClientPanel m_mainPanel;
15:
16: public AdminClientApplet() {
17: super ();
18:
19: getContentPane().setLayout(new BorderLayout());
20: getContentPane().add(m_mainPanel = new AdminClientPanel());
21:
22: XMenuBar menuBar;
23: m_mainPanel.initMenubar(menuBar = new XMenuBar());
24: setMenubar(menuBar);
25: }
26:
27: public boolean isExpanded(XTreeNode node) {
28: return m_mainPanel.isExpanded(node);
29: }
30:
31: public void expand(XTreeNode node) {
32: m_mainPanel.expand(node);
33: }
34:
35: public boolean isSelected(XTreeNode node) {
36: return m_mainPanel.isSelected(node);
37: }
38:
39: public void select(XTreeNode node) {
40: m_mainPanel.select(node);
41: }
42:
43: public void remove(XTreeNode node) {
44: m_mainPanel.remove(node);
45: }
46:
47: public void nodeStructureChanged(XTreeNode node) {
48: m_mainPanel.nodeStructureChanged(node);
49: }
50:
51: public void nodeChanged(XTreeNode node) {
52: m_mainPanel.nodeChanged(node);
53: }
54:
55: public boolean testServerMatch(ServerNode node) {
56: return m_mainPanel.testServerMatch(node);
57: }
58:
59: public void updateServerPrefs() {
60: m_mainPanel.updateServerPrefs();
61: }
62:
63: public void stop() {
64: m_mainPanel.disconnectAll();
65: }
66:
67: public void log(String s) {
68: m_mainPanel.log(s);
69: }
70:
71: public void log(Exception e) {
72: m_mainPanel.log(e);
73: }
74:
75: public void setStatus(String msg) {
76: m_mainPanel.setStatus(msg);
77: }
78:
79: public void clearStatus() {
80: m_mainPanel.clearStatus();
81: }
82:
83: public void addServerLog(ConnectionContext cc) {
84: m_mainPanel.addServerLog(cc);
85: }
86:
87: public void removeServerLog(ConnectionContext cc) {
88: m_mainPanel.removeServerLog(cc);
89: }
90:
91: public void block() {/**/
92: }
93:
94: public void unblock() {/**/
95: }
96: }
|