Class DefaultConfigController

    • Constructor Detail

      • DefaultConfigController

        public DefaultConfigController()
    • Method Detail

      • 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:
        createPropertySet(Object)
      • 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()
      • 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()