Package com.chemaxon.calculations.gui
Interface ParameterPanelHandler
-
- All Known Subinterfaces:
ParameterPanelHandler
- All Known Implementing Classes:
ParameterPanel
@PublicAPI public interface ParameterPanelHandler
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Component
getComponent()
Returns the parameter panel component.void
getParameters(Properties params)
Returns the plugin parameters.void
getStoredParameters(Properties params)
Returns the stored parameters.boolean
isOkActionEnabled()
Returnstrue
if "OK" button is enabled.void
reloadParameters()
Reloads previously stored parameters to parameter panel.void
restoreDefaultParameters()
Restores default parameters to parameter panel.void
saveParameters()
Saves parameters from parameter panel.boolean
verifyParameters()
Verifies parameters on the parameter panel.
-
-
-
Method Detail
-
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
void getParameters(Properties params)
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
void getStoredParameters(Properties params)
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
-
-