Package org.graffiti.plugin.parameter
Class EnumParameter
java.lang.Object
org.graffiti.plugin.parameter.AbstractSingleParameter
org.graffiti.plugin.parameter.EnumParameter
- All Implemented Interfaces:
Displayable,Parameter,SingleParameter
public class EnumParameter extends AbstractSingleParameter
-
Constructor Summary
Constructors Constructor Description EnumParameter(Enum<?> val, String name, String description) -
Method Summary
Modifier and Type Method Description Enum<?>[]getAllEnumValue()this will return all possible enum values contained in the enum stored in this objectStringgetDescription()Returns the description of the parameter.Enum<?>getEnumValue()StringgetName()Returns the name of the parameter.ObjectgetValue()Returns the encapsulated object.voidsetValue(Object val)Sets the encapsulated object.Methods inherited from class org.graffiti.plugin.parameter.AbstractSingleParameter
getIcon, getImage, isLeftAligned, setDescription, setLeftAligned, toString, toXMLString
-
Constructor Details
-
EnumParameter
-
-
Method Details
-
getDescription
Description copied from class:AbstractSingleParameterReturns the description of the parameter.- Specified by:
getDescriptionin interfaceDisplayable- Overrides:
getDescriptionin classAbstractSingleParameter- Returns:
- the description of the parameter.
-
getName
Description copied from class:AbstractSingleParameterReturns the name of the parameter.- Specified by:
getNamein interfaceDisplayable- Overrides:
getNamein classAbstractSingleParameter- Returns:
- the name of the parameter.
-
setValue
Description copied from interface:DisplayableSets the encapsulated object.- Specified by:
setValuein interfaceDisplayable- Overrides:
setValuein classAbstractSingleParameter- Throws:
IllegalArgumentException- thrown if val is not of the appropriate type.
-
getValue
Description copied from interface:DisplayableReturns the encapsulated object.- Specified by:
getValuein interfaceDisplayable- Overrides:
getValuein classAbstractSingleParameter- Returns:
- Object
-
getEnumValue
-
getAllEnumValue
this will return all possible enum values contained in the enum stored in this object- Returns:
-