IDEMPIERE-3003:Info Window - Reset button should reset grid content

This commit is contained in:
hieplq 2016-01-21 23:40:31 +07:00
parent ee89ebbd26
commit dbdc970866
2 changed files with 8 additions and 1 deletions

View File

@ -1648,6 +1648,11 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
dynamicDisplay(null);
onQueryCallback (null);
if (paging != null)
paging.setParent(null);
layout.invalidate();
}
@Override

View File

@ -733,7 +733,6 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
paging.setTotalSize(m_count);
paging.setDetailed(true);
paging.addEventListener(ZulEvents.ON_PAGING, this);
insertPagingComponent();
}
else
{
@ -782,6 +781,9 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
updateStatusBar (m_count);
setStatusSelected ();
addDoubleClickListener();
if (paging != null && paging.getParent() == null)
insertPagingComponent();
}
protected void updateStatusBar (int no){