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.dso;
05:
06: import com.tc.admin.common.XContainer;
07:
08: import java.awt.BorderLayout;
09:
10: import javax.swing.JScrollPane;
11:
12: public class ClientsPanel extends XContainer {
13: private ClientsTable m_table;
14:
15: public ClientsPanel(DSOClient[] clients) {
16: super (new BorderLayout());
17: add(new JScrollPane(m_table = new ClientsTable(clients)));
18: }
19:
20: public void setClients(DSOClient[] clients) {
21: m_table.setClients(clients);
22: }
23:
24: public void add(DSOClient client) {
25: m_table.addClient(client);
26: }
27:
28: public void remove(DSOClient client) {
29: m_table.removeClient(client);
30: }
31: }
|