|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--GLOBALS
| Method Summary | |
<static> function
|
choice(message, trueString, falseString)
Reads in a boolean input. The Strings representing the two possible options as well as a message for the user can be specified. |
<static> function
|
print(str)
Prints a String. |
<static> function
|
println(str)
Prints a String and then terminates the current line. |
<static> function
|
readln(message)
Reads a line of input. |
<static> function
|
source(filename)
|
<static> function
|
sourceAPI(filename)
'Sources' a resource with the given name. |
| Method Detail |
<static> function choice(message, trueString, falseString)
choice("Start Simulation?", "yes", "no");choice would return true and false if 'n' or 'N' would be entered.choice opens a message box containing the passed message and two buttons with the labels "yes" and "no".
message - The message to be displayed when asking the user for his choice
trueString - The String representing the true option
falseString - The String representing the false option
true if the user chooses the option represented by trueString, false otherwise
<static> function print(str)
str - The String to print
<static> function println(str)
str - The String to print
<static> function readln(message)
message - A message that will be printed right before the input is read
<static> function source(filename)
<static> function sourceAPI(filename)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||