|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.harvard.mgh.purcell.gCLINE.general.ErrorManager
public class ErrorManager
An error manager who creates errors and messages attaced to a given JFrame.
| Nested Class Summary | |
|---|---|
private class |
ErrorManager.myDialog
|
| Field Summary | |
|---|---|
private static int |
max_line_length
The maximum number of characters per line. |
private javax.swing.JFrame |
rootFrame
The JFrame the messages are attaced to. |
| Constructor Summary | |
|---|---|
ErrorManager(javax.swing.JFrame givenFrame)
The only constructor. |
|
| Method Summary | |
|---|---|
void |
createError(java.lang.String message,
java.lang.String citation)
Create an error message with a citation. |
void |
createMessage(java.lang.String message,
java.lang.String citation)
Create a message with a citation. |
private static java.lang.String |
wrap(java.lang.String text)
Insert \n into a string to text to wrap the text at a given length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private javax.swing.JFrame rootFrame
private static int max_line_length
| Constructor Detail |
|---|
public ErrorManager(javax.swing.JFrame givenFrame)
givenFrame - a JFrame that the messages
are attached to.| Method Detail |
|---|
private static java.lang.String wrap(java.lang.String text)
text - A String that you want to be wrapped.
public void createError(java.lang.String message,
java.lang.String citation)
message - A string that holds a message for the
user.citation - A string that allows the programmers
to know where the message came from for debugging purposes.
public void createMessage(java.lang.String message,
java.lang.String citation)
message - A string that hodls a message for the
user.citation - A string that allows the programers
to know where the message came from for debugging purposes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||