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 String
protected org.openscience.jmol.app.jmolpanel.console.AppConsole.ConsoleTextPane
protected org.openscience.jmol.app.jmolpanel.console.AppConsole.ConsoleDocument
protected JScrollBar
protected JScrollBar
Fields inherited from class org.jmol.console.JmolConsole
externalContainer, scriptEditor, vwrFrame
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
ConstructorsConstructorDescriptionAppConsole
(JmolViewer vwr, Container externalContainer, String enabledButtons) general entry point -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
protected void
clearContent
(String text) void
protected void
getText()
protected void
layoutWindow
(String enabledButtons) void
loadContent
(String script) Deprecated.void
protected void
recallCommand
(boolean up, boolean pageup) Recall command history.void
void
sendConsoleEcho
(String strEcho) void
sendConsoleMessage
(String strStatus) protected JmolAbstractButton
void
setStatusListener
(JmolStatusListener myStatusListener) protected void
setupLabels0
(Map<String, String> labels) void
void
Methods inherited from class org.jmol.console.JmolConsole
addWindowListener, dispose, getPane, getScriptEditor, isMenuItem, newJMenu, newJMenuItem, nextFileName, setTitle, setVisible, updateLabels, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
Methods inherited from class org.jmol.console.GenericConsole
addButton, completeCommand, destroyConsole, displayConsole, doAction, 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:JmolDropEditor
Deprecated. 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:
loadContent
in interfaceJmolDropEditor
-
loadFile
- Specified by:
loadFile
in interfaceJmolDropEditor
-
start
- Specified by:
start
in interfaceJmolAppConsoleInterface
-
updateFontSize
public void updateFontSize()- Overrides:
updateFontSize
in classJmolConsole
-
sendConsoleEcho
- Specified by:
sendConsoleEcho
in interfaceJmolAppConsoleInterface
- Overrides:
sendConsoleEcho
in classGenericConsole
-
sendConsoleMessage
- Specified by:
sendConsoleMessage
in interfaceJmolAppConsoleInterface
- Overrides:
sendConsoleMessage
in classGenericConsole
-
setButton
- Overrides:
setButton
in classJmolConsole
-
setupLabels0
- Overrides:
setupLabels0
in classGenericConsole
-
layoutWindow
- Specified by:
layoutWindow
in classGenericConsole
-
enterPressed
public void enterPressed() -
execute
- Overrides:
execute
in classGenericConsole
-
checkUndoEnabled
public int checkUndoEnabled() -
clearContent
- Overrides:
clearContent
in classGenericConsole
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
- Overrides:
actionPerformed
in classJmolConsole
-
recallCommand
protected void recallCommand(boolean up, boolean pageup) Recall command history.- Overrides:
recallCommand
in classGenericConsole
- Parameters:
up
- - history up or downpageup
- TODO
-
getText
- Specified by:
getText
in interfaceJmolAppConsoleInterface
- Overrides:
getText
in classGenericConsole
-
setStatusListener
-
regainFocus
public void regainFocus()- Specified by:
regainFocus
in interfaceJmolAppConsoleInterface
-