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 org.dijon.ContainerResource;
07: import org.dijon.Label;
08:
09: import com.tc.admin.common.XContainer;
10:
11: /**
12: * This component is displayed on the ServerPanel after connecting to the
13: * associated server.
14: */
15:
16: public class ProductInfoPanel extends XContainer {
17: private Label m_version;
18: private Label m_copyright;
19:
20: public ProductInfoPanel() {
21: super ();
22:
23: AdminClientContext cc = AdminClient.getContext();
24: load(cc.topRes.getComponent("ProductInfoPanel"));
25: }
26:
27: public void load(ContainerResource containerRes) {
28: super .load(containerRes);
29:
30: m_version = (Label) findComponent("Version");
31: m_copyright = (Label) findComponent("Copyright");
32: }
33:
34: public void init(ProductInfo productInfo) {
35: m_version.setText(productInfo.getVersion());
36: m_copyright.setText(productInfo.getCopyright());
37: }
38:
39: public void tearDown() {
40: super.tearDown();
41:
42: m_version = null;
43: m_copyright = null;
44: }
45: }
|