public class MappedDesignProperty extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MappedDesignProperty.InstanceWrapper |
Constructor and Description |
---|
MappedDesignProperty(String property,
Class<?> propertyClass,
ArooaType type,
DesignInstance parent)
Constructor.
|
MappedDesignProperty(String property,
DesignInstance parent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDesignListener(DesignListener listener)
Add a
DesignListener . |
ArooaContext |
getArooaContext()
Get the
ArooaContext associated with the element. |
DesignInstance |
instanceAt(int index)
Overridden by subclasses to provide the design of the property value
at the index.
|
int |
instanceCount()
Overridden by subclasses to provide the number of design instances
for this property.
|
boolean |
isPopulated()
Used by the Field Selection View to work out which group to
check box.
|
String |
property()
The name of the property.
|
void |
removeDesignListener(DesignListener listener)
Remove a
DesignListener . |
MultiTypeTable |
view()
Provide the
FormItem model that represents the view for the
design of this property. |
public MappedDesignProperty(String property, Class<?> propertyClass, ArooaType type, DesignInstance parent)
property
- propertyClass
- type
- parent
- public MappedDesignProperty(String property, DesignInstance parent) throws ArooaPropertyException
property
- parent
- ArooaPropertyException
public int instanceCount()
public DesignInstance instanceAt(int index)
index
- The property value's index.public MultiTypeTable view()
DesignProperty
FormItem
model that represents the view for the
design of this property.public boolean isPopulated()
DesignProperty
public String property()
DesignProperty
property
in interface DesignProperty
public ArooaContext getArooaContext()
DesignElementProperty
ArooaContext
associated with the element.getArooaContext
in interface DesignElementProperty
public void addDesignListener(DesignListener listener)
DesignElementProperty
DesignListener
. The listener will be notified when
instances of either components or types are added to this property.addDesignListener
in interface DesignElementProperty
listener
- The listener. Must not be null.public void removeDesignListener(DesignListener listener)
DesignElementProperty
DesignListener
.removeDesignListener
in interface DesignElementProperty
listener
- The listener. Must not be null.