~ubuntu-branches/ubuntu/wily/389-ds-console/wily-proposed

« back to all changes in this revision

Viewing changes to src/com/netscape/admin/dirserv/panel/ForwardingContainerPanel.java

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-03-15 19:58:37 UTC
  • Revision ID: package-import@ubuntu.com-20120315195837-296zyft51thld8q7
Tags: upstream-1.2.6
ImportĀ upstreamĀ versionĀ 1.2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** BEGIN COPYRIGHT BLOCK
 
2
 * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
 
3
 * Copyright (C) 2005 Red Hat, Inc.
 
4
 * All rights reserved.
 
5
 * 
 
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.
 
9
 * 
 
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.
 
14
 * 
 
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 **/
 
19
 
 
20
package com.netscape.admin.dirserv.panel;
 
21
 
 
22
import java.awt.*;
 
23
import java.awt.event.*;
 
24
import java.util.Enumeration;
 
25
import javax.swing.*;
 
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;
 
37
 
 
38
/**
 
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.
 
42
 *
 
43
 * @author  rweltman
 
44
 * @version %I%, %G%
 
45
 * @date                9/15/97
 
46
 * @see     com.netscape.admin.dirserv
 
47
 */
 
48
public class ForwardingContainerPanel extends ContainerPanel {
 
49
 
 
50
        public ForwardingContainerPanel(IDSModel model, BlankPanel panel,
 
51
                                                  boolean doButtons) {
 
52
                super( model, panel, doButtons );
 
53
        panel.setParent(this);
 
54
        }
 
55
 
 
56
    /*
 
57
     * Support for IDSResourceListenerModel
 
58
     *
 
59
     */
 
60
 
 
61
    /**
 
62
      * Called when the TabbedPane is selected.
 
63
      */
 
64
    public void select(IResourceObject parent, IPage viewInstance) {
 
65
                if ( _verbose ) {
 
66
                        Debug.println("ForwardingContainerPanel.select: " + getClass().getName() );
 
67
                }
 
68
        _selectedPanel.select(parent, viewInstance);
 
69
    }
 
70
    
 
71
    /**
 
72
      * Called when the object is unselected.
 
73
      */
 
74
    public void unselect(IResourceObject parent, IPage viewInstance) {
 
75
                if ( _verbose ) {
 
76
                        Debug.println("ForwardingContainerPanel.unselect: " + getClass().getName() );
 
77
                }
 
78
        _selectedPanel.unselect(parent, viewInstance);
 
79
    }
 
80
 
 
81
}