1 package org.netbeans.spi.options; 2 3 import java.beans.PropertyChangeListener ; 4 import javax.swing.JComponent ; 5 import org.openide.util.HelpCtx; 6 import org.openide.util.Lookup; 7 8 13 public abstract class OptionsPanelController { 14 15 18 public static final String PROP_VALID = "valid"; 19 20 23 public static final String PROP_CHANGED = "changed"; 24 25 28 public static final String PROP_HELP_CTX = "helpCtx"; 29 30 39 public abstract void update (); 40 41 45 public abstract void applyChanges (); 46 47 51 public abstract void cancel (); 52 53 61 public abstract boolean isValid (); 62 63 71 public abstract boolean isChanged (); 72 73 83 public Lookup getLookup () { 84 return Lookup.EMPTY; 85 } 86 87 96 public abstract JComponent getComponent (Lookup masterLookup); 97 98 105 public abstract HelpCtx getHelpCtx (); 106 107 113 public abstract void addPropertyChangeListener (PropertyChangeListener l); 114 115 121 public abstract void removePropertyChangeListener (PropertyChangeListener l); 122 } 123 | Popular Tags |