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 Summary
Fields Modifier and Type Field Description protected Map<String,WEditor>
editorMap
protected boolean
isHasNextPage
protected CLogger
log
protected int
numPagePreLoad
protected org.zkoss.zul.Paging
paging
-
Constructor Summary
Constructors Constructor Description RelatedInfoWindow(EmbedWinInfo info, InfoWindow infoWindow, org.zkoss.zul.Paging embeddedPaging, String infoSqlCount, ColumnInfo[] layoutEmbedded, Map<String,WEditor> editorMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getCacheEnd()
protected int
getCacheStart()
String
getSortDirection(Comparator<Object> cmpr)
void
onEvent(org.zkoss.zk.ui.event.Event event)
void
refresh(Object id)
void
sort(Comparator<Object> cmpr, boolean ascending)
protected void
validateEndPage()
after query from database, process validate.
-
-
-
Constructor Detail
-
RelatedInfoWindow
public RelatedInfoWindow(EmbedWinInfo info, InfoWindow infoWindow, org.zkoss.zul.Paging embeddedPaging, String infoSqlCount, ColumnInfo[] layoutEmbedded, Map<String,WEditor> editorMap)
- Parameters:
infoWindow
-embeddedPaging
-layoutEmbedded
-
-
-
Method Detail
-
refresh
public void refresh(Object id)
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
getCacheStart
protected int getCacheStart()
- Returns:
- the cacheStart
-
getCacheEnd
protected int getCacheEnd()
- Returns:
- the cacheEnd
-
sort
public void sort(Comparator<Object> cmpr, boolean ascending)
- Specified by:
sort
in interfaceorg.zkoss.zul.ext.Sortable<Object>
-
getSortDirection
public String getSortDirection(Comparator<Object> cmpr)
- Specified by:
getSortDirection
in interfaceorg.zkoss.zul.ext.Sortable<Object>
-
validateEndPage
protected 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
-
-