Class AppConsole
java.lang.Object
org.jmol.console.GenericConsole
org.jmol.console.JmolConsole
org.openscience.jmol.app.jmolpanel.console.AppConsole
- All Implemented Interfaces:
ActionListener,WindowListener,EventListener,JmolAppConsoleInterface,JmolCallbackListener,JmolDropEditor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.openscience.jmol.app.jmolpanel.console.AppConsole.ConsoleTextPaneprotected org.openscience.jmol.app.jmolpanel.console.AppConsole.ConsoleDocumentprotected JScrollBarprotected JScrollBarFields inherited from class org.jmol.console.JmolConsole
externalContainer, scriptEditor, vwrFrameFields inherited from class org.jmol.console.GenericConsole
clearInButton, clearOutButton, defaultMessage, editButton, historyButton, input, label1, labels, loadButton, menuMap, nTab, output, pageUpBuffer, runButton, stateButton, vwr -
Constructor Summary
ConstructorsConstructorDescriptionAppConsole(JmolViewer vwr, Container externalContainer, String enabledButtons) general entry point -
Method Summary
Modifier and TypeMethodDescriptionvoidintprotected voidclearContent(String text) voidprotected voidgetText()protected voidlayoutWindow(String enabledButtons) voidloadContent(String script) Deprecated.voidprotected voidrecallCommand(boolean up, boolean pageup) Recall command history.voidvoidsendConsoleEcho(String strEcho) voidsendConsoleMessage(String strStatus) protected JmolAbstractButtonvoidsetStatusListener(JmolStatusListener myStatusListener) protected voidsetupLabels0(Map<String, String> labels) voidvoidMethods inherited from class org.jmol.console.JmolConsole
addWindowListener, dispose, getPane, getScriptEditor, isMenuItem, newJMenu, newJMenuItem, nextFileName, setTitle, setVisible, updateLabels, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpenedMethods inherited from class org.jmol.console.GenericConsole
addButton, completeCommand, destroyConsole, displayConsole, doAction, getCommandString, getLabel, getLabel1, getLabelWithoutMnemonic, map, notifyCallback, notifyEnabled, processKey, setAbstractButtonLabels, setCallbackFunction, setLabels, setupLabels, setViewer, trimGUI, zap
-
Field Details
-
ALL_BUTTONS
- See Also:
-
jcd
-
console
protected org.openscience.jmol.app.jmolpanel.console.AppConsole.ConsoleTextPane console -
consoleDoc
protected org.openscience.jmol.app.jmolpanel.console.AppConsole.ConsoleDocument consoleDoc -
vBar
-
hBar
-
-
Constructor Details
-
AppConsole
public AppConsole() -
AppConsole
general entry point- Parameters:
vwr-externalContainer- a JFrame or JPanel or JDialogenabledButtons-
-
-
Method Details
-
loadContent
Description copied from interface:JmolDropEditorDeprecated. Designed to be used for dropping a script into the AppConsole or ScriptEditor in order to open it in the ScriptEditor, but that was never implemented.- Specified by:
loadContentin interfaceJmolDropEditor- Parameters:
script-
-
loadFile
- Specified by:
loadFilein interfaceJmolDropEditor
-
start
- Specified by:
startin interfaceJmolAppConsoleInterface
-
updateFontSize
public void updateFontSize()- Overrides:
updateFontSizein classJmolConsole
-
sendConsoleEcho
- Specified by:
sendConsoleEchoin interfaceJmolAppConsoleInterface- Overrides:
sendConsoleEchoin classGenericConsole
-
sendConsoleMessage
- Specified by:
sendConsoleMessagein interfaceJmolAppConsoleInterface- Overrides:
sendConsoleMessagein classGenericConsole
-
setButton
- Overrides:
setButtonin classJmolConsole
-
setupLabels0
- Overrides:
setupLabels0in classGenericConsole
-
layoutWindow
- Specified by:
layoutWindowin classGenericConsole
-
enterPressed
public void enterPressed() -
execute
- Overrides:
executein classGenericConsole
-
checkUndoEnabled
public int checkUndoEnabled() -
clearContent
- Overrides:
clearContentin classGenericConsole
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJmolConsole
-
recallCommand
protected void recallCommand(boolean up, boolean pageup) Recall command history.- Overrides:
recallCommandin classGenericConsole- Parameters:
up- - history up or downpageup- TODO
-
getText
- Specified by:
getTextin interfaceJmolAppConsoleInterface- Overrides:
getTextin classGenericConsole
-
setStatusListener
-
regainFocus
public void regainFocus()- Specified by:
regainFocusin interfaceJmolAppConsoleInterface
-