Package repast.simphony.ui.probe
Class ProbedPropertyFactory
java.lang.Object
repast.simphony.ui.probe.ProbedPropertyFactory
Creates ProbedProperties for use in the ProbableBeanCreator.
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateProbedProperty
(PropertyDescriptor desc, boolean wrap) Creates a ProbedProperty using the specified PropertyDescriptor.createProbedProperty
(PropertyDescriptor desc, List<Object> possibleValues, boolean wrap) Creates a ProbedProperty using the specified PropertyDescriptor.static String
createProbedTitle
(ProbeInfo pbInfo, Object target) Creates a title for the specified target using ProbeInof.getIDProperty().
-
Constructor Details
-
ProbedPropertyFactory
public ProbedPropertyFactory()
-
-
Method Details
-
createProbedProperty
public static DefaultProbedPropertyUICreator createProbedProperty(PropertyDescriptor desc, boolean wrap) Creates a ProbedProperty using the specified PropertyDescriptor.- Parameters:
desc
-wrap
- whether or not to wrap with a sparkline button- Returns:
- the created ProbedProperty.
-
createProbedProperty
public static DefaultProbedPropertyUICreator createProbedProperty(PropertyDescriptor desc, List<Object> possibleValues, boolean wrap) Creates a ProbedProperty using the specified PropertyDescriptor.- Parameters:
desc
- the propert descriptorpossibleValues
- a list of possible values for the property- Returns:
- the created ProbedProperty.
-
createProbedTitle
public static String createProbedTitle(ProbeInfo pbInfo, Object target) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException Creates a title for the specified target using ProbeInof.getIDProperty().- Parameters:
pbInfo
-target
-- Returns:
- Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException
-