Package org.esa.snap.ui.vfs.preferences
Class VFSOptionsController
- java.lang.Object
-
- org.netbeans.spi.options.OptionsPanelController
-
- org.esa.snap.rcp.preferences.DefaultConfigController
-
- org.esa.snap.ui.vfs.preferences.VFSOptionsController
-
public class VFSOptionsController extends DefaultConfigController
A controller for VFS Remote File Repositories. Used for provide a UI to the strategy with storing VFS connection data.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description VFSOptionsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyChanges()Saves the changes.voidcancel()Cancels the changes.protected JPanelcreatePanel(com.bc.ceres.swing.binding.BindingContext context)Create a panel that allows the user to set the parameters in the givenBindingContext.protected PropertySetcreatePropertySet()Create aPropertySetobject instance that holds all parameters.org.openide.util.HelpCtxgetHelpCtx()Gets the Help Context for this Options ControllerbooleanisChanged()Check whether options changes.voidupdate()Updates the UI.-
Methods inherited from class org.esa.snap.rcp.preferences.DefaultConfigController
addPropertyChangeListener, configure, createPropertySet, getBindingContext, getComponent, isInitialised, isValid, removePropertyChangeListener, setChanged
-
-
-
-
Method Detail
-
createPropertySet
protected PropertySet createPropertySet()
Create aPropertySetobject instance that holds all parameters. Clients that want to maintain properties need to overwrite this method.- Specified by:
createPropertySetin classDefaultConfigController- Returns:
- An instance of
PropertySet, holding all configuration parameters. - See Also:
DefaultConfigController.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 givenBindingContext. Clients that want to create their own panel representation on the given properties need to overwrite this method.- Overrides:
createPanelin classDefaultConfigController- Parameters:
context- TheBindingContextfor the panel.- Returns:
- A JPanel instance for the given
BindingContext, nevernull.
-
update
public void update()
Updates the UI.- Overrides:
updatein classDefaultConfigController
-
applyChanges
public void applyChanges()
Saves the changes.- Overrides:
applyChangesin classDefaultConfigController
-
cancel
public void cancel()
Cancels the changes.- Overrides:
cancelin classDefaultConfigController
-
isChanged
public boolean isChanged()
Check whether options changes.- Overrides:
isChangedin classDefaultConfigController- Returns:
trueif options is changed
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()
Gets the Help Context for this Options Controller- Specified by:
getHelpCtxin classorg.netbeans.spi.options.OptionsPanelController- Returns:
- The Help Context
-
-