public abstract class GenericConsole extends Object implements JmolAppConsoleInterface, JmolCallbackListener
Modifier and Type | Field and Description |
---|---|
protected JmolAbstractButton |
clearInButton |
protected JmolAbstractButton |
clearOutButton |
protected String |
defaultMessage |
protected JmolAbstractButton |
editButton |
protected JmolAbstractButton |
historyButton |
private String |
incompleteCmd |
protected GenericTextArea |
input |
protected JmolAbstractButton |
label1 |
protected static Map<String,String> |
labels |
protected JmolAbstractButton |
loadButton |
protected Map<String,Object> |
menuMap |
int |
nTab |
protected GenericTextArea |
output |
protected JmolAbstractButton |
runButton |
protected JmolAbstractButton |
stateButton |
Viewer |
vwr |
Constructor and Description |
---|
GenericConsole() |
Modifier and Type | Method and Description |
---|---|
protected JmolAbstractButton |
addButton(JmolAbstractButton b,
String label) |
protected void |
clearContent(String text) |
String |
completeCommand(String thisCmd) |
protected void |
destroyConsole() |
protected void |
displayConsole() |
abstract void |
dispose() |
protected void |
doAction(Object source) |
protected void |
execute(String strCommand) |
static String |
getLabel(String key) |
protected JmolAbstractButton |
getLabel1() |
static String |
getLabelWithoutMnemonic(String label) |
(package private) static char |
getMnemonic(String label) |
abstract JmolScriptEditorInterface |
getScriptEditor() |
String |
getText() |
protected abstract boolean |
isMenuItem(Object source) |
protected abstract void |
layoutWindow(String enabledButtons) |
static void |
map(Object button,
String key,
String label,
Map<String,Object> menuMap) |
protected abstract String |
nextFileName(String stub,
int nTab) |
void |
notifyCallback(CBK type,
Object[] data) |
boolean |
notifyEnabled(CBK type) |
private void |
outputMsg(String message) |
protected int |
processKey(int kcode,
int kid,
boolean isControlDown) |
protected void |
recallCommand(boolean up) |
void |
sendConsoleEcho(String strEcho) |
void |
sendConsoleMessage(String strInfo) |
static void |
setAbstractButtonLabels(Map<String,Object> menuMap,
Map<String,String> labels) |
protected abstract JmolAbstractButton |
setButton(String text) |
void |
setCallbackFunction(String callbackType,
String callbackFunction) |
protected void |
setLabels() |
protected abstract void |
setTitle() |
protected void |
setupLabels(Map<String,String> labels) |
protected void |
setupLabels0(Map<String,String> labels) |
protected void |
setViewer(Viewer vwr) |
abstract void |
setVisible(boolean visible) |
private static String[] |
splitCommandLine(String cmd)
separate a command line into three sections:
prefix....;cmd ........
|
protected void |
updateLabels() |
void |
zap() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newJMenu, newJMenuItem, start
protected GenericTextArea input
protected GenericTextArea output
public Viewer vwr
protected JmolAbstractButton editButton
protected JmolAbstractButton runButton
protected JmolAbstractButton historyButton
protected JmolAbstractButton stateButton
protected JmolAbstractButton clearOutButton
protected JmolAbstractButton clearInButton
protected JmolAbstractButton loadButton
protected String defaultMessage
protected JmolAbstractButton label1
public int nTab
private String incompleteCmd
protected void setViewer(Viewer vwr)
protected abstract boolean isMenuItem(Object source)
protected abstract void layoutWindow(String enabledButtons)
protected abstract void setTitle()
public abstract void setVisible(boolean visible)
setVisible
in interface JmolAppConsoleInterface
public abstract JmolScriptEditorInterface getScriptEditor()
getScriptEditor
in interface JmolAppConsoleInterface
public abstract void dispose()
dispose
in interface JmolAppConsoleInterface
protected abstract JmolAbstractButton setButton(String text)
protected JmolAbstractButton addButton(JmolAbstractButton b, String label)
protected JmolAbstractButton getLabel1()
protected void setLabels()
protected void displayConsole()
protected void updateLabels()
protected void doAction(Object source)
protected void execute(String strCommand)
protected void destroyConsole()
public static void setAbstractButtonLabels(Map<String,Object> menuMap, Map<String,String> labels)
static char getMnemonic(String label)
public boolean notifyEnabled(CBK type)
notifyEnabled
in interface JmolCallbackListener
public void notifyCallback(CBK type, Object[] data)
notifyCallback
in interface JmolCallbackListener
public String getText()
getText
in interface JmolAppConsoleInterface
public void sendConsoleEcho(String strEcho)
sendConsoleEcho
in interface JmolAppConsoleInterface
private void outputMsg(String message)
protected void clearContent(String text)
public void sendConsoleMessage(String strInfo)
sendConsoleMessage
in interface JmolAppConsoleInterface
public void setCallbackFunction(String callbackType, String callbackFunction)
setCallbackFunction
in interface JmolCallbackListener
public void zap()
zap
in interface JmolAppConsoleInterface
protected void recallCommand(boolean up)
protected int processKey(int kcode, int kid, boolean isControlDown)
kcode
- kid
- isControlDown
-