com.extjs.gxt.ui.client.data
Interface ChangeEventSource

All Known Subinterfaces:
Model, TreeModel
All Known Implementing Classes:
AbstractAxis, Anchor, AreaChart, BarChart, BarChart.Bar, BaseDot, BaseModel, BaseTreeModel, BeanModel, Bow, ChangeEventSupport, 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, SketchBarChart, SketchBarChart.SketchBar, SolidDot, StackedBarChart, StackedBarChart.StackValue, Star, Text, ToolTip, TreeStoreModel, XAxis, XAxis.XLabels, YAxis

public interface ChangeEventSource

Interface for object that notify listeners when changed.


Field Summary
static int Add
          Fired when a child object is added to the model (value is 10).
static int Remove
          Fired when a child object is removed from the model (value is 30).
static int Update
          Fired when the model has been updated (value is 40).
 
Method Summary
 void addChangeListener(ChangeListener... listener)
          Adds a change listener to the model.
 void notify(ChangeEvent event)
          Notifies listeners of the given change event.
 void removeChangeListener(ChangeListener... listener)
          Removes a change listener.
 void removeChangeListeners()
          Removes all change listeners.
 void setSilent(boolean silent)
          Sets whether change events are fired.
 

Field Detail

Add

static final int Add
Fired when a child object is added to the model (value is 10).

See Also:
Constant Field Values

Remove

static final int Remove
Fired when a child object is removed from the model (value is 30).

See Also:
Constant Field Values

Update

static final int Update
Fired when the model has been updated (value is 40).

See Also:
Constant Field Values
Method Detail

addChangeListener

void addChangeListener(ChangeListener... listener)
Adds a change listener to the model.

Parameters:
listener - the listener to add

removeChangeListener

void removeChangeListener(ChangeListener... listener)
Removes a change listener.

Parameters:
listener - the listener to remove

removeChangeListeners

void removeChangeListeners()
Removes all change listeners.


setSilent

void setSilent(boolean silent)
Sets whether change events are fired.

Parameters:
silent - true to disable change event, otherwise false

notify

void notify(ChangeEvent event)
Notifies listeners of the given change event.

Parameters:
event - the change event