From 023ce77c89f54c1b212190ef6e6bba74f6bdf6bb Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Sun, 22 Jun 2014 22:24:34 +0800 Subject: [PATCH] IDEMPIERE-2007 Detail Pane: Reduce vertical space use by paging control. Fixed problem with the # records message. --- .../org/adempiere/webui/adwindow/AbstractADWindowContent.java | 3 ++- .../src/org/adempiere/webui/adwindow/CompositeADTabbox.java | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index a3b37faf9e..fe1eda60bf 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -1360,7 +1360,8 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements if (GridTab.DEFAULT_STATUS_MESSAGE.equals(e.getAD_Message())) { if (detailTab) { - adTabbox.setDetailPaneStatusMessage("", false); + String msg = e.getTotalRows() + " " + Msg.getMsg(Env.getCtx(), "Records"); + adTabbox.setDetailPaneStatusMessage(msg, false); } else { statusBar.setStatusLine ("", false); } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java index f9d8425c62..cd733dfd6d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java @@ -581,7 +581,11 @@ public class CompositeADTabbox extends AbstractADTabbox selectDetailPanel.switchRowPresentation(); } if (selectDetailPanel instanceof ADTabpanel) + { ((ADTabpanel)selectDetailPanel).activated = true; + String msg = ((ADTabpanel)selectDetailPanel).getGridTab().getRowCount() + " " + Msg.getMsg(Env.getCtx(), "Records"); + setDetailPaneStatusMessage(msg, false); + } if (selectDetailPanel.getGridTab().isTreeTab()) { if (selectDetailPanel.getGridTab().getTreeDisplayedOn().equals(MTab.TREEDISPLAYEDON_MasterTab))