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(BindingContext context)
Configure the passed binding context.
|
protected JPanel |
createPanel(BindingContext context)
Create a panel that allows the user to set the parameters in the given
BindingContext. |
protected abstract PropertySet |
createPropertySet()
Create a
PropertySet object instance that holds all parameters. |
protected PropertyContainer |
createPropertySet(Object bean)
Creates a PropertyContainer for any bean.
|
protected 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 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(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(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 BindingContext getBindingContext()
protected final 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–2015 European Space Agency (ESA). All rights reserved.