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 void
applyChanges()
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
createPropertySet()
Create aPropertySet
object instance that holds all parameters.org.openide.util.HelpCtx
getHelpCtx()
Gets the Help Context for this Options Controllerboolean
isChanged()
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
-
-
-
-
Method Detail
-
createPropertySet
protected PropertySet 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:
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:
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
-
-