File: REngineUIInterface.java

package info (click to toggle)
rjava 1.0-14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,188 kB
  • sloc: java: 13,223; ansic: 5,503; sh: 3,776; xml: 325; makefile: 250; perl: 33
file content (17 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.rosuda.REngine;

/** interface defining delegate methods used by {@link REngine} to forward user interface callbacks from R. */
public interface REngineUIInterface {
	/** called when the busy state of R changes - usual response is to change the shape of the cursor
	 *  @param eng calling engine
	 *  @param state busy state of R (0 = not busy)
	 */
	public void   RBusyState  (REngine eng, int state);	
	
	/** called when R wants the user to choose a file.
	 *  @param eng calling engine
	 *  @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.
	 *  @return full path and name of the selected file or <code>null</code> if the selection was cancelled.
	 */
	public String RChooseFile  (REngine eng, boolean newFile);
}