|
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-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.core.ui; import java.awt.Component; import javax.swing.event.ChangeListener; import org.openide.WizardDescriptor; import org.openide.util.HelpCtx; /** Implementation of MDI/SDI, www browser and proxy settings wizard panel. * This panel is part of Setup Wizard, and is installed dynamically through * layers. * In aggregation with its UI part, IDESettingsPanel. */ final public class IDESettingsWizardPanel implements WizardDescriptor.FinishPanel { /** aggregation, instance of UI component of this wizard panel */ private IDESettingsPanel panelUI; /** Accessor for component of this wizard panel. * @return AWT component which represents UI of this wizard panel */ public Component getComponent() { return getPanelUI(); } /** Help context. * @return help context of IDESettings wizard panel */ public HelpCtx getHelp () { // #44551 - remove help Id // return new HelpCtx("setupwizard.idesettings"); // NOI18N return null; } /** Initializes UI part from read settings. * @param settings Data to be read */ public void readSettings (Object settings) { if (settings instanceof WizardDescriptor) { getPanelUI().initFromSettings((WizardDescriptor)settings); } } /** Does nothing in this impl. * @param settings ignored */ public void storeSettings (Object settings) { } /** Always valid. * @return always true. */ public boolean isValid () { return true; } /** Noop, as this wizard panel is always valid. * @see #isValid * @param l ignored */ public void addChangeListener (ChangeListener l) { } /** Noop, as this wizard panel is always valid. * @see #isValid * @param l ignored */ public void removeChangeListener (ChangeListener l) { } /** @return UI component of this wizard panel. Creates new one if * accessed for the first time */ private IDESettingsPanel getPanelUI () { if (panelUI == null) { panelUI = new IDESettingsPanel(); } return panelUI; } } |
... 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.