public class IndexedDesignProperty extends Object
Constructor and Description |
---|
IndexedDesignProperty(String property,
Class<?> propertyClass,
ArooaType type,
DesignInstance parent) |
IndexedDesignProperty(String property,
DesignInstance parent) |
Modifier and Type | Method and Description |
---|---|
void |
addDesignListener(DesignListener listener)
Add a
DesignListener . |
void |
clear() |
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 . |
FormItem |
view()
Provide the
FormItem model that represents the view for the
design of this property. |
public IndexedDesignProperty(String property, Class<?> propertyClass, ArooaType type, DesignInstance parent)
public IndexedDesignProperty(String property, DesignInstance parent)
public int instanceCount()
public DesignInstance instanceAt(int index)
index
- The property value's index.public FormItem view()
DesignProperty
FormItem
model that represents the view for the
design of this property.public void clear()
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.