Package org.jmol.consolejs
Class AppletConsole
- java.lang.Object
-
- org.jmol.console.GenericConsole
-
- org.jmol.consolejs.AppletConsole
-
- All Implemented Interfaces:
JmolAppConsoleInterface
,JmolCallbackListener
public class AppletConsole extends GenericConsole
An interface to Jmol.Console. keyboard events are returned to GenericConsole.processKey(kcode, kid, isControlDown); button events are returned to GenericConsole.doAction(source); 12/24/2012- Author:
- Bob Hanson hansonr@stolaf.edu
-
-
Field Summary
Fields Modifier and Type Field Description (package private) JSConsole
jsConsole
-
Fields inherited from class org.jmol.console.GenericConsole
clearInButton, clearOutButton, defaultMessage, editButton, historyButton, input, label1, labels, loadButton, menuMap, nTab, output, runButton, stateButton, vwr
-
-
Constructor Summary
Constructors Constructor Description AppletConsole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
JmolScriptEditorInterface
getScriptEditor()
protected boolean
isMenuItem(java.lang.Object source)
protected void
layoutWindow(java.lang.String enabledButtons)
java.lang.Object
newJMenu(java.lang.String key)
java.lang.Object
newJMenuItem(java.lang.String key)
protected java.lang.String
nextFileName(java.lang.String stub, int nTab)
protected JmolAbstractButton
setButton(java.lang.String text)
protected void
setTitle()
void
setVisible(boolean visible)
void
start(Viewer vwr)
-
Methods inherited from class org.jmol.console.GenericConsole
addButton, clearContent, completeCommand, destroyConsole, displayConsole, doAction, execute, getLabel, getLabel1, getLabelWithoutMnemonic, getText, map, notifyCallback, notifyEnabled, processKey, recallCommand, sendConsoleEcho, sendConsoleMessage, setAbstractButtonLabels, setCallbackFunction, setLabels, setupLabels, setupLabels0, setViewer, updateLabels, zap
-
-
-
-
Field Detail
-
jsConsole
JSConsole jsConsole
-
-
Method Detail
-
start
public void start(Viewer vwr)
-
layoutWindow
protected void layoutWindow(java.lang.String enabledButtons)
- Specified by:
layoutWindow
in classGenericConsole
-
setTitle
protected void setTitle()
- Specified by:
setTitle
in classGenericConsole
-
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible
in interfaceJmolAppConsoleInterface
- Specified by:
setVisible
in classGenericConsole
-
setButton
protected JmolAbstractButton setButton(java.lang.String text)
- Specified by:
setButton
in classGenericConsole
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceJmolAppConsoleInterface
- Specified by:
dispose
in classGenericConsole
-
isMenuItem
protected boolean isMenuItem(java.lang.Object source)
- Specified by:
isMenuItem
in classGenericConsole
-
getScriptEditor
public JmolScriptEditorInterface getScriptEditor()
- Specified by:
getScriptEditor
in interfaceJmolAppConsoleInterface
- Specified by:
getScriptEditor
in classGenericConsole
-
nextFileName
protected java.lang.String nextFileName(java.lang.String stub, int nTab)
- Specified by:
nextFileName
in classGenericConsole
-
newJMenu
public java.lang.Object newJMenu(java.lang.String key)
-
newJMenuItem
public java.lang.Object newJMenuItem(java.lang.String key)
-
-