org.rosuda.deducer.widgets.param
Class Param

java.lang.Object
  extended by org.rosuda.deducer.widgets.param.Param
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
ParamAny, ParamCharacter, ParamColor, ParamFacet, ParamLogical, ParamMultipleVariables, ParamNone, ParamNumeric, ParamRFunctionResult, ParamRObject, ParamScaleLegend, ParamStatSummary, ParamVariable, ParamVector, RFunction, RFunctionList

public abstract class Param
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
protected  java.lang.String[] labels
           
protected  java.lang.Double lowerBound
           
protected  java.lang.String name
           
protected  java.lang.String[] options
           
protected  boolean required
           
protected  boolean requiresVariableSelector
           
protected  java.lang.String title
           
protected  java.lang.Double upperBound
           
protected  java.lang.String view
           
static java.lang.String VIEW_CHECK_BOX
           
static java.lang.String VIEW_COLOR
           
static java.lang.String VIEW_COMBO
           
static java.lang.String VIEW_EDITABLE_COMBO
           
static java.lang.String VIEW_ENTER
           
static java.lang.String VIEW_ENTER_LONG
           
static java.lang.String VIEW_HIDDEN
           
static java.lang.String VIEW_MULTI_VARIABLE
           
static java.lang.String VIEW_RFUNCTION_CHOOSER
           
static java.lang.String VIEW_RFUNCTION_PANEL
           
static java.lang.String VIEW_ROBJECT_COMBO
           
static java.lang.String VIEW_SINGLE_VARIABLE
           
static java.lang.String VIEW_TWO_VALUE_ENTER
           
static java.lang.String VIEW_VECTOR_BUILDER
           
 
Constructor Summary
Param()
           
Param(java.lang.String nm)
           
 
Method Summary
abstract  java.lang.Object clone()
           
abstract  java.lang.Object getDefaultValue()
           
 java.lang.String[] getLabels()
           
 java.lang.Double getLowerBound()
           
 java.lang.String getName()
           
 java.lang.String[] getOptions()
           
abstract  java.lang.String[] getParamCalls()
           
 java.lang.String getTitle()
           
 java.lang.Double getUpperBound()
           
abstract  java.lang.Object getValue()
           
 ParamWidget getView()
           
 ParamWidget getView(VariableSelectorWidget sel)
           
 java.lang.String getViewType()
           
 boolean hasValidEntry()
           
 boolean isRequired()
           
static Param makeParam(java.lang.String className)
           
 boolean requiresVariableSelector()
           
abstract  void setDefaultValue(java.lang.Object defaultValue)
           
 void setFromXML(org.w3c.dom.Element node)
           
 void setLabels(java.lang.String[] labels)
           
 void setLowerBound(double lowerBound)
           
 void setLowerBound(java.lang.Double lowerBound)
           
 void setName(java.lang.String name)
           
 void setOptions(java.lang.String[] options)
           
 void setRequired(boolean req)
           
 void setRequiresVariableSelector(boolean needed)
           
 void setTitle(java.lang.String title)
           
 void setUpperBound(double upperBound)
           
 void setUpperBound(java.lang.Double upperBound)
           
abstract  void setValue(java.lang.Object value)
           
 void setViewType(java.lang.String view)
           
 org.w3c.dom.Element toXML()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW_ENTER

public static final java.lang.String VIEW_ENTER
See Also:
Constant Field Values

VIEW_ENTER_LONG

public static final java.lang.String VIEW_ENTER_LONG
See Also:
Constant Field Values

VIEW_COMBO

public static final java.lang.String VIEW_COMBO
See Also:
Constant Field Values

VIEW_EDITABLE_COMBO

public static final java.lang.String VIEW_EDITABLE_COMBO
See Also:
Constant Field Values

VIEW_CHECK_BOX

public static final java.lang.String VIEW_CHECK_BOX
See Also:
Constant Field Values

VIEW_VECTOR_BUILDER

public static final java.lang.String VIEW_VECTOR_BUILDER
See Also:
Constant Field Values

VIEW_TWO_VALUE_ENTER

public static final java.lang.String VIEW_TWO_VALUE_ENTER
See Also:
Constant Field Values

VIEW_COLOR

public static final java.lang.String VIEW_COLOR
See Also:
Constant Field Values

VIEW_RFUNCTION_CHOOSER

public static final java.lang.String VIEW_RFUNCTION_CHOOSER
See Also:
Constant Field Values

VIEW_RFUNCTION_PANEL

public static final java.lang.String VIEW_RFUNCTION_PANEL
See Also:
Constant Field Values

VIEW_SINGLE_VARIABLE

public static final java.lang.String VIEW_SINGLE_VARIABLE
See Also:
Constant Field Values

VIEW_HIDDEN

public static final java.lang.String VIEW_HIDDEN
See Also:
Constant Field Values

VIEW_MULTI_VARIABLE

public static final java.lang.String VIEW_MULTI_VARIABLE
See Also:
Constant Field Values

VIEW_ROBJECT_COMBO

public static final java.lang.String VIEW_ROBJECT_COMBO
See Also:
Constant Field Values

name

protected java.lang.String name

title

protected java.lang.String title

options

protected java.lang.String[] options

labels

protected java.lang.String[] labels

view

protected java.lang.String view

lowerBound

protected java.lang.Double lowerBound

upperBound

protected java.lang.Double upperBound

required

protected boolean required

requiresVariableSelector

protected boolean requiresVariableSelector
Constructor Detail

Param

public Param()

Param

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

getView

public ParamWidget getView()

getView

public ParamWidget getView(VariableSelectorWidget sel)

clone

public abstract java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getParamCalls

public abstract java.lang.String[] getParamCalls()

setValue

public abstract void setValue(java.lang.Object value)

getValue

public abstract java.lang.Object getValue()

setDefaultValue

public abstract void setDefaultValue(java.lang.Object defaultValue)

getDefaultValue

public abstract java.lang.Object getDefaultValue()

setViewType

public void setViewType(java.lang.String view)

getViewType

public java.lang.String getViewType()

setTitle

public void setTitle(java.lang.String title)

getTitle

public java.lang.String getTitle()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setOptions

public void setOptions(java.lang.String[] options)

getOptions

public java.lang.String[] getOptions()

setLabels

public void setLabels(java.lang.String[] labels)

getLabels

public java.lang.String[] getLabels()

setLowerBound

public void setLowerBound(java.lang.Double lowerBound)

setLowerBound

public void setLowerBound(double lowerBound)

getLowerBound

public java.lang.Double getLowerBound()

setUpperBound

public void setUpperBound(java.lang.Double upperBound)

setUpperBound

public void setUpperBound(double upperBound)

getUpperBound

public java.lang.Double getUpperBound()

requiresVariableSelector

public boolean requiresVariableSelector()

setRequiresVariableSelector

public void setRequiresVariableSelector(boolean needed)

toXML

public org.w3c.dom.Element toXML()

setFromXML

public void setFromXML(org.w3c.dom.Element node)

makeParam

public static Param makeParam(java.lang.String className)

setRequired

public void setRequired(boolean req)

isRequired

public boolean isRequired()

hasValidEntry

public boolean hasValidEntry()