diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java index df7ae65c4c..5d0a29ae95 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java @@ -71,6 +71,7 @@ import org.adempiere.webui.event.DialogEvents; import org.adempiere.webui.event.ValueChangeEvent; import org.adempiere.webui.event.ValueChangeListener; import org.adempiere.webui.factory.ButtonFactory; +import org.adempiere.webui.panel.StatusBarPanel; import org.adempiere.webui.part.MultiTabPart; import org.adempiere.webui.theme.ThemeManager; import org.adempiere.webui.util.ZKUpdateUtil; @@ -236,6 +237,10 @@ public class FindWindow extends Window implements EventListener, ValueCha private static final String ON_POST_VISIBLE_ATTR = "onPostVisible.Event.Posted"; + /** START DEVCOFFEE **/ + private StatusBarPanel statusBar = new StatusBarPanel(); + /** END DEVCOFFEE **/ + /** * FindPanel Constructor * @param targetWindowNo targetWindowNo @@ -622,6 +627,9 @@ public class FindWindow extends Window implements EventListener, ValueCha winMain.addTab(tabPanel, Msg.getMsg(Env.getCtx(), "Advanced").replaceAll("&", ""), false, false); initSimple(); initAdvanced(); + /** START DEVCOFFEE **/ + layout.appendChild(statusBar); + /** START DEVCOFFEE **/ } // initPanel @@ -801,6 +809,11 @@ public class FindWindow extends Window implements EventListener, ValueCha gridFieldList = null; m_total = getNoOfRecords(null, false); + /** START DEVCOFFEE **/ + // Get Total + setStatusDB (m_total); + statusBar.setStatusLine(""); + /** END DEVCOFFEE **/ } // initFind /** @@ -2568,6 +2581,18 @@ public class FindWindow extends Window implements EventListener, ValueCha public boolean isValid() { return isvalid; - } - + } + + /** START DEVCOFFEE **/ + /** + * Display current count + * @param currentCount String representation of current/total + */ + private void setStatusDB (int currentCount) + { + StringBuilder text = new StringBuilder(" ").append(currentCount).append(" / ").append(m_total).append(" "); + statusBar.setStatusDB(text.toString()); + } // setDtatusDB + /** END DEVCOFFEE **/ + } // FindPanel \ No newline at end of file