org.graffiti.plugin.parameter
Class StringSelectionParameter

java.lang.Object
  extended by org.graffiti.plugin.parameter.AbstractSingleParameter<String>
      extended by org.graffiti.plugin.parameter.StringSelectionParameter
All Implemented Interfaces:
Serializable, Displayable<String>, Parameter<String>, SingleParameter<String>

public class StringSelectionParameter
extends AbstractSingleParameter<String>

See Also:
Serialized Form

Constructor Summary
StringSelectionParameter(String[] params, String name, String description)
           
 
Method Summary
 String[] getParams()
           
 int getSelectedIndex()
           
 String getSelectedValue()
           
 String getValue()
          Returns the encapsulated object.
 int numOfParams()
           
 void setSelectedValue(int index)
           
 void setValue(String value)
          Sets the encapsulated object.
 
Methods inherited from class org.graffiti.plugin.parameter.AbstractSingleParameter
canCopy, copy, getDependencyParent, getDependencyValue, getDescription, getImage, getName, getStandardXML, isVisible, setDependency, setDescription, setObjectValue, setVisible, toString, toXMLString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringSelectionParameter

public StringSelectionParameter(String[] params,
                                String name,
                                String description)
Method Detail

getSelectedValue

public String getSelectedValue()

getValue

public String getValue()
Description copied from interface: Displayable
Returns the encapsulated object.

Specified by:
getValue in interface Displayable<String>
Overrides:
getValue in class AbstractSingleParameter<String>
Returns:
Object
See Also:
Displayable.getValue()

setValue

public void setValue(String value)
Description copied from interface: Displayable
Sets the encapsulated object.

Specified by:
setValue in interface Displayable<String>
Overrides:
setValue in class AbstractSingleParameter<String>
See Also:
Displayable.setValue(java.lang.Object)

getSelectedIndex

public int getSelectedIndex()

setSelectedValue

public void setSelectedValue(int index)

numOfParams

public int numOfParams()

getParams

public String[] getParams()


Generated at 2012-05-30 11:00:36 PM CEST