public class VisualObjectFactory
extends java.lang.Object
VisualObjectFactory
class contains static methods
that create new visual objects based on an object and a property name.Modifier and Type | Method and Description |
---|---|
static VisualObject |
create(java.lang.Object object,
java.lang.String property)
Creates a new visual object.
|
public static VisualObject create(java.lang.Object object, java.lang.String property)
object
- the object to create the visual object from.property
- the property name to use.java.lang.IllegalArgumentException
- if the property cannot be found, or
the property type is not supported by any known visual object.java.lang.RuntimeException
- if an error occurred in the visual object
constructor, or when retrieving the property value from the object.