Class Widgets.ConsoleWidget
java.lang.Object
org.openscience.jmol.app.webexport.Widgets.Widget
org.openscience.jmol.app.webexport.Widgets.ConsoleWidget
- Enclosing class:
- Widgets
-
Field Summary
Fields inherited from class org.openscience.jmol.app.webexport.Widgets.Widget
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringgetJavaScript(int appletID, JmolInstance instance) Each Widget must implement this function and make sure to use the appletID number to specify the target applet i.e.(package private) StringA COPY OF THIS .JS FILE MUST BE STORED IN THE html PART OF WEBEXPORT(package private) String[]The list of files returned by this function should contain the full path to each file.
-
Constructor Details
-
ConsoleWidget
ConsoleWidget()
-
-
Method Details
-
getJavaScriptFileName
String getJavaScriptFileName()Description copied from class:Widgets.WidgetA COPY OF THIS .JS FILE MUST BE STORED IN THE html PART OF WEBEXPORT- Specified by:
getJavaScriptFileNamein classWidgets.Widget- Returns:
- "none" (no file needed) or javascript file necessary to implement the widget
-
getSupportFileNames
String[] getSupportFileNames()Description copied from class:Widgets.WidgetThe list of files returned by this function should contain the full path to each file. The only exception is that files that only contain a filename will be assumed to be in the html section of WebExport.- Specified by:
getSupportFileNamesin classWidgets.Widget- Returns:
- string of filenames.
-
getJavaScript
Description copied from class:Widgets.WidgetEach Widget must implement this function and make sure to use the appletID number to specify the target applet i.e. "JmolApplet(appletID)". NOTE anything that must be translated in the web page should be wrapped in both a call to GT.escapeHTML and GT._ as in the following: GT.escapeHTML(GT._("text to translate"))- Specified by:
getJavaScriptin classWidgets.Widget- Returns:
- the JavaScript and html to implement the widget
-