Package repast.simphony.ui.probe
Class MethodPropertyDescriptor
java.lang.Object
java.beans.FeatureDescriptor
java.beans.PropertyDescriptor
repast.simphony.ui.probe.MethodPropertyDescriptor
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
ConstructorDescriptionMethodPropertyDescriptor
(String propertyName, Class<?> beanClass) MethodPropertyDescriptor
(String propertyName, Method readMethod, Method writeMethod) -
Method Summary
Modifier and TypeMethodDescriptionGets 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 Details
-
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 Details
-
setStringConverter
Sets the StringConverter.- Parameters:
converter
-
-
getStringConverter
Gets the StringConverter, if any.- Returns:
-