From 81b57acb7debe3ab9a6f1c5e1b94dcc8a996410c Mon Sep 17 00:00:00 2001 From: mjudd Date: Fri, 22 Jun 2007 19:59:05 +0000 Subject: [PATCH] Feature Request http://sourceforge.net/tracker/index.php?func=detail&aid=1741222&group_id=176962&atid=879335 --- .../src/org/compiere/grid/ed/VLocation.java | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/grid/ed/VLocation.java b/client/src/org/compiere/grid/ed/VLocation.java index 7c250e73dc..945cd84644 100644 --- a/client/src/org/compiere/grid/ed/VLocation.java +++ b/client/src/org/compiere/grid/ed/VLocation.java @@ -36,6 +36,8 @@ import org.compiere.util.*; public class VLocation extends JComponent implements VEditor, ActionListener { + int m_WindowNo = 0; + /** * Constructor * @@ -55,6 +57,7 @@ public class VLocation extends JComponent // LookAndFeel.installBorder(this, "TextField.border"); this.setLayout(new BorderLayout()); + // Size this.setPreferredSize(m_text.getPreferredSize()); // causes r/o to be the same length int height = m_text.getPreferredSize().height; @@ -86,7 +89,22 @@ public class VLocation extends JComponent popupMenu.add(mDelete); } // VLocation - + /** + * Constructor + * + * @param columnName column name + * @param mandatory mandatory + * @param isReadOnly read only + * @param isUpdateable updateable + * @param mLocation location model + */ + public VLocation(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable, + MLocationLookup mLocation, int windowno) + { + this(columnName, mandatory, isReadOnly, isUpdateable, mLocation); + m_WindowNo = windowno; + + } /** * Dispose */ @@ -269,7 +287,7 @@ public class VLocation extends JComponent // log.config( "actionPerformed - " + m_value); VLocationDialog ld = new VLocationDialog(Env.getFrame(this), - Msg.getMsg(Env.getCtx(), "Location"), m_value); + Msg.getMsg(Env.getCtx(), "Location"), m_value, m_WindowNo); ld.setVisible(true); m_value = ld.getValue(); //