|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun * Microsystems, Inc. All Rights Reserved. */ package org.openide.loaders; import javax.swing.event.ChangeListener; import org.openide.WizardDescriptor; import org.openide.nodes.Node; import org.openide.util.HelpCtx; /** Implementaion of WizardDescriptor.Panel that can be used in create from template. * * @author Jiri Rechtacek */ final class TemplateWizardPanel1 implements WizardDescriptor.Panel { private TemplateWizard1 templateWizard1UI; /** listener to changes in the wizard */ private ChangeListener listener; private TemplateWizard1 getPanelUI () { if (templateWizard1UI == null) { templateWizard1UI = new TemplateWizard1 (); templateWizard1UI.addChangeListener (listener); } return templateWizard1UI; } /** Add a listener to changes of the panel's validity. * @param l the listener to add * @see #isValid */ public void addChangeListener (ChangeListener l) { if (listener != null) throw new IllegalStateException (); if (templateWizard1UI != null) templateWizard1UI.addChangeListener (l); listener = l; } /** Remove a listener to changes of the panel's validity. * @param l the listener to remove */ public void removeChangeListener (ChangeListener l) { listener = null; if (templateWizard1UI != null) templateWizard1UI.removeChangeListener (l); } /** Get the component displayed in this panel. * * Note; method can be called from any thread, but not concurrently * with other methods of this interface. * * @return the UI component of this wizard panel * */ public java.awt.Component getComponent() { return getPanelUI (); } /** Help for this panel. * @return the help or |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.