, EventHandler, DesktopCleanup
{
+ /**
+ *
+ */
+ private static final long serialVersionUID = -7495898481342426458L;
+
private static final String IMAGES_UPARROW_PNG = "images/collapse-header.png";
private static final String IMAGES_DOWNARROW_PNG = "images/expand-header.png";
private static final String IMAGES_CONTEXT_HELP_PNG = "images/Help16.png";
- /**
- * generated serial version ID
- */
- private static final long serialVersionUID = -8203958978173990301L;
-
@SuppressWarnings("unused")
private static final CLogger logger = CLogger.getCLogger(DefaultDesktop.class);
@@ -595,6 +596,11 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
helpController.renderToolTip(gridField);
}
+ @Override
+ public void updateHelpQuickInfo(GridTab gridTab) {
+ helpController.renderQuickInfo(gridTab);
+ }
+
@Override
public ProcessDialog openProcessDialog(int processId, boolean soTrx) {
ProcessDialog pd = super.openProcessDialog(processId, soTrx);
diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/IDesktop.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/IDesktop.java
index 16b0516755..287360407d 100644
--- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/IDesktop.java
+++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/IDesktop.java
@@ -21,6 +21,7 @@ import org.adempiere.webui.component.Window;
import org.adempiere.webui.panel.ADForm;
import org.adempiere.webui.part.UIPart;
import org.compiere.model.GridField;
+import org.compiere.model.GridTab;
import org.compiere.model.MQuery;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Page;
@@ -205,6 +206,8 @@ public interface IDesktop extends UIPart {
public void updateHelpTooltip(GridField gridField);
+ public void updateHelpQuickInfo(GridTab gridTab);
+
public boolean isPendingWindow();
public void setTabTitle(String title);
diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HelpController.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HelpController.java
index 3c2f912b7c..cb9cb43fec 100644
--- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HelpController.java
+++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HelpController.java
@@ -21,6 +21,7 @@ import java.util.Properties;
import org.adempiere.exceptions.AdempiereException;
import org.adempiere.webui.desktop.IDesktop;
import org.compiere.model.GridField;
+import org.compiere.model.GridTab;
import org.compiere.model.MForm;
import org.compiere.model.MInfoWindow;
import org.compiere.model.MProcess;
@@ -59,8 +60,8 @@ import org.zkoss.zul.Vlayout;
public class HelpController
{
private Anchorlayout dashboardLayout;
- private Panel pnlToolTip, pnlContextHelp;
- private Html htmlToolTip, htmlContextHelp;
+ private Panel pnlToolTip, pnlContextHelp, pnlQuickInfo;
+ private Html htmlToolTip, htmlContextHelp, htmlQuickInfo;
public HelpController()
{
@@ -86,6 +87,20 @@ public class HelpController
dashboardColumn.appendChild(dashboardColumnLayout);
dashboardLayout.appendChild(dashboardColumn);
+ Panelchildren content = new Panelchildren();
+
+ pnlQuickInfo = new Panel();
+ pnlQuickInfo.setSclass("dashboard-widget");
+ pnlQuickInfo.setTitle(Msg.getMsg(Env.getCtx(), "QuickInfo"));
+ pnlQuickInfo.setMaximizable(false);
+ pnlQuickInfo.setCollapsible(true);
+ pnlQuickInfo.setOpen(true);
+ pnlQuickInfo.setBorder("normal");
+ dashboardColumnLayout.appendChild(pnlQuickInfo);
+ content = new Panelchildren();
+ pnlQuickInfo.appendChild(content);
+ content.appendChild(htmlQuickInfo = new Html());
+
pnlToolTip = new Panel();
pnlToolTip.setSclass("dashboard-widget");
pnlToolTip.setTitle(Msg.getMsg(Env.getCtx(), "ToolTip"));
@@ -94,7 +109,7 @@ public class HelpController
pnlToolTip.setOpen(true);
pnlToolTip.setBorder("normal");
dashboardColumnLayout.appendChild(pnlToolTip);
- Panelchildren content = new Panelchildren();
+ content = new Panelchildren();
pnlToolTip.appendChild(content);
content.appendChild(htmlToolTip = new Html());
htmlToolTip.setWidgetOverride("defaultMessage", "'"+Msg.getMsg(Env.getCtx(), "PlaceCursorIntoField")+"'");
@@ -121,6 +136,7 @@ public class HelpController
renderToolTip(null);
renderCtxHelp(X_AD_CtxHelp.CTXTYPE_Home, 0);
+ renderQuickInfo(null);
}
public void renderToolTip(GridField field)
@@ -405,6 +421,24 @@ public class HelpController
htmlContextHelp.setContent(sb.toString());
}
+ public void renderQuickInfo(GridTab gridTab) {
+ if (gridTab == null) {
+ pnlQuickInfo.setVisible(false);
+ } else {
+ String widget = gridTab.getStatusLinesWidget();
+ if (widget == null) {
+ pnlQuickInfo.setVisible(false);
+ } else {
+ pnlQuickInfo.setVisible(true);
+ StringBuilder sb = new StringBuilder();
+ sb.append("\n\n\n");
+ sb.append(widget);
+ sb.append("
\n\n");
+ htmlQuickInfo.setContent(sb.toString());
+ }
+ }
+ }
+
private String stripHtml(String htmlString, boolean all)
{
htmlString = htmlString