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.OptionsPanelController
public void applyChanges()
applyChanges
in class org.netbeans.spi.options.OptionsPanelController
public void cancel()
cancel
in class org.netbeans.spi.options.OptionsPanelController
public boolean isValid()
isValid
in class org.netbeans.spi.options.OptionsPanelController
protected void setChanged(boolean changed)
public boolean isChanged()
isChanged
in class org.netbeans.spi.options.OptionsPanelController
public JComponent getComponent(org.openide.util.Lookup lookup)
getComponent
in class org.netbeans.spi.options.OptionsPanelController
public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
addPropertyChangeListener
in class org.netbeans.spi.options.OptionsPanelController
public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
removePropertyChangeListener
in class org.netbeans.spi.options.OptionsPanelController
protected boolean isInitialised()
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.