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
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 -
Field Summary
Fields inherited from class org.netbeans.spi.options.OptionsPanelController
PROP_CHANGED, PROP_HELP_CTX, PROP_VALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSaves 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 PropertySetCreate aPropertySetobject instance that holds all parameters.org.openide.util.HelpCtxGets the Help Context for this Options ControllerbooleanCheck 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, setChangedMethods inherited from class org.netbeans.spi.options.OptionsPanelController
createAdvanced, getLookup, handleSuccessfulSearch, setCurrentSubcategory, setSubcategory
-
Constructor Details
-
VFSOptionsController
public VFSOptionsController()
-
-
Method Details
-
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:
-
createPanel
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
-