From: David T. <dav...@us...> - 2003-06-22 11:24:29
|
Update of /cvsroot/wonder/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions In directory sc8-pr-cvs1:/tmp/cvs-serv21647 Modified Files: ERXBatchNavigationBar.java Log Message: objectCount for ERXBatchingDisplayGroup compatibility Index: ERXBatchNavigationBar.java =================================================================== RCS file: /cvsroot/wonder/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXBatchNavigationBar.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ERXBatchNavigationBar.java 6 May 2003 10:35:24 -0000 1.9 --- ERXBatchNavigationBar.java 22 Jun 2003 11:24:25 -0000 1.10 *************** *** 118,120 **** --- 118,128 ---- } + + public int objectCount() { + if (displayGroup() instanceof ERXBatchingDisplayGroup) { + return ((ERXBatchingDisplayGroup)displayGroup()).rowCount(); + } else { + return displayGroup().allObjects().count(); + } + } } |