IDEMPIERE-1540 Autocomplete for field type "Search" (#89)

Fix ClassCastException
This commit is contained in:
hengsin 2020-05-30 12:53:11 +08:00 committed by GitHub
parent fc56a2a205
commit 5718645bc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -33,7 +33,6 @@ import org.adempiere.webui.adwindow.ADWindowContent;
import org.adempiere.webui.adwindow.QuickGridTabRowRenderer; import org.adempiere.webui.adwindow.QuickGridTabRowRenderer;
import org.adempiere.webui.apps.AEnv; import org.adempiere.webui.apps.AEnv;
import org.adempiere.webui.component.ComboEditorBox; import org.adempiere.webui.component.ComboEditorBox;
import org.adempiere.webui.component.Searchbox;
import org.adempiere.webui.event.ContextMenuEvent; import org.adempiere.webui.event.ContextMenuEvent;
import org.adempiere.webui.event.ContextMenuListener; import org.adempiere.webui.event.ContextMenuListener;
import org.adempiere.webui.event.DialogEvents; import org.adempiere.webui.event.DialogEvents;
@ -139,7 +138,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
*/ */
public WSearchEditor (Lookup lookup, String label, String description, boolean mandatory, boolean readonly, boolean updateable) public WSearchEditor (Lookup lookup, String label, String description, boolean mandatory, boolean readonly, boolean updateable)
{ {
super(new Searchbox(), label, description, mandatory, readonly, updateable); super(new CustomSearchBox() , label, description, mandatory, readonly, updateable);
if (lookup == null) if (lookup == null)
{ {
@ -155,7 +154,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
public WSearchEditor(String columnName, boolean mandatory, boolean readonly, boolean updateable, public WSearchEditor(String columnName, boolean mandatory, boolean readonly, boolean updateable,
Lookup lookup) Lookup lookup)
{ {
super(new Searchbox(), null, null, mandatory, readonly, updateable); super(new CustomSearchBox(), null, null, mandatory, readonly, updateable);
if (lookup == null) if (lookup == null)
{ {