public class VisualDebuggerView
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
actionSuffix |
static java.lang.String |
clearAction |
static java.lang.String |
closeAction |
static java.lang.String |
contAction |
static java.lang.String |
imageSuffix |
static java.lang.String |
inspectAction |
static java.lang.String |
labelSuffix |
protected VisualDebuggerModel |
model |
static java.lang.String |
nextAction |
static java.lang.String |
openAction |
static java.lang.String |
shortcutSuffix |
static java.lang.String |
stepAction |
static java.lang.String |
stepUpAction |
static java.lang.String |
tipSuffix |
Constructor and Description |
---|
VisualDebuggerView() |
VisualDebuggerView(java.util.ResourceBundle resourceBundle) |
Modifier and Type | Method and Description |
---|---|
protected javax.swing.JMenu |
createMenu(java.lang.String key)
Create a menu for the app.
|
protected javax.swing.JMenuBar |
createMenubar()
Create the menubar for the app.
|
protected javax.swing.JMenuItem |
createMenuItem(java.lang.String cmd)
Create a menu item for the specified command
|
protected javax.swing.JTextArea |
createTextArea()
Create an editor to represent the given document.
|
protected javax.swing.JButton |
createToolbarButton(java.lang.String key)
Create a button to go inside of the toolbar.
|
void |
exitGUI() |
protected javax.swing.JFrame |
getJFrame()
Returns a JFrame
The default behavior of this method creates and returns a JFrame object.
|
VisualDebuggerModel |
getModel() |
protected java.net.URL |
getResource(java.lang.String key) |
protected java.lang.String |
getResourceString(java.lang.String nm) |
protected java.lang.String |
getTitleString(java.lang.Object source)
Returns the title string Subclasses may override this method to customize
the window title.
|
void |
open(java.lang.String filename)
Opens a local file in a window
|
void |
startGUI() |
void |
update(java.lang.Object source,
int beginLine,
SimpleNode node,
Context c)
Updates the view
|
public static final java.lang.String imageSuffix
public static final java.lang.String labelSuffix
public static final java.lang.String actionSuffix
public static final java.lang.String tipSuffix
public static final java.lang.String shortcutSuffix
public static final java.lang.String openAction
public static final java.lang.String stepAction
public static final java.lang.String stepUpAction
public static final java.lang.String nextAction
public static final java.lang.String contAction
public static final java.lang.String closeAction
public static final java.lang.String inspectAction
public static final java.lang.String clearAction
protected VisualDebuggerModel model
public VisualDebuggerView()
public VisualDebuggerView(java.util.ResourceBundle resourceBundle)
public VisualDebuggerModel getModel()
protected javax.swing.JFrame getJFrame()
public void startGUI()
public void exitGUI()
protected java.lang.String getTitleString(java.lang.Object source)
source
- the script sourcepublic void update(java.lang.Object source, int beginLine, SimpleNode node, Context c)
public void open(java.lang.String filename)
filename
- the file nameprotected javax.swing.JButton createToolbarButton(java.lang.String key)
key
- The key in the resource file to serve as the basis of lookups.protected javax.swing.JMenuBar createMenubar()
protected javax.swing.JMenu createMenu(java.lang.String key)
key
- name of a menu groupprotected javax.swing.JMenuItem createMenuItem(java.lang.String cmd)
cmd
- the command nameprotected java.lang.String getResourceString(java.lang.String nm)
protected java.net.URL getResource(java.lang.String key)
protected javax.swing.JTextArea createTextArea()