How to override double click

Hello,
I created WindowLookup screen with entity and there is action Select to edit record. I need use it like dictionary, after double click i need take record to local variable to other actions. I try to override doubleclick action on entity. I saw its named Select action, but i cant override it ( name of method ). Is there other possibility to do it?

Hi,

I would recommend using Window.Lookup.Validator, for example:


public class CustomerBrowse extends AbstractLookup {

    @Inject
    private GroupTable<Customer> customersTable;

    @Override
    public void init(Map<String, Object> params) {
        setLookupValidator(() -> {
            System.out.println("about to return from lookup: " + customersTable.getSelected());
            return true;
        });
    }
}

It works great! But still is problem with nullException. Action in Validator is worked but select action still is empty.

Ok i found issue. I used this.openLookup, and body of that method was failed (Null reference). I left empty body and works fine.
Thx for help.