IDEMPIERE-1106 Zk: Locator field seems editable.
This commit is contained in:
parent
f46eecc5ca
commit
dd40704ba2
|
@ -95,10 +95,10 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
|
||||||
setColumnName(columnName);
|
setColumnName(columnName);
|
||||||
m_mLocator = mLocator;
|
m_mLocator = mLocator;
|
||||||
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator16.png"));
|
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator16.png"));
|
||||||
|
getComponent().getTextbox().setReadonly(true);
|
||||||
|
|
||||||
m_WindowNo = windowNo; //Yvonne: move it b4 setDefault_Locator_ID()
|
m_WindowNo = windowNo; //Yvonne: move it b4 setDefault_Locator_ID()
|
||||||
setDefault_Locator_ID(); // set default locator, teo_sarca [ 1661546 ]
|
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();
|
m_mLocator = (MLocatorLookup)gridField.getLookup();
|
||||||
|
|
||||||
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator16.png"));
|
getComponent().setButtonImage(ThemeManager.getThemeResource("images/Locator16.png"));
|
||||||
|
getComponent().getTextbox().setReadonly(true);
|
||||||
|
|
||||||
setDefault_Locator_ID(); // set default locator, teo_sarca [ 1661546 ]
|
setDefault_Locator_ID(); // set default locator, teo_sarca [ 1661546 ]
|
||||||
|
|
||||||
|
@ -185,6 +186,7 @@ public class WLocatorEditor extends WEditor implements EventListener<Event>, Pro
|
||||||
@Override
|
@Override
|
||||||
public void setReadWrite(boolean readWrite) {
|
public void setReadWrite(boolean readWrite) {
|
||||||
getComponent().setEnabled(readWrite);
|
getComponent().setEnabled(readWrite);
|
||||||
|
getComponent().getTextbox().setReadonly(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue