|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
mars.venus.MessagesPane
public class MessagesPane
Creates the message window at the bottom of the UI.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
---|
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
MAXIMUM_SCROLLED_CHARACTERS
|
static int |
NUMBER_OF_CHARACTERS_TO_CUT
|
Fields inherited from class javax.swing.JTabbedPane |
---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MessagesPane()
Constructor for the class, sets up two fresh tabbed text areas for program feedback. |
Method Summary | |
---|---|
JTextArea |
getAssembleTextArea()
Returns component used to display assembler messages |
String |
getInputString(int maxLen)
Method used by the SystemIO class to get interactive user input requested by a running MIPS program (e.g. |
String |
getInputString(String prompt)
Method used by the SystemIO class to get interactive user input requested by a running MIPS program (e.g. |
JTextArea |
getRunTextArea()
Returns component used to display runtime messages |
void |
postMarsMessage(String message)
Post a message to the assembler display |
void |
postRunMessage(String message)
Post a message to the runtime display |
void |
selectEditorTextLine(String fileName,
int line,
int column)
Will select the specified line in an editor tab. |
void |
selectErrorMessage(String fileName,
int line,
int column)
Will select the Mars Messages tab error message that matches the given specifications, if it is found. |
void |
selectMarsMessageTab()
Make the assembler message tab current (up front) |
void |
selectRunMessageTab()
Make the runtime message tab current (up front) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAXIMUM_SCROLLED_CHARACTERS
public static final int NUMBER_OF_CHARACTERS_TO_CUT
Constructor Detail |
---|
public MessagesPane()
Method Detail |
---|
public void selectErrorMessage(String fileName, int line, int column)
fileName
- A String containing the file path name.line
- Line number for error messagecolumn
- Column number for error messagepublic void selectEditorTextLine(String fileName, int line, int column)
fileName
- A String containing the file path name.line
- Line number for error messagecolumn
- Column number for error messagepublic JTextArea getAssembleTextArea()
public JTextArea getRunTextArea()
public void postMarsMessage(String message)
message
- String to append to assembler display textpublic void postRunMessage(String message)
message
- String to append to runtime display textpublic void selectMarsMessageTab()
public void selectRunMessageTab()
public String getInputString(String prompt)
prompt
- Prompt to display to the user.
public String getInputString(int maxLen)
maxLen:
- maximum length of input. This method returns when maxLen characters have been read. Use -1 for no length restrictions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |