1
/** BEGIN COPYRIGHT BLOCK
2
* Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
3
* Copyright (C) 2005 Red Hat, Inc.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
* END COPYRIGHT BLOCK **/
20
package com.netscape.admin.dirserv.panel;
23
import java.awt.event.*;
24
import java.util.Enumeration;
26
import javax.swing.event.ChangeListener;
27
import javax.swing.border.EmptyBorder;
28
import javax.swing.event.ChangeEvent;
29
import com.netscape.admin.dirserv.IDSModel;
30
import com.netscape.admin.dirserv.DSUtil;
31
import com.netscape.admin.dirserv.IChangeClient;
32
import com.netscape.admin.dirserv.IDSResourceSelectionListener;
33
import com.netscape.management.client.IPage;
34
import com.netscape.management.client.IResourceObject;
35
import com.netscape.management.client.util.RemoteImage;
36
import com.netscape.management.client.util.Debug;
39
* Container Panel for Directory Server resource page. Provides optional
40
* Save/Reset/Help buttons. Used to house a client panel, or extended
41
* by DSTabbedPanel to house several client panels.
46
* @see com.netscape.admin.dirserv
48
public class ForwardingContainerPanel extends ContainerPanel {
50
public ForwardingContainerPanel(IDSModel model, BlankPanel panel,
52
super( model, panel, doButtons );
53
panel.setParent(this);
57
* Support for IDSResourceListenerModel
62
* Called when the TabbedPane is selected.
64
public void select(IResourceObject parent, IPage viewInstance) {
66
Debug.println("ForwardingContainerPanel.select: " + getClass().getName() );
68
_selectedPanel.select(parent, viewInstance);
72
* Called when the object is unselected.
74
public void unselect(IResourceObject parent, IPage viewInstance) {
76
Debug.println("ForwardingContainerPanel.unselect: " + getClass().getName() );
78
_selectedPanel.unselect(parent, viewInstance);