Package org.jmol.consolejs
Class AppletConsole
java.lang.Object
org.jmol.console.GenericConsole
org.jmol.consolejs.AppletConsole
- All Implemented Interfaces:
JmolAppConsoleInterface
,JmolCallbackListener
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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
protected boolean
isMenuItem
(Object source) protected void
layoutWindow
(String enabledButtons) newJMenuItem
(String key) protected String
nextFileName
(String stub, int nTab) protected JmolAbstractButton
protected void
setTitle()
void
setVisible
(boolean visible) void
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, trimGUI, updateLabels, zap
-
Field Details
-
jsConsole
JSConsole jsConsole
-
-
Constructor Details
-
AppletConsole
public AppletConsole()
-
-
Method Details
-
start
-
layoutWindow
- 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
- Specified by:
setButton
in classGenericConsole
-
dispose
public void dispose()- Specified by:
dispose
in interfaceJmolAppConsoleInterface
- Specified by:
dispose
in classGenericConsole
-
isMenuItem
- Specified by:
isMenuItem
in classGenericConsole
-
getScriptEditor
- Specified by:
getScriptEditor
in interfaceJmolAppConsoleInterface
- Specified by:
getScriptEditor
in classGenericConsole
-
nextFileName
- Specified by:
nextFileName
in classGenericConsole
-
newJMenu
-
newJMenuItem
-