org.rosuda.deducer.widgets.param
Class RFunctionList

java.lang.Object
  extended by org.rosuda.deducer.widgets.param.Param
      extended by org.rosuda.deducer.widgets.param.RFunctionList
All Implemented Interfaces:
java.lang.Cloneable

public class RFunctionList
extends Param


Field Summary
protected  java.util.Vector active
           
protected  java.lang.String[] assignTo
           
protected  java.util.Vector defaultActive
           
protected  Param[] globalParams
           
protected  java.lang.String[] keep
           
protected  java.util.HashMap map
           
protected  java.lang.String[] print
           
protected  java.lang.String[] requiredFuncs
           
 
Fields inherited from class org.rosuda.deducer.widgets.param.Param
labels, lowerBound, name, options, required, requiresVariableSelector, title, upperBound, view, VIEW_CHECK_BOX, VIEW_COLOR, VIEW_COMBO, VIEW_EDITABLE_COMBO, VIEW_ENTER, VIEW_ENTER_LONG, VIEW_HIDDEN, VIEW_MULTI_VARIABLE, VIEW_RFUNCTION_CHOOSER, VIEW_RFUNCTION_PANEL, VIEW_ROBJECT_COMBO, VIEW_SINGLE_VARIABLE, VIEW_TWO_VALUE_ENTER, VIEW_VECTOR_BUILDER
 
Constructor Summary
RFunctionList()
           
RFunctionList(java.lang.String nm)
           
 
Method Summary
 void addRFunction(java.lang.String name, RFunction rf)
           
 void addRFunction(java.lang.String name, RFunction rf, boolean requireFunction)
           
 void addRFunction(java.lang.String name, RFunction rf, boolean requireFunction, boolean printResult, boolean keepResult, java.lang.String assignToVariable)
           
 java.lang.String checkValid()
           
 java.lang.Object clone()
           
 java.util.Vector getActiveFunctions()
           
 java.lang.String getCall()
           
 java.util.Vector getDefaultActiveFunctions()
           
 java.lang.Object getDefaultValue()
           
 java.util.HashMap getFunctionMap()
           
 Param[] getGlobalParams()
           
 java.lang.String[] getParamCalls()
           
 java.lang.Object getValue()
           
 ParamWidget getView(VariableSelectorWidget sel)
           
 boolean hasValidEntry()
           
 void setActiveFunctions(java.lang.String active)
           
 void setActiveFunctions(java.lang.String[] active)
           
 void setActiveFunctions(java.util.Vector active)
           
 void setDefaultActiveFunctions(java.util.Vector defaultActive)
           
 void setDefaultValue(java.lang.Object defaultValue)
           
 void setFromXML(org.w3c.dom.Element node)
          load model from an xml representation.
 void setFunctionMap(java.util.HashMap map)
           
 void setGlobalParams(Param[] globalParams)
           
 void setValue(java.lang.Object value)
           
 org.w3c.dom.Element toXML()
          Send to xml.
 void updateResultReferences(RFunction rf)
           
 
Methods inherited from class org.rosuda.deducer.widgets.param.Param
getLabels, getLowerBound, getName, getOptions, getTitle, getUpperBound, getView, getViewType, isRequired, makeParam, requiresVariableSelector, setLabels, setLowerBound, setLowerBound, setName, setOptions, setRequired, setRequiresVariableSelector, setTitle, setUpperBound, setUpperBound, setViewType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

active

protected java.util.Vector active

defaultActive

protected java.util.Vector defaultActive

requiredFuncs

protected java.lang.String[] requiredFuncs

assignTo

protected java.lang.String[] assignTo

print

protected java.lang.String[] print

keep

protected java.lang.String[] keep

map

protected java.util.HashMap map

globalParams

protected Param[] globalParams
Constructor Detail

RFunctionList

public RFunctionList()

RFunctionList

public RFunctionList(java.lang.String nm)
Method Detail

getView

public ParamWidget getView(VariableSelectorWidget sel)
Overrides:
getView in class Param

clone

public java.lang.Object clone()
Specified by:
clone in class Param

updateResultReferences

public void updateResultReferences(RFunction rf)

getParamCalls

public java.lang.String[] getParamCalls()
Specified by:
getParamCalls in class Param

getCall

public java.lang.String getCall()

setDefaultValue

public void setDefaultValue(java.lang.Object defaultValue)
Specified by:
setDefaultValue in class Param

getDefaultValue

public java.lang.Object getDefaultValue()
Specified by:
getDefaultValue in class Param

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in class Param

getValue

public java.lang.Object getValue()
Specified by:
getValue in class Param

addRFunction

public void addRFunction(java.lang.String name,
                         RFunction rf,
                         boolean requireFunction,
                         boolean printResult,
                         boolean keepResult,
                         java.lang.String assignToVariable)

addRFunction

public void addRFunction(java.lang.String name,
                         RFunction rf)

addRFunction

public void addRFunction(java.lang.String name,
                         RFunction rf,
                         boolean requireFunction)

toXML

public org.w3c.dom.Element toXML()
Send to xml. TODO: does not account for aliased Params

Overrides:
toXML in class Param

setFromXML

public void setFromXML(org.w3c.dom.Element node)
load model from an xml representation. TODO: Does not handle aliased Params

Overrides:
setFromXML in class Param

hasValidEntry

public boolean hasValidEntry()
Overrides:
hasValidEntry in class Param

setActiveFunctions

public void setActiveFunctions(java.util.Vector active)

setActiveFunctions

public void setActiveFunctions(java.lang.String[] active)

setActiveFunctions

public void setActiveFunctions(java.lang.String active)

getActiveFunctions

public java.util.Vector getActiveFunctions()

setDefaultActiveFunctions

public void setDefaultActiveFunctions(java.util.Vector defaultActive)

getDefaultActiveFunctions

public java.util.Vector getDefaultActiveFunctions()

setFunctionMap

public void setFunctionMap(java.util.HashMap map)

getFunctionMap

public java.util.HashMap getFunctionMap()

checkValid

public java.lang.String checkValid()

setGlobalParams

public void setGlobalParams(Param[] globalParams)

getGlobalParams

public Param[] getGlobalParams()