MarvinView Applet only parameters
Parameter |
Meaning |
Default |
mol |
The URL of the molecule file or the file itself (inline) in any supported structure format such as MDL mol, compressed mol, SMILES, SMARTS, etc format. |
|
preload |
Deprecated |
|
cacheMols |
Store loaded molecules in an internal cache (true or false). |
|
loadMols |
Comma-separated list of molfiles to preload. Useful for caching molecules in JavaScript "slideshows". |
|
molChanged0molChanged1molChanged2... |
Evaluates a JavaScript code when the molecule is loaded or changed in the specified cell. The number in the parameter name determines the cell index. If no molecule table, use molChanged0 to refer to the molecule. The parameter value should be a JavaScript code. E.g.: <param name="molChanged0" value="alert('First molecule is modified')"> |
|
listenpropertychange |
Enable/disable property change event listener of the applet. If the listener is enabled the applet will call the propertyChange(prop) JavaScript method. The code snippet below demonstrates the handling of property change events in JavaScript. Note: If the MAYSCRIPT option is not specified, JavaScript can not be evaluated from the applet. function propertyChange(prop) { Live applet example: MarvinView example - Listening for events in applets |
false |
appletid |
Identify applet in property change event notifications to JavaScript. Use this parameter with listenpropertychange when more than one applet are located on the same web page. It helps to identify which applet sent the notification. |
|
listenmouseevent |
Enable/disable mouse event listener of the applet. If the listener is enabled the applet will call the mouseEvent(evt) JavaScript method. function mouseEvent(evt) { Live applet example: MarvinView example - Listening for events in applets |
false |
skin |
Change the component's Look & Feel (only in SWING applet). If you do not specify this parameter, Marvin will use the default LookAndFeel style. |
javax.swing.plaf .metal .MetalLookAndFeel |
splashScreenImage |
Change the component's Splash Screen displayed at startup. If you do not specify this parameter, Marvin will use its default splash screen. |
null |
license |
Sets the contents of a pre-read license file to the license manager to read and validate licenses from. |
|
licenseFile |
Sets the license file location to the license manager to read and validate licenses from. |
|
onError |
A string containing a javascript code, that has to be run by the applet, if it has a failure at initialization. |
|
alertError |
If this parameter is set to true, the applet will show a javascript alert window with an error message, if there was a problem in the initialization process of the applet. |
|
legacy_lifecycle |
The "legacy_lifecycle" is a general Java applet parameter. If its value is true, it helps avoid destroying the applet when you leaves the applet page. If you use "marvin.js", it sets its value to true automatically unless you specify its value explicitly. By the way, the defalut value of this parameter in Java is false. See the discussion about it on the forum. |
|
viewHelp |
Viewer help contents. Accepts relative URL to the applet codebase or any absolute URL. |
chemaxon/marvin/help/view-index.html |
viewQuickHelp |
Viewer quick help. Accepts relative URL to the applet codebase or any absolute URL. |
chemaxon/marvin/help/view.html |