KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > common > XContainer


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.admin.common;
5
6 import java.awt.LayoutManager JavaDoc;
7
8 import org.dijon.Container;
9
10 public class XContainer extends Container {
11   private XTreeNode m_node;
12
13   public XContainer() {
14     super();
15   }
16
17   public XContainer(LayoutManager JavaDoc layout) {
18     super(layout);
19   }
20
21   public XContainer(XTreeNode node) {
22     this();
23     setNode(node);
24   }
25
26   public void setNode(XTreeNode node) {
27     m_node = node;
28   }
29
30   public XTreeNode getNode() {
31     return m_node;
32   }
33
34   public void tearDown() {
35     removeAll();
36     setNode(null);
37   }
38 }
39
Popular Tags