Package com.chemaxon.calculations.gui
Interface ParameterPanelHandler
- All Known Implementing Classes:
ParameterPanel
Plugin parameter panel handler interface.
Parameter panel components should implement this to enable
user parameter setting and fetching the user settings from
the component in a uniform way - to be accessed by the
central plugin handling mechanism.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the parameter panel component.void
getParameters
(Properties params) Returns the plugin parameters.void
getStoredParameters
(Properties params) Returns the stored parameters.boolean
Returnstrue
if "OK" button is enabled.void
Reloads previously stored parameters to parameter panel.void
Restores default parameters to parameter panel.void
Saves parameters from parameter panel.boolean
Verifies parameters on the parameter panel.
-
Method Details
-
getComponent
Component getComponent()Returns the parameter panel component. This can be the object implementing this interface, in which case simply returnthis
.- Returns:
- the parameter panel component
-
getParameters
Returns the plugin parameters. These can be stored parameters if the panel is not showing, but should be the currently visible parameter settings if the component is showing.- Parameters:
params
- is the properties object to be filled with the plugin parameters
-
getStoredParameters
Returns the stored parameters. All parameter items are included (also disabled).- Parameters:
params
- is the properties object to be filled with the plugin parameters
-
saveParameters
void saveParameters()Saves parameters from parameter panel. Should store the current settings in order to restore them later inreloadParameters()
. (Called when "OK" is pressed: GUI -> INNER STORE) -
reloadParameters
void reloadParameters()Reloads previously stored parameters to parameter panel. (Called when "Cancel" is pressed: INNER STORE -> GUI) -
restoreDefaultParameters
void restoreDefaultParameters()Restores default parameters to parameter panel. (Called when "Restore Defaults" is pressed: DEFAULTS -> GUI) -
verifyParameters
boolean verifyParameters()Verifies parameters on the parameter panel.- Returns:
- true if parameter setting is accepted, false otherwise
-
isOkActionEnabled
boolean isOkActionEnabled()Returnstrue
if "OK" button is enabled.- Returns:
true
if "OK" button is enabled- Since:
- Marvin 5.4
-