From 661f0ba5ef80d3593622c04a135b397e56aa5c37 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 18 Jan 2008 00:25:27 +0000 Subject: [PATCH] * minor - added one utility method --- base/src/org/compiere/model/GridWindow.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/base/src/org/compiere/model/GridWindow.java b/base/src/org/compiere/model/GridWindow.java index 78f7ff4539..e20d4faa44 100644 --- a/base/src/org/compiere/model/GridWindow.java +++ b/base/src/org/compiere/model/GridWindow.java @@ -279,6 +279,11 @@ public class GridWindow implements Serializable return null; return (GridTab)m_tabs.get(i); } // getTab + + public int getTabIndex(GridTab tab) + { + return m_tabs.indexOf(tab); + } /** * Get Window_ID