this.start = 0;
this.oncallnext.sendEvent();
if (this._selected != null) {
this._selected.deselect();
}
if (this._selected != null) {
this._selected.deselect();
}
this._selected = itemObj;
this._selected.select();
var newMaxPages = Math.floor(this.records/this.step);
if ($debug) Debug.write("calllast 1 ",newMaxPages);
this.start = newMaxPages*this.step;
if ($debug) Debug.write("calllast 2 ",this.start);
if (this.start == this.records) {
this.start = this.records-this.step;
}
if ($debug) Debug.write("calllast 3 ",this.start);
if ($debug) Debug.write("calllast 4 ",this.records);
this.oncallnext.sendEvent();
this.onload.sendEvent();
//this.start = this.records-this.step;
//this.oncallnext.sendEvent();
this._next1.setAttribute('enabled',false);
this._pre2.setAttribute('enabled',false);
if (this.records>(this.start+this.step)){
this.start+=this.step;
}
this.oncallnext.sendEvent();
this._next1.setAttribute('enabled',false);
this._pre2.setAttribute('enabled',false);
if (this.start>0){
this.start-=this.step;
}
this.oncallpre.sendEvent();
(this.start+this.step)){
this._next1.setAttribute('enabled',true);
} else {
this._next1.setAttribute('enabled',false);
}
if (this.start>0){
this._pre2.setAttribute('enabled',true);
} else {
this._pre2.setAttribute('enabled',false);
}
this._records.setAttribute('text',this.start + ' - ' +(this.start+this.step) + ' ' + canvas.getLabelName(272) + ' ' + this.records);
]]>
new lz.turnOverListHeaderItem(this._innerlisthead._inn,{labelid:labelid,width:width,subviewsid:this._innerlisthead._inn.subviews.length});
new lz.turnOverListHeaderItemOrdered(this._innerlisthead._inn,{
labelid:labelid,width:width,
orderBy:orderBy,asc:asc,isSelected:isSelected,
subviewsid:this._innerlisthead._inn.subviews.length
});
for (var eg in this._innerlisthead._inn.subviews) {
this._innerlisthead._inn.subviews[eg].onwidth.sendEvent(this._innerlisthead._inn.subviews[eg].width);
}
this._selected = null;
this._innerlist._inn._inn.destroy();
new lz.innerList(this._innerlist._inn,{name:'_inn'});
parent.callfirst();
parent.callpre();
if (this.sendEventToReload){
parent.setAttribute('step',Number(this.getValue()));
}
this.selectItem(String(parent.step));
this.sendEventToReload = true;
parent.callnext();
parent.calllast();