IDEMPIERE-5935 - Fixes non-updatable product info window subtabs to auto-select first record functionality (#2114)
This commit is contained in:
parent
83abb13877
commit
bd41a5d8e8
|
@ -33,10 +33,12 @@ import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.LinkedHashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.Set;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
@ -3548,6 +3550,11 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
|
||||||
|
|
||||||
((HtmlBasedComponent)contentPanel.getSelectedItem()).focus();
|
((HtmlBasedComponent)contentPanel.getSelectedItem()).focus();
|
||||||
contentPanel.getSelectedItem().setSelected(true);
|
contentPanel.getSelectedItem().setSelected(true);
|
||||||
|
|
||||||
|
Set<Listitem> selectionList = new LinkedHashSet<>();
|
||||||
|
selectionList.add(contentPanel.getSelectedItem());
|
||||||
|
|
||||||
|
Events.postEvent(new SelectEvent<>(Events.ON_SELECT, contentPanel, selectionList));
|
||||||
}
|
}
|
||||||
|
|
||||||
setStatusSelected ();
|
setStatusSelected ();
|
||||||
|
|
Loading…
Reference in New Issue