Class UiBehaviorController
- java.lang.Object
-
- org.netbeans.spi.options.OptionsPanelController
-
- org.esa.snap.rcp.preferences.DefaultConfigController
-
- org.esa.snap.rcp.preferences.general.UiBehaviorController
-
public final class UiBehaviorController extends DefaultConfigController
Preferences tab for handling the UI behavior preferences. Sub-level panel to the "Miscellaneous"-panel.
-
-
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 Modifier and Type Field Description static StringPREFERENCE_KEY_AUTO_SHOW_NAVIGATIONPreferences key for automatically showing navigationstatic StringPREFERENCE_KEY_AUTO_SHOW_NEW_BANDSPreferences key for automatically showing new bandsstatic StringPREFERENCE_KEY_LIST_FILES_TO_REOPENPreferences key to set the maximum number of file in the list to reopen.
-
Constructor Summary
Constructors Constructor Description UiBehaviorController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyChanges()voidcancel()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()-
Methods inherited from class org.esa.snap.rcp.preferences.DefaultConfigController
addPropertyChangeListener, configure, createPropertySet, getBindingContext, getComponent, isChanged, isInitialised, isValid, removePropertyChangeListener, setChanged, update
-
-
-
-
Field Detail
-
PREFERENCE_KEY_AUTO_SHOW_NAVIGATION
public static final String PREFERENCE_KEY_AUTO_SHOW_NAVIGATION
Preferences key for automatically showing navigation- See Also:
- Constant Field Values
-
PREFERENCE_KEY_AUTO_SHOW_NEW_BANDS
public static final String PREFERENCE_KEY_AUTO_SHOW_NEW_BANDS
Preferences key for automatically showing new bands- See Also:
- Constant Field Values
-
PREFERENCE_KEY_LIST_FILES_TO_REOPEN
public static final String PREFERENCE_KEY_LIST_FILES_TO_REOPEN
Preferences key to set the maximum number of file in the list to reopen.- See Also:
- Constant Field Values
-
-
Method Detail
-
applyChanges
public void applyChanges()
- Overrides:
applyChangesin classDefaultConfigController
-
cancel
public void cancel()
- Overrides:
cancelin classDefaultConfigController
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()
- Specified by:
getHelpCtxin classorg.netbeans.spi.options.OptionsPanelController
-
createPropertySet
protected PropertySet createPropertySet()
Description copied from class:DefaultConfigControllerCreate 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)
Description copied from class:DefaultConfigControllerCreate 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.
-
-