|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStoppableOutput
public class StoppableOutput
A fork of SimpleInput that adds "Stop" buttons for whatever is displaying the dialog boxes.
Constructor Summary | |
---|---|
StoppableOutput()
|
Method Summary | |
---|---|
static java.lang.String |
addNewLines(java.lang.String message)
Method to add new line character if the message is too long |
static void |
setThingToStop(Stoppable thing)
Sets the thing that will be stopped by the "Stop" buttons on these dialog boxes. |
static void |
showError(java.lang.String message)
Method to show an error to a user |
static void |
showInformation(java.lang.String message)
Method to show information to the user |
static void |
showWarning(java.lang.String message)
Method to show a warning to a user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoppableOutput()
Method Detail |
---|
public static void setThingToStop(Stoppable thing)
thing
- The thing to stop, or null to disable the stop buttons.public static void showWarning(java.lang.String message)
message
- the message to displaypublic static void showError(java.lang.String message)
message
- the message to displaypublic static void showInformation(java.lang.String message)
message
- the message to displaypublic static java.lang.String addNewLines(java.lang.String message)
message
- the input message
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |