|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RMainLoopCallbacks
Interface which must be implmented by any class that wants to pose as the call-back handler for R event loop callbacks. It is legal to return immediately except when user interaction is required: @link{#rReadConsole} and @link{#rChooseFile} are expected to block until the user performs the desired action.
| Method Summary | |
|---|---|
void |
rBusy(Rengine re,
int which)
called when R enters or exist a longer evaluation. |
String |
rChooseFile(Rengine re,
int newFile)
called when R expects the user to choose a file |
void |
rFlushConsole(Rengine re)
called when R requests the console to flush any buffered output |
void |
rLoadHistory(Rengine re,
String filename)
called to load the contents of the history |
String |
rReadConsole(Rengine re,
String prompt,
int addToHistory)
called when R waits for user input. |
void |
rSaveHistory(Rengine re,
String filename)
called to save the contents of the history (the implementation is responsible of keeping track of the history) |
void |
rShowMessage(Rengine re,
String message)
called when R want to show a warning/error message (not to be confused with messages displayed in the console output) |
void |
rWriteConsole(Rengine re,
String text)
called when R prints output to the console |
| Method Detail |
|---|
void rWriteConsole(Rengine re,
String text)
re - calling enginetext - text to display in the console
void rBusy(Rengine re,
int which)
re - calling enginewhich - identifies whether R enters or exist the busy state
String rReadConsole(Rengine re,
String prompt,
int addToHistory)
re - calling enginepropmt - prompt to be displayed at the console prior to user's inputaddToHistory - flags telling the handler whether the input should be considered for adding to history or not
void rShowMessage(Rengine re,
String message)
re - calling enginemessage - message to display
String rChooseFile(Rengine re,
int newFile)
re - calling enginenewFile - flag determining whether an existing or new file is to be selecteed
void rFlushConsole(Rengine re)
re - calling engine
void rSaveHistory(Rengine re,
String filename)
re - calling enginefilename - name of the history file
void rLoadHistory(Rengine re,
String filename)
re - calling enginefilename - name of the history file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||