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

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.form.ModelPropertyEditor<Data>
Type Parameters:
Data - the model type
All Implemented Interfaces:
PropertyEditor<Data>
Direct Known Subclasses:
ListModelPropertyEditor

public abstract class ModelPropertyEditor<Data extends ModelData>
extends java.lang.Object
implements PropertyEditor<Data>

PropertyEditor for model instances.


Field Summary
protected  java.lang.String displayProperty
           
 
Fields inherited from interface com.extjs.gxt.ui.client.widget.form.PropertyEditor
DEFAULT
 
Constructor Summary
ModelPropertyEditor()
          Creates a new model property editor.
ModelPropertyEditor(java.lang.String displayProperty)
          Creates a new model property editor.
 
Method Summary
 java.lang.String getDisplayProperty()
          Returns the display property.
 java.lang.String getStringValue(Data value)
          Returns the data as a string.
 void setDisplayProperty(java.lang.String displayProperty)
          Sets the display property name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.extjs.gxt.ui.client.widget.form.PropertyEditor
convertStringValue
 

Field Detail

displayProperty

protected java.lang.String displayProperty
Constructor Detail

ModelPropertyEditor

public ModelPropertyEditor()
Creates a new model property editor.


ModelPropertyEditor

public ModelPropertyEditor(java.lang.String displayProperty)
Creates a new model property editor.

Parameters:
displayProperty - the display property
Method Detail

getDisplayProperty

public java.lang.String getDisplayProperty()
Returns the display property.

Returns:
the display property name

getStringValue

public java.lang.String getStringValue(Data value)
Description copied from interface: PropertyEditor
Returns the data as a string.

Specified by:
getStringValue in interface PropertyEditor<Data extends ModelData>
Parameters:
value - the typed value
Returns:
the value as a string

setDisplayProperty

public void setDisplayProperty(java.lang.String displayProperty)
Sets the display property name.

Parameters:
displayProperty - the display property name