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 TypeMethodDescriptionvoid
Saves the changes.void
cancel()
Cancels the changes.protected JPanel
createPanel
(com.bc.ceres.swing.binding.BindingContext context) Create a panel that allows the user to set the parameters in the givenBindingContext
.protected PropertySet
Create aPropertySet
object instance that holds all parameters.org.openide.util.HelpCtx
Gets the Help Context for this Options Controllerboolean
Check whether options changes.void
update()
Updates the UI.Methods inherited from class org.esa.snap.rcp.preferences.DefaultConfigController
addPropertyChangeListener, configure, createPropertySet, getBindingContext, getComponent, isInitialised, isValid, removePropertyChangeListener, setChanged
Methods inherited from class org.netbeans.spi.options.OptionsPanelController
createAdvanced, getLookup, handleSuccessfulSearch, setCurrentSubcategory, setSubcategory
-
Constructor Details
-
VFSOptionsController
public VFSOptionsController()
-
-
Method Details
-
createPropertySet
Create aPropertySet
object instance that holds all parameters. Clients that want to maintain properties need to overwrite this method.- Specified by:
createPropertySet
in 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:
createPanel
in classDefaultConfigController
- Parameters:
context
- TheBindingContext
for the panel.- Returns:
- A JPanel instance for the given
BindingContext
, nevernull
.
-
update
public void update()Updates the UI.- Overrides:
update
in classDefaultConfigController
-
applyChanges
public void applyChanges()Saves the changes.- Overrides:
applyChanges
in classDefaultConfigController
-
cancel
public void cancel()Cancels the changes.- Overrides:
cancel
in classDefaultConfigController
-
isChanged
public boolean isChanged()Check whether options changes.- Overrides:
isChanged
in classDefaultConfigController
- Returns:
true
if options is changed
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()Gets the Help Context for this Options Controller- Specified by:
getHelpCtx
in classorg.netbeans.spi.options.OptionsPanelController
- Returns:
- The Help Context
-