org.openscience.jmol.app.jmolpanel
Class AppConsole
java.lang.Object
org.jmol.console.JmolConsole
org.openscience.jmol.app.jmolpanel.AppConsole
- All Implemented Interfaces:
- ActionListener, WindowListener, EventListener, JmolAppConsoleInterface, JmolCallbackListener, EnterListener
public class AppConsole
- extends JmolConsole
- implements JmolAppConsoleInterface, EnterListener
| Fields inherited from class org.jmol.console.JmolConsole |
defaultMessage, editButton, externalContainer, historyButton, label1, labels, menuMap, nTab, runButton, scriptEditor, stateButton, viewer, viewerFrame |
| Methods inherited from class org.jmol.console.JmolConsole |
addWindowListener, dispose, getLabel, getPane, getScriptEditor, getWindow, notifyCallback, notifyEnabled, setCallbackFunction, setEnabled, setTitle, setVisible, updateLabels, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL_BUTTONS
public static final String ALL_BUTTONS
- See Also:
- Constant Field Values
jcd
JDialog jcd
console
protected AppConsole.ConsoleTextPane console
stepButton
protected JButton stepButton
buttons
protected Map<String,AbstractButton> buttons
varButton
private JButton varButton
haltButton
private JButton haltButton
closeButton
private JButton closeButton
clearButton
private JButton clearButton
helpButton
private JButton helpButton
undoButton
private JButton undoButton
redoButton
private JButton redoButton
checkButton
private JButton checkButton
topButton
private JButton topButton
buttonPanel
private JPanel buttonPanel
isError
boolean isError
execThread
AppConsole.ExecuteCommandThread execThread
MAXUNDO
private static int MAXUNDO
undoStack
private String[] undoStack
undoPointer
private int undoPointer
undoSaved
private boolean undoSaved
dontsave
private boolean dontsave
AppConsole
public AppConsole(JmolViewer viewer,
Container externalContainer,
String enabledButtons)
- general entry point
- Parameters:
viewer - externalContainer - a JFrame or JPanel or JDialogenabledButtons -
AppConsole
public AppConsole()
getAppConsole
public JmolAppConsoleInterface getAppConsole(JmolViewer viewer)
- don't delete! used by Viewer after it gets the class by name
- Specified by:
getAppConsole in interface JmolAppConsoleInterface
- Parameters:
viewer -
- Returns:
- AppConsole or AppletConsole
sendConsoleEcho
public void sendConsoleEcho(String strEcho)
- Specified by:
sendConsoleEcho in interface JmolAppConsoleInterface- Specified by:
sendConsoleEcho in class JmolConsole
sendConsoleMessage
public void sendConsoleMessage(String strStatus)
- Specified by:
sendConsoleMessage in interface JmolAppConsoleInterface- Specified by:
sendConsoleMessage in class JmolConsole
setButton
protected JButton setButton(String label)
- Overrides:
setButton in class JmolConsole
setupLabels
protected void setupLabels()
- Specified by:
setupLabels in class JmolConsole
layoutWindow
private void layoutWindow(String enabledButtons)
enableButton
private void enableButton(String name)
setError
private void setError(boolean TF)
enterPressed
public void enterPressed()
- Specified by:
enterPressed in interface EnterListener
execute
protected void execute(String strCommand)
- Specified by:
execute in class JmolConsole
executeCommandAsThread
void executeCommandAsThread(String strCommand)
zap
public void zap()
- Specified by:
zap in interface JmolAppConsoleInterface
undoClear
private void undoClear()
undoSetEnabled
private boolean undoSetEnabled()
undoRedo
private void undoRedo(boolean isRedo)
undoSave
private void undoSave(boolean incrementPtr)
executeCommand
void executeCommand(String strCommand)
clearContent
protected void clearContent(String text)
- Specified by:
clearContent in class JmolConsole
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed in interface ActionListener- Overrides:
actionPerformed in class JmolConsole
completeCommand
protected String completeCommand(String thisCmd)
- Overrides:
completeCommand in class JmolConsole
getText
public String getText()
- Specified by:
getText in interface JmolAppConsoleInterface- Specified by:
getText in class JmolConsole