Package org.adempiere.webui.info
Class RelatedInfoWindow
- java.lang.Object
- 
- org.adempiere.webui.info.RelatedInfoWindow
 
- 
- All Implemented Interfaces:
- org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>,- org.zkoss.zul.ext.Sortable<Object>
 
 public class RelatedInfoWindow extends Object implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, org.zkoss.zul.ext.Sortable<Object> - Author:
- hengsin
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Map<String,WEditor>editorMapprotected booleanisHasNextPageprotected CLoggerlogprotected intnumPagePreLoadprotected org.zkoss.zul.Pagingpaging
 - 
Constructor SummaryConstructors Constructor Description RelatedInfoWindow(EmbedWinInfo info, InfoWindow infoWindow, org.zkoss.zul.Paging embeddedPaging, String infoSqlCount, ColumnInfo[] layoutEmbedded, Map<String,WEditor> editorMap)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetCacheEnd()protected intgetCacheStart()StringgetSortDirection(Comparator<Object> cmpr)voidonEvent(org.zkoss.zk.ui.event.Event event)voidrefresh(Object id)voidsort(Comparator<Object> cmpr, boolean ascending)protected voidvalidateEndPage()after query from database, process validate.
 
- 
- 
- 
Constructor Detail- 
RelatedInfoWindowpublic RelatedInfoWindow(EmbedWinInfo info, InfoWindow infoWindow, org.zkoss.zul.Paging embeddedPaging, String infoSqlCount, ColumnInfo[] layoutEmbedded, Map<String,WEditor> editorMap) - Parameters:
- infoWindow-
- embeddedPaging-
- layoutEmbedded-
 
 
- 
 - 
Method Detail- 
refreshpublic void refresh(Object id) 
 - 
onEventpublic void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception- Specified by:
- onEventin interface- org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
- Exception
 
 - 
getCacheStartprotected int getCacheStart() - Returns:
- the cacheStart
 
 - 
getCacheEndprotected int getCacheEnd() - Returns:
- the cacheEnd
 
 - 
sortpublic void sort(Comparator<Object> cmpr, boolean ascending) - Specified by:
- sortin interface- org.zkoss.zul.ext.Sortable<Object>
 
 - 
getSortDirectionpublic String getSortDirection(Comparator<Object> cmpr) - Specified by:
- getSortDirectionin interface- org.zkoss.zul.ext.Sortable<Object>
 
 - 
validateEndPageprotected void validateEndPage() after query from database, process validate. if end page include in cache, process calculate total record if current page is out of page (no record is query) process query count to detect end page
 
- 
 
-