1 package org.rosuda.REngine;
3 /** interface defining delegate methods used by {@link REngine} to forward user interface callbacks from R. */
4 public interface REngineUIInterface {
5 /** called when the busy state of R changes - usual response is to change the shape of the cursor
6 * @param eng calling engine
7 * @param state busy state of R (0 = not busy)
9 public void RBusyState (REngine eng, int state);
11 /** called when R wants the user to choose a file.
12 * @param eng calling engine
13 * @param newFile if <code>true</code> then the user can specify a non-existing file to be created, otherwise an existing file must be selected.
14 * @return full path and name of the selected file or <code>null</code> if the selection was cancelled.
16 public String RChooseFile (REngine eng, boolean newFile);