Package repast.simphony.ui.probe
Class MethodPropertyDescriptor
- java.lang.Object
-
- java.beans.FeatureDescriptor
-
- java.beans.PropertyDescriptor
-
- repast.simphony.ui.probe.MethodPropertyDescriptor
-
public class MethodPropertyDescriptor extends PropertyDescriptor
Property descriptor for properties that are accessed via methods. This extends PropertyDescriptor, adding support for converting to and from a String.- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description MethodPropertyDescriptor(String propertyName, Class<?> beanClass)
MethodPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringConverter<?>
getStringConverter()
Gets the StringConverter, if any.void
setStringConverter(StringConverter<?> converter)
Sets the StringConverter.-
Methods inherited from class java.beans.PropertyDescriptor
createPropertyEditor, equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, hashCode, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
-
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
-
-
-
-
Constructor Detail
-
MethodPropertyDescriptor
public MethodPropertyDescriptor(String propertyName, Class<?> beanClass) throws IntrospectionException
- Parameters:
propertyName
-beanClass
-- Throws:
IntrospectionException
-
MethodPropertyDescriptor
public MethodPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod) throws IntrospectionException
- Parameters:
propertyName
-readMethod
-writeMethod
-- Throws:
IntrospectionException
-
-
Method Detail
-
setStringConverter
public void setStringConverter(StringConverter<?> converter)
Sets the StringConverter.- Parameters:
converter
-
-
getStringConverter
public StringConverter<?> getStringConverter()
Gets the StringConverter, if any.- Returns:
-
-