public int getActivePage() {
return _actpg;
}
public void setActivePage(int pg) throws WrongValueException {
if (pg >= _npg || pg < 0)
throw new WrongValueException("Unable to set active page to "+pg+" since only "+_npg+" pages");
if (_actpg != pg) {
_actpg = pg;
smartUpdate("activePage", pg);
Events.postEvent(new PagingEvent("onPagingImpl", this, _actpg));
//onPagingImpl is used for implementation purpose only