1 19 20 package org.netbeans.modules.apisupport.project.ui.platform; 21 22 import java.awt.Component ; 23 import org.netbeans.modules.apisupport.project.ui.wizard.BasicWizardPanel; 24 import org.openide.WizardDescriptor; 25 import org.openide.util.HelpCtx; 26 27 33 final class PlatformInfoWizardPanel extends BasicWizardPanel { 34 35 36 private PlatformInfoVisualPanel visualPanel; 37 38 39 public PlatformInfoWizardPanel(WizardDescriptor settings) { 40 super(settings); 41 } 42 43 public void readSettings(Object settings) { 44 ((PlatformInfoVisualPanel) getComponent()).refreshData(); 45 } 46 47 public void storeSettings(Object settings) { 48 ((PlatformInfoVisualPanel) getComponent()).storeData(); 49 } 50 51 public Component getComponent() { 52 if (visualPanel == null) { 53 visualPanel = new PlatformInfoVisualPanel(getSettings()); 54 visualPanel.addPropertyChangeListener(this); 55 visualPanel.setName(NbPlatformCustomizer.INFO_STEP); 56 } 57 return visualPanel; 58 } 59 60 public HelpCtx getHelp() { 61 return new HelpCtx(PlatformInfoWizardPanel.class); 62 } 63 64 } 65 | Popular Tags |