Class GenericConsole
java.lang.Object
org.jmol.console.GenericConsole
- All Implemented Interfaces:
JmolAppConsoleInterface, JmolCallbackListener
- Direct Known Subclasses:
AppletConsole, JmolConsole
public abstract class GenericConsole
extends Object
implements JmolAppConsoleInterface, JmolCallbackListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JmolAbstractButtonprotected JmolAbstractButtonprotected Stringprotected JmolAbstractButtonprotected JmolAbstractButtonprotected GenericConsoleTextAreaprotected JmolAbstractButtonprotected JmolAbstractButtonintprotected GenericConsoleTextAreaprotected JmolAbstractButtonprotected JmolAbstractButton -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JmolAbstractButtonaddButton(JmolAbstractButton b, String label) protected voidclearContent(String text) completeCommand(String thisCmd) protected voidprotected voidabstract voiddispose()protected voidprotected voidprotected Stringstatic Stringprotected JmolAbstractButtonstatic StringgetLabelWithoutMnemonic(String label) abstract JmolScriptEditorInterfacegetText()protected abstract booleanisMenuItem(Object source) protected abstract voidlayoutWindow(String enabledButtons) static voidprotected abstract StringnextFileName(String stub, int nTab) voidnotifyCallback(CBK type, Object[] data) booleannotifyEnabled(CBK type) ////////// JmolCallbackListener interfaceprotected intprocessKey(int kcode, int kid, boolean isControlDown) protected voidrecallCommand(boolean up, boolean findLastLikeThis) voidsendConsoleEcho(String strEcho) voidsendConsoleMessage(String strInfo) static voidprotected abstract JmolAbstractButtonvoidsetCallbackFunction(String callbackType, String callbackFunction) protected voidprotected abstract voidsetTitle()protected voidsetupLabels(Map<String, String> labels) protected voidsetupLabels0(Map<String, String> labels) protected voidabstract voidsetVisible(boolean visible) protected Stringprotected voidvoidzap()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JmolAppConsoleInterface
newJMenu, newJMenuItem, regainFocus, start
-
Field Details
-
input
-
output
-
vwr
-
labels
-
editButton
-
runButton
-
historyButton
-
stateButton
-
clearOutButton
-
clearInButton
-
loadButton
-
defaultMessage
-
label1
-
nTab
public int nTab -
pageUpBuffer
-
-
Constructor Details
-
GenericConsole
public GenericConsole()
-
-
Method Details
-
setViewer
-
isMenuItem
-
layoutWindow
-
setTitle
protected abstract void setTitle() -
setVisible
public abstract void setVisible(boolean visible) - Specified by:
setVisiblein interfaceJmolAppConsoleInterface
-
getScriptEditor
- Specified by:
getScriptEditorin interfaceJmolAppConsoleInterface
-
dispose
public abstract void dispose()- Specified by:
disposein interfaceJmolAppConsoleInterface
-
setButton
-
addButton
-
getLabel1
-
setupLabels
-
setupLabels0
-
setLabels
protected void setLabels() -
getLabel
-
displayConsole
protected void displayConsole() -
updateLabels
protected void updateLabels() -
nextFileName
-
completeCommand
-
doAction
-
execute
-
destroyConsole
protected void destroyConsole() -
setAbstractButtonLabels
-
getLabelWithoutMnemonic
-
map
-
notifyEnabled
////////// JmolCallbackListener interface- Specified by:
notifyEnabledin interfaceJmolCallbackListener
-
notifyCallback
- Specified by:
notifyCallbackin interfaceJmolCallbackListener
-
getText
- Specified by:
getTextin interfaceJmolAppConsoleInterface
-
sendConsoleEcho
- Specified by:
sendConsoleEchoin interfaceJmolAppConsoleInterface
-
clearContent
-
sendConsoleMessage
- Specified by:
sendConsoleMessagein interfaceJmolAppConsoleInterface
-
setCallbackFunction
- Specified by:
setCallbackFunctionin interfaceJmolCallbackListener
-
zap
public void zap()- Specified by:
zapin interfaceJmolAppConsoleInterface
-
recallCommand
protected void recallCommand(boolean up, boolean findLastLikeThis) - Parameters:
up-findLastLikeThis-
-
getCommandString
-
trimGUI
-
processKey
protected int processKey(int kcode, int kid, boolean isControlDown) - Parameters:
kcode-kid-isControlDown-isShiftDown-- Returns:
- 1 = consume; 2 = super.process; 3 = both
-