IDEMPIERE-1106 Zk: Locator field seems editable.

This commit is contained in:
Heng Sin Low 2013-06-25 16:17:30 +08:00
parent f46eecc5ca
commit dd40704ba2
1 changed files with 4 additions and 2 deletions

View File

@ -95,10 +95,10 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
setColumnName(columnName);
m_mLocator = mLocator;
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator16.png"));
getComponent().getTextbox().setReadonly(true);
m_WindowNo = windowNo; //Yvonne: move it b4 setDefault_Locator_ID()
setDefault_Locator_ID(); // set default locator, teo_sarca [ 1661546 ]
}
/**
@ -109,6 +109,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
m_mLocator = (MLocatorLookup)gridField.getLookup();
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator16.png"));
getComponent().getTextbox().setReadonly(true);
setDefault_Locator_ID(); // set default locator, teo_sarca [ 1661546 ]
@ -118,7 +119,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
{
popupMenu = new WEditorPopupMenu(true, true, isShowPreference());
addChangeLogMenu(popupMenu);
}
}
}
public void setValue(Object value)
@ -185,6 +186,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
@Override
public void setReadWrite(boolean readWrite) {
getComponent().setEnabled(readWrite);
getComponent().getTextbox().setReadonly(true);
}
/**