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 Details

    • paging

      protected org.zkoss.zul.Paging paging
    • editorMap

      protected Map<String,WEditor> editorMap
    • log

      protected transient CLogger log
    • numPagePreLoad

      protected int numPagePreLoad
    • isHasNextPage

      protected boolean isHasNextPage
  • Constructor Details

    • RelatedInfoWindow

      public RelatedInfoWindow(EmbedWinInfo info, InfoWindow infoWindow, org.zkoss.zul.Paging embeddedPaging, String infoSqlCount, ColumnInfo[] layoutEmbedded, Map<String,WEditor> editorMap)
      Parameters:
      info -
      infoWindow -
      embeddedPaging -
      infoSqlCount -
      layoutEmbedded -
      editorMap -
  • Method Details

    • refresh

      public void refresh(Object id)
      Parameters:
      id -
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Throws:
      Exception
    • getCacheStart

      protected int getCacheStart()
      Returns:
      the cacheStart index
    • getCacheEnd

      protected int getCacheEnd()
      Returns:
      the cacheEnd index
    • sort

      public void sort(Comparator<Object> cmpr, boolean ascending)
      Specified by:
      sort in interface org.zkoss.zul.ext.Sortable<Object>
    • getSortDirection

      public String getSortDirection(Comparator<Object> cmpr)
      Specified by:
      getSortDirection in interface org.zkoss.zul.ext.Sortable<Object>
    • validateEndPage

      protected void validateEndPage()
      After query from database, validate paging.
      If end page included in cache, calculate record total.
      If current page is out of cache (no record is query), process query count to detect end page