com.extjs.gxt.ui.client.widget.form
Class ListModelPropertyEditor<Data extends ModelData>
java.lang.Object
com.extjs.gxt.ui.client.widget.form.ModelPropertyEditor<Data>
com.extjs.gxt.ui.client.widget.form.ListModelPropertyEditor<Data>
- Type Parameters:
Data
- the model data type
- All Implemented Interfaces:
- PropertyEditor<Data>
public class ListModelPropertyEditor<Data extends ModelData>
- extends ModelPropertyEditor<Data>
PropertyEditor
for a list of model instances.
Field Summary |
protected java.util.List<Data> |
models
|
Method Summary |
Data |
convertStringValue(java.lang.String value)
Converts a string to the typed value. |
void |
setList(java.util.List<Data> models)
Sets the list of models. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
models
protected java.util.List<Data extends ModelData> models
ListModelPropertyEditor
public ListModelPropertyEditor()
- Creates a new property editor.
ListModelPropertyEditor
public ListModelPropertyEditor(java.lang.String displayProperty)
- Creates a new property editor.
- Parameters:
displayProperty
- the display property name
setList
public void setList(java.util.List<Data> models)
- Sets the list of models.
- Parameters:
models
- the list of models
convertStringValue
public Data convertStringValue(java.lang.String value)
- Description copied from interface:
PropertyEditor
- Converts a string to the typed value.
- Parameters:
value
- the string value
- Returns:
- the type value or null if value cannot be converted