From abf98bcc7208760ed7dae97809f20ebbb4190217 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 12 Nov 2009 04:23:33 +0000 Subject: [PATCH] https://sourceforge.net/tracker/index.php?func=detail&aid=2800256&group_id=176962&atid=955896 - tab help not shown --- .../src/org/adempiere/webui/component/ADButtonTabList.java | 1 + .../src/org/adempiere/webui/component/ADTabListModel.java | 6 ++++++ .../src/org/adempiere/webui/component/CompositeADTab.java | 5 +++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/component/ADButtonTabList.java b/zkwebui/WEB-INF/src/org/adempiere/webui/component/ADButtonTabList.java index 3fcc7aa7fb..f2e65dcf29 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/component/ADButtonTabList.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/component/ADButtonTabList.java @@ -72,6 +72,7 @@ public class ADButtonTabList extends Panel implements IADTabList, EventListener for (int i = 0; i < items.length; i++) { ADTabLabel tabLabel = (ADTabLabel) items[i]; Button button = new Button(); + button.setDynamicProperty("Title", tabLabel.description); Text text = new Text(tabLabel.label); button.appendChild(text); int s = tabbox.getSelectedIndex(); diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/component/ADTabListModel.java b/zkwebui/WEB-INF/src/org/adempiere/webui/component/ADTabListModel.java index d317e810fa..b147442ef6 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/component/ADTabListModel.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/component/ADTabListModel.java @@ -47,11 +47,17 @@ public class ADTabListModel extends AbstractListModel implements ListitemRendere public static class ADTabLabel { public String label; public int tabLevel; + public String description; public ADTabLabel(String label, int tabLevel) { this.label = label; this.tabLevel = tabLevel; } + + public ADTabLabel(String label, int tabLevel, String description) { + this(label,tabLevel); + this.description = description; + } } public void render(Listitem item, Object data) throws Exception { diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/component/CompositeADTab.java b/zkwebui/WEB-INF/src/org/adempiere/webui/component/CompositeADTab.java index 74942b3ae6..9bbbbe7039 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/component/CompositeADTab.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/component/CompositeADTab.java @@ -39,7 +39,8 @@ import org.zkoss.zul.Div; public class CompositeADTab extends AbstractADTab { /** Logger */ - private static CLogger log = CLogger.getCLogger (CompositeADTab.class); + @SuppressWarnings("unused") + private static CLogger log = CLogger.getCLogger (CompositeADTab.class); private List tabLabelList = new ArrayList(); @@ -70,7 +71,7 @@ public class CompositeADTab extends AbstractADTab tabPanel.setParent(div); tabPanel.setVisible(false); - ADTabListModel.ADTabLabel tabLabel = new ADTabListModel.ADTabLabel(gTab.getName(), gTab.getTabLevel()); + ADTabListModel.ADTabLabel tabLabel = new ADTabListModel.ADTabLabel(gTab.getName(), gTab.getTabLevel(),gTab.getDescription()); tabLabelList.add(tabLabel); }