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

All Known Subinterfaces:
Model, TreeModel<T>
All Known Implementing Classes:
BaseModel, BaseTreeModel, BeanModel, ChangeEventSupport

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 beed 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 beed 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