Interface IModel
-
- All Known Implementing Classes:
DescriptionModel
public interface IModelInterface for listened models.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(IModelChangedListener pListener)Add a model listener.booleanisDirty()voidremoveListener(IModelChangedListener pListener)Remove a model listener.voidsetSuspendEvent(boolean pSuspend)
-
-
-
Method Detail
-
addListener
void addListener(IModelChangedListener pListener)
Add a model listener.- Parameters:
pListener- the listener to add
-
removeListener
void removeListener(IModelChangedListener pListener)
Remove a model listener.- Parameters:
pListener- the listener to remove
-
isDirty
boolean isDirty()
- Returns:
- whether the model has been changed without being saved or not.
-
setSuspendEvent
void setSuspendEvent(boolean pSuspend)
- Parameters:
pSuspend-trueto suspend the events for the model
-
-