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) JSConsolejsConsole-
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 voiddispose()JmolScriptEditorInterfacegetScriptEditor()protected booleanisMenuItem(java.lang.Object source)protected voidlayoutWindow(java.lang.String enabledButtons)java.lang.ObjectnewJMenu(java.lang.String key)java.lang.ObjectnewJMenuItem(java.lang.String key)protected java.lang.StringnextFileName(java.lang.String stub, int nTab)protected JmolAbstractButtonsetButton(java.lang.String text)protected voidsetTitle()voidsetVisible(boolean visible)voidstart(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:
layoutWindowin classGenericConsole
-
setTitle
protected void setTitle()
- Specified by:
setTitlein classGenericConsole
-
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisiblein interfaceJmolAppConsoleInterface- Specified by:
setVisiblein classGenericConsole
-
setButton
protected JmolAbstractButton setButton(java.lang.String text)
- Specified by:
setButtonin classGenericConsole
-
dispose
public void dispose()
- Specified by:
disposein interfaceJmolAppConsoleInterface- Specified by:
disposein classGenericConsole
-
isMenuItem
protected boolean isMenuItem(java.lang.Object source)
- Specified by:
isMenuItemin classGenericConsole
-
getScriptEditor
public JmolScriptEditorInterface getScriptEditor()
- Specified by:
getScriptEditorin interfaceJmolAppConsoleInterface- Specified by:
getScriptEditorin classGenericConsole
-
nextFileName
protected java.lang.String nextFileName(java.lang.String stub, int nTab)- Specified by:
nextFileNamein classGenericConsole
-
newJMenu
public java.lang.Object newJMenu(java.lang.String key)
-
newJMenuItem
public java.lang.Object newJMenuItem(java.lang.String key)
-
-