01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: /*
21: *
22: * Copyright 2005 Sun Microsystems, Inc.
23: *
24: * Licensed under the Apache License, Version 2.0 (the "License");
25: * you may not use this file except in compliance with the License.
26: * You may obtain a copy of the License at
27: *
28: * http://www.apache.org/licenses/LICENSE-2.0
29: *
30: * Unless required by applicable law or agreed to in writing, software
31: * distributed under the License is distributed on an "AS IS" BASIS,
32: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33: * See the License for the specific language governing permissions and
34: * limitations under the License.
35: *
36: */
37: package org.netbeans.modules.jdbcwizard.wizards;
38:
39: import org.openide.WizardDescriptor;
40:
41: import javax.swing.event.ChangeListener;
42:
43: /**
44: * Extends JNDINameFinishPanel, implementing the interface WizardDescriptor.FinishPanel to allows
45: * its containing wizard to enable the "Finish" button.
46: *
47: * @author npedapudi
48: */
49: public class JNDINameFinishPanel extends JNDINamePanel implements
50: WizardDescriptor.FinishablePanel {
51:
52: /**
53: *
54: */
55: private static final long serialVersionUID = 1L;
56:
57: public JNDINameFinishPanel(final String title) {
58: super (title);
59: }
60:
61: public void addChangeListener(final ChangeListener l) {
62: super .addChangeListener(l);
63: }
64:
65: /**
66: * @see org.openide.WizardDescriptor.Panel#isValid
67: */
68: public boolean isValid() {
69: return true;
70: }
71:
72: /**
73: * @see JNDINameFinishPanel#readSettings
74: */
75: public void readSettings(final Object settings) {
76: super .readSettings(settings);
77: }
78:
79: /**
80: * @see JNDINameFinishPanel#removeChangeListener
81: */
82: public void removeChangeListener(final ChangeListener l) {
83: super .removeChangeListener(l);
84: }
85:
86: /**
87: * @see JNDINameFinishPanel#storeSettings
88: */
89: public void storeSettings(final Object settings) {
90: super .storeSettings(settings);
91: }
92:
93: /**
94: * @return
95: */
96: public boolean isFinishPanel() {
97: return true;
98: }
99: }
|