S-PLUS Connect/Java v1.0

com.insightful.splus
Class SplusOptionsManager

java.lang.Object
  extended bycom.insightful.splus.SplusOptionsManager

public class SplusOptionsManager
extends Object

Support for Java GUI options.

This class maintains a HashMap of String key/value pairs which reflects the option values set in the engine by javaGuiSetOptions().

The GUI fills the map on initialization, and is notified of new key/value pairs by javaGuiSetOptions() when a change is made.


Constructor Summary
SplusOptionsManager()
           
 
Method Summary
static String getOption(String key)
          Get the value of an option from the HashMap.
static void optionChangedInEngine(String key, String value)
          Method the engine uses to notify the GUI that some option has changed.
static void setOption(String key, String value)
          Set an option to a specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplusOptionsManager

public SplusOptionsManager()
Method Detail

setOption

public static void setOption(String key,
                             String value)
Set an option to a specified value. Sets the value in the options HashMap and in the engine via a javaGuiSetOptions() command.

Parameters:
key - name of option
value - value for option

getOption

public static String getOption(String key)
Get the value of an option from the HashMap.


optionChangedInEngine

public static void optionChangedInEngine(String key,
                                         String value)
Method the engine uses to notify the GUI that some option has changed. This is not intended to be called from Java code. Updates the HashMap to reflect the new option value.


S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.