com.extjs.gxt.ui.client.data
Interface ModelData
- All Known Subinterfaces:
- FilterPagingLoadConfig, GroupingLoadConfig, ListLoadConfig, LoadConfig, Model, PagingLoadConfig, RemoteSortTreeLoadConfig, TreeModel
- All Known Implementing Classes:
- AbstractAxis, Access, Anchor, AreaChart, BarChart, BarChart.Bar, BaseBooleanFilterConfig, BaseDateFilterConfig, BaseDot, BaseFilterConfig, BaseFilterPagingLoadConfig, BaseGroupingLoadConfig, BaseListFilterConfig, BaseListLoadConfig, BaseModel, BaseModelData, BaseNumericFilterConfig, BasePagingLoadConfig, BaseRemoteSortTreeLoadConfig, BaseStringFilterConfig, BaseTreeModel, BeanModel, Bow, ChartConfig, ChartModel, CylinderBarChart, CylinderBarChart.Bar, DataConfig, Dot, FilledBarChart, FilledBarChart.Bar, HollowDot, HorizontalBarChart, HorizontalBarChart.Bar, HorizontalStackedBarChart, HorizontalStackedBarChart.StackValue, Keys, Label, Legend, LineChart, LineChart.LineStyle, PieChart, PieChart.Slice, RadarAxis, RadarAxis.RadarLabels, ScatterChart, Shape, Shape.Point, SimpleComboValue, SketchBarChart, SketchBarChart.SketchBar, Slate, SolidDot, StackedBarChart, StackedBarChart.StackValue, Star, Text, Theme, Time, ToolTip, TreeStoreModel, XAxis, XAxis.XLabels, YAxis
public interface ModelData
Primary interface for GXT model objects without support events. Models
support a form of "introspection" as property names and values can be
retrieved at runtime.
For models with event support see Model
.
For a default implementation see BaseModelData
.
Method Summary |
|
get(java.lang.String property)
Returns the named property from this model instance. |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Returns the model's properties and values as a map. |
java.util.Collection<java.lang.String> |
getPropertyNames()
Returns an collection of the model's property names. |
|
remove(java.lang.String property)
Removes the named property from this model instance. |
|
set(java.lang.String property,
X value)
Sets a property. |
get
<X> X get(java.lang.String property)
- Returns the named property from this model instance.
- Parameters:
property
- the property name
- Returns:
- the value
getProperties
java.util.Map<java.lang.String,java.lang.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
java.util.Collection<java.lang.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(java.lang.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(java.lang.String property,
X value)
- Sets a property.
- Parameters:
property
- the property namevalue
- property value
- Returns:
- the old value for the property