Class Widgets.Widget
java.lang.Object
org.openscience.jmol.app.webexport.Widgets.Widget
- Direct Known Subclasses:
Widgets.AnimationWidget
,Widgets.BackgroundColorWidget
,Widgets.ConsoleWidget
,Widgets.DownLoadWidget
,Widgets.SpinOnWidget
,Widgets.StereoViewWidget
- Enclosing class:
- Widgets
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract String
getJavaScript
(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) abstract String
A COPY OF THIS .JS FILE MUST BE STORED IN THE html PART OF WEBEXPORT(package private) abstract String[]
The list of files returned by this function should contain the full path to each file.
-
Field Details
-
name
String name
-
-
Constructor Details
-
Widget
Widget()
-
-
Method Details
-
getJavaScript
Each 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"))- Parameters:
appletID
-instance
-- Returns:
- the JavaScript and html to implement the widget
-
getJavaScriptFileName
A COPY OF THIS .JS FILE MUST BE STORED IN THE html PART OF WEBEXPORT- Returns:
- "none" (no file needed) or javascript file necessary to implement the widget
-
getSupportFileNames
The 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.- Returns:
- string of filenames.
-