Package org.graffiti.plugin.parameter
Class ObjectParameter
java.lang.Object
org.graffiti.plugin.parameter.AbstractSingleParameter
org.graffiti.plugin.parameter.ObjectParameter
- All Implemented Interfaces:
Displayable
,Parameter
,SingleParameter
public class ObjectParameter extends AbstractSingleParameter
Parameter that contains an
Object
value.- Version:
- $Revision: 1.5 $
-
Constructor Summary
Constructors Constructor Description ObjectParameter(Object value, String name, String description)
Constructs a new integer parameter.ObjectParameter(String name, String description)
Constructs a new integer parameter. -
Method Summary
Methods inherited from class org.graffiti.plugin.parameter.AbstractSingleParameter
getDescription, getIcon, getImage, getName, isLeftAligned, setDescription, setLeftAligned, toString, toXMLString
-
Constructor Details
-
ObjectParameter
Constructs a new integer parameter.- Parameters:
value
- DOCUMENT ME!name
- DOCUMENT ME!description
- DOCUMENT ME!
-
ObjectParameter
Constructs a new integer parameter.- Parameters:
name
- DOCUMENT ME!description
- DOCUMENT ME!
-
-
Method Details
-
setValue
Description copied from interface:Displayable
Sets the encapsulated object.- Specified by:
setValue
in interfaceDisplayable
- Overrides:
setValue
in classAbstractSingleParameter
- Throws:
IllegalArgumentException
- thrown if val is not of the appropriate type.- See Also:
Displayable.setValue(java.lang.Object)
-
getValue
Description copied from interface:Displayable
Returns the encapsulated object.- Specified by:
getValue
in interfaceDisplayable
- Overrides:
getValue
in classAbstractSingleParameter
- Returns:
- Object
-