Class DefaultConfigController

java.lang.Object
org.netbeans.spi.options.OptionsPanelController
org.esa.snap.rcp.preferences.DefaultConfigController
Direct Known Subclasses:
ColorManipulationController, GeoLocationController, GraticuleLayerController, ImageLayerController, ImageViewController, MaskLayerController, NoDataLayerController, OtherOptionsController, QuicklookOptionsController, RgbController, ToolAdapterOptionsController, UiBehaviorController, VFSOptionsController, WorldMapLayerController, WriteOptionsController

public abstract class DefaultConfigController extends org.netbeans.spi.options.OptionsPanelController
Abstract superclass for preferences pages. Subclasses need to be annotated with either OptionsPanelController.TopLevelRegistration or OptionsPanelController.SubRegistration.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.netbeans.spi.options.OptionsPanelController

    org.netbeans.spi.options.OptionsPanelController.ContainerRegistration, org.netbeans.spi.options.OptionsPanelController.Keywords, org.netbeans.spi.options.OptionsPanelController.KeywordsRegistration, org.netbeans.spi.options.OptionsPanelController.SubRegistration, org.netbeans.spi.options.OptionsPanelController.TopLevelRegistration
  • Field Summary

    Fields inherited from class org.netbeans.spi.options.OptionsPanelController

    PROP_CHANGED, PROP_HELP_CTX, PROP_VALID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
     
    protected void
    configure(com.bc.ceres.swing.binding.BindingContext context)
    Configure the passed binding context.
    protected JPanel
    createPanel(com.bc.ceres.swing.binding.BindingContext context)
    Create a panel that allows the user to set the parameters in the given BindingContext.
    protected abstract PropertySet
    Create a PropertySet object instance that holds all parameters.
    protected final PropertyContainer
    Creates a PropertyContainer for any bean.
    protected com.bc.ceres.swing.binding.BindingContext
     
    getComponent(org.openide.util.Lookup lookup)
     
    boolean
     
    protected boolean
     
    boolean
     
    void
     
    protected void
    setChanged(boolean changed)
     
    void
     

    Methods inherited from class org.netbeans.spi.options.OptionsPanelController

    createAdvanced, getHelpCtx, getLookup, handleSuccessfulSearch, setCurrentSubcategory, setSubcategory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultConfigController

      public DefaultConfigController()
  • Method Details

    • createPropertySet

      protected abstract PropertySet createPropertySet()
      Create a PropertySet object instance that holds all parameters. Clients that want to maintain properties need to overwrite this method.
      Returns:
      An instance of PropertySet, holding all configuration parameters.
      See Also:
    • createPanel

      protected JPanel createPanel(com.bc.ceres.swing.binding.BindingContext context)
      Create a panel that allows the user to set the parameters in the given BindingContext. Clients that want to create their own panel representation on the given properties need to overwrite this method.
      Parameters:
      context - The BindingContext for the panel.
      Returns:
      A JPanel instance for the given BindingContext, never null.
    • configure

      protected void configure(com.bc.ceres.swing.binding.BindingContext context)
      Configure the passed binding context. This is intended to be used to create enablements in order to add dependencies between property states. The default implementation does nothing.
      Parameters:
      context - The BindingContext to configure.
      See Also:
      • Enablement
      • BindingContext.bindEnabledState(String, boolean, com.bc.ceres.swing.binding.Enablement.Condition)
      • BindingContext.bindEnabledState(String, boolean, String, Object)
    • getBindingContext

      protected com.bc.ceres.swing.binding.BindingContext getBindingContext()
    • createPropertySet

      protected final PropertyContainer createPropertySet(Object bean)
      Creates a PropertyContainer for any bean. The bean parameters need to be annotated with Preference.
      Parameters:
      bean - a bean with fields annoted with Preference.
      Returns:
      an instance of PropertyContainer, fit for passing within overridden createPropertySet().
    • update

      public void update()
      Specified by:
      update in class org.netbeans.spi.options.OptionsPanelController
    • applyChanges

      public void applyChanges()
      Specified by:
      applyChanges in class org.netbeans.spi.options.OptionsPanelController
    • cancel

      public void cancel()
      Specified by:
      cancel in class org.netbeans.spi.options.OptionsPanelController
    • isValid

      public boolean isValid()
      Specified by:
      isValid in class org.netbeans.spi.options.OptionsPanelController
    • setChanged

      protected void setChanged(boolean changed)
    • isChanged

      public boolean isChanged()
      Specified by:
      isChanged in class org.netbeans.spi.options.OptionsPanelController
    • getComponent

      public JComponent getComponent(org.openide.util.Lookup lookup)
      Specified by:
      getComponent in class org.netbeans.spi.options.OptionsPanelController
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
      Specified by:
      addPropertyChangeListener in class org.netbeans.spi.options.OptionsPanelController
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
      Specified by:
      removePropertyChangeListener in class org.netbeans.spi.options.OptionsPanelController
    • isInitialised

      protected boolean isInitialised()