com.sencha.gxt.legacy.client.data
Interface ModelData

All Known Implementing Classes:
BaseModelData

public interface ModelData


Method Summary
<X> X
get(String property)
          Returns the named property from this model instance.
 Map<String,Object> getProperties()
          Returns the model's properties and values as a map.
 Collection<String> getPropertyNames()
          Returns an collection of the model's property names.
<X> X
remove(String property)
          Removes the named property from this model instance.
<X> X
set(String property, X value)
          Sets a property.
 

Method Detail

get

<X> X get(String property)
Returns the named property from this model instance.

Parameters:
property - the property name
Returns:
the value

getProperties

Map<String,Object> getProperties()
Returns the model's properties and values as a map.

Changes to the returned collection should not mutate this model instance.

Returns:
the properties and values

getPropertyNames

Collection<String> getPropertyNames()
Returns an collection of the model's property names.

The collection should be a snapshot of the property names that the model represents.

Changes to the returned collection should not mutate this model instance.


remove

<X> X remove(String property)
Removes the named property from this model instance.

Parameters:
property - the property name
Returns:
the old value for the property

set

<X> X set(String property,
          X value)
Sets a property.

Parameters:
property - the property name
value - property value
Returns:
the old value for the property


Copyright © 2011. All Rights Reserved.