|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public DirtyFlagProvider
Base interface that allows to track whether a node or model has been modified (i.e. became dirty).
Method Summary | |
---|---|
Boolean |
isDirty()
Tests whether the instance is dirty. |
unknown |
setDirty()
Marks this instance as dirty. |
unknown |
setClean()
Marks this instance as not dirty, i.e. clean. |
unknown |
addDirtyCallback(Object ctx,
Object callback,
Object[] parameters,
Boolean alwaysFire)
Adds a callback handler to be called when the instance changes its state. |
Object |
removeDirtyCallback(unknown fn)
Removes a callback handler previously added |
Method Detail |
---|
Boolean isDirty()
unknown setDirty()
unknown setClean()
unknown addDirtyCallback(Object ctx, Object callback, Object[] parameters, Boolean alwaysFire)
ctx
-
The context in which to run the callback handler Must not be null
callback
-
the callback funtion in the format of Function(Object[] passed in with addDirtyCallback)
. Must not be null
parameters
-
optional array of parameters to be passed on to the callback function. May be null
alwaysFire
-
Specifies whether to only fire when clean->dirty (set flag to false) or also fire when dirty->dirty (set flag to true)Object removeDirtyCallback(unknown fn)
callback
-
the callback funtion to be removed. Must not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |