IDEMPIERE-2007 Detail Pane: Reduce vertical space use by paging control. Fixed problem with the # records message.

This commit is contained in:
Heng Sin Low 2014-06-22 22:24:34 +08:00
parent c20843f6d0
commit 023ce77c89
2 changed files with 6 additions and 1 deletions

View File

@ -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);
}

View File

@ -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))