com.extjs.gxt.ui.client.widget.form
Class ListModelPropertyEditor<Data extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.form.ModelPropertyEditor<Data>
      extended by 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
           
 
Fields inherited from class com.extjs.gxt.ui.client.widget.form.ModelPropertyEditor
displayProperty
 
Fields inherited from interface com.extjs.gxt.ui.client.widget.form.PropertyEditor
DEFAULT
 
Constructor Summary
ListModelPropertyEditor()
          Creates a new property editor.
ListModelPropertyEditor(java.lang.String displayProperty)
          Creates a new property editor.
 
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 com.extjs.gxt.ui.client.widget.form.ModelPropertyEditor
getDisplayProperty, getStringValue, setDisplayProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

models

protected java.util.List<Data extends ModelData> models
Constructor Detail

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
Method Detail

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