public abstract class DefaultConfigController
extends org.netbeans.spi.options.OptionsPanelController
OptionsPanelController.TopLevelRegistration or OptionsPanelController.SubRegistration.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| Constructor and Description |
|---|
DefaultConfigController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener propertyChangeListener) |
void |
applyChanges() |
void |
cancel() |
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 com.bc.ceres.binding.PropertySet |
createPropertySet()
Create a
PropertySet object instance that holds all parameters. |
protected com.bc.ceres.binding.PropertyContainer |
createPropertySet(Object bean)
Creates a PropertyContainer for any bean.
|
protected com.bc.ceres.swing.binding.BindingContext |
getBindingContext() |
JComponent |
getComponent(org.openide.util.Lookup lookup) |
boolean |
isChanged() |
protected boolean |
isInitialised() |
boolean |
isValid() |
void |
removePropertyChangeListener(PropertyChangeListener propertyChangeListener) |
protected void |
setChanged(boolean changed) |
void |
update() |
protected abstract com.bc.ceres.binding.PropertySet createPropertySet()
PropertySet object instance that holds all parameters.
Clients that want to maintain properties need to overwrite this method.PropertySet, holding all configuration parameters.createPropertySet(Object)protected JPanel createPanel(com.bc.ceres.swing.binding.BindingContext context)
BindingContext. Clients that want
to create their own panel representation on the given properties need to overwrite this method.context - The BindingContext for the panel.BindingContext, never null.protected void configure(com.bc.ceres.swing.binding.BindingContext context)
enablements in order to
add dependencies between property states. The default implementation does nothing.context - The BindingContext to configure.Enablement,
BindingContext.bindEnabledState(String, boolean, com.bc.ceres.swing.binding.Enablement.Condition),
BindingContext.bindEnabledState(String, boolean, String, Object)protected com.bc.ceres.swing.binding.BindingContext getBindingContext()
protected final com.bc.ceres.binding.PropertyContainer createPropertySet(Object bean)
Preference.bean - a bean with fields annoted with Preference.PropertyContainer, fit for passing within overridden
createPropertySet().public void update()
update in class org.netbeans.spi.options.OptionsPanelControllerpublic void applyChanges()
applyChanges in class org.netbeans.spi.options.OptionsPanelControllerpublic void cancel()
cancel in class org.netbeans.spi.options.OptionsPanelControllerpublic boolean isValid()
isValid in class org.netbeans.spi.options.OptionsPanelControllerprotected void setChanged(boolean changed)
public boolean isChanged()
isChanged in class org.netbeans.spi.options.OptionsPanelControllerpublic JComponent getComponent(org.openide.util.Lookup lookup)
getComponent in class org.netbeans.spi.options.OptionsPanelControllerpublic void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
addPropertyChangeListener in class org.netbeans.spi.options.OptionsPanelControllerpublic void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
removePropertyChangeListener in class org.netbeans.spi.options.OptionsPanelControllerprotected boolean isInitialised()
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.