where is the CopyingBeanModelProvider

3 views
Skip to first unread message

FrankGWT

unread,
Jun 9, 2010, 4:14:53 PM6/9/10
to GWT Pectin
this is my first time trying to use Pectin, I pull the source code
from trunk yesterday but couldn't find the
CopyingBeanModelProvider.java. Can someone help me please? Is there a
javadoc that I can quickly lookup classes and methods?

Thanks,

Frank

FrankGWT

unread,
Jun 9, 2010, 4:22:48 PM6/9/10
to GWT Pectin
after looking at the BeanModelProvider, it looks like the method
commit(final boolean checkpoint) can commit the data but leave the
dirty state as it is. Is the CopyingBeanModelProvider mentioned in the
document replaced by this method?

Andrew

unread,
Jun 9, 2010, 6:24:25 PM6/9/10
to GWT Pectin
Yep, that's correct. Calling `commit(boolean checkpoint)` with false
will write the changes but leave the dirty state as is (this was the
main feature of CopyingBeanProvider). The dirty state will reset if
you call `checkpoint()` or load a new bean using `setValue(T)`.

Currently there's no javadoc download, and the javadoc is pretty
sparse. The release notes have some info about the new features/
changes in the upcoming 0.8 release.

Cheers
Andrew
Reply all
Reply to author
Forward
0 new messages