1 19 24 25 package org.netbeans.modules.web.jsf.navigation.options; 26 27 import java.beans.PropertyChangeListener ; 28 import java.beans.PropertyChangeSupport ; 29 import javax.swing.JComponent ; 30 import org.netbeans.spi.options.OptionsPanelController; 31 import org.openide.options.SystemOption; 32 import org.openide.util.HelpCtx; 33 import org.openide.util.Lookup; 34 35 36 41 public final class NavigationOptionPanelController extends OptionsPanelController { 42 43 private PropertyChangeSupport pcs; 44 private NavigationOptionPanel navigationOptionPanel; 45 private String currentPropertyValue = "property value"; 46 47 48 public NavigationOptionPanelController () { 49 navigationOptionPanel = new NavigationOptionPanel (); 50 } 51 52 public void update () { 53 navigationOptionPanel.update(); 54 } 55 56 public void applyChanges () { 57 navigationOptionPanel.applyChanges(); 58 } 59 60 public void cancel () { 61 navigationOptionPanel.cancel(); 62 } 63 64 public boolean isValid () { 65 return true; 66 } 67 68 public boolean isChanged () { 69 return navigationOptionPanel.isChanged(); 70 } 71 72 public HelpCtx getHelpCtx () { 73 return HelpCtx.DEFAULT_HELP; 74 } 75 76 public JComponent getComponent (Lookup masterLookup) { 77 return navigationOptionPanel; 78 } 79 80 public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener) { 81 } 82 83 public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener) { 84 } 85 } 86 | Popular Tags |