IDEMPIERE-442 Unable to highlight and delete text in "Lookup" box - remove draggable setting in the "Lookup" search box
This commit is contained in:
parent
9001929ae1
commit
7f1a780111
|
@ -13,12 +13,13 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.adempiere.webui.dashboard;
|
package org.adempiere.webui.dashboard;
|
||||||
|
|
||||||
|
import static org.compiere.model.SystemIDs.TREE_MENUPRIMARY;
|
||||||
|
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
|
|
||||||
import org.adempiere.util.Callback;
|
import org.adempiere.util.Callback;
|
||||||
import org.adempiere.webui.adwindow.ADWindow;
|
import org.adempiere.webui.adwindow.ADWindow;
|
||||||
import org.adempiere.webui.exception.ApplicationException;
|
import org.adempiere.webui.exception.ApplicationException;
|
||||||
import org.adempiere.webui.panel.TreeSearchPanel;
|
|
||||||
import org.adempiere.webui.session.SessionManager;
|
import org.adempiere.webui.session.SessionManager;
|
||||||
import org.adempiere.webui.window.FDialog;
|
import org.adempiere.webui.window.FDialog;
|
||||||
import org.compiere.model.GridTab;
|
import org.compiere.model.GridTab;
|
||||||
|
@ -26,7 +27,6 @@ import org.compiere.model.MMenu;
|
||||||
import org.compiere.model.MQuery;
|
import org.compiere.model.MQuery;
|
||||||
import org.compiere.model.MTree;
|
import org.compiere.model.MTree;
|
||||||
import org.compiere.model.MTreeNode;
|
import org.compiere.model.MTreeNode;
|
||||||
import static org.compiere.model.SystemIDs.*;
|
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.Msg;
|
import org.compiere.util.Msg;
|
||||||
|
@ -38,7 +38,6 @@ import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zk.ui.event.Events;
|
import org.zkoss.zk.ui.event.Events;
|
||||||
import org.zkoss.zul.A;
|
import org.zkoss.zul.A;
|
||||||
import org.zkoss.zul.Box;
|
import org.zkoss.zul.Box;
|
||||||
import org.zkoss.zul.Combobox;
|
|
||||||
import org.zkoss.zul.Hbox;
|
import org.zkoss.zul.Hbox;
|
||||||
import org.zkoss.zul.Image;
|
import org.zkoss.zul.Image;
|
||||||
import org.zkoss.zul.Label;
|
import org.zkoss.zul.Label;
|
||||||
|
@ -217,24 +216,6 @@ public class DPFavourites extends DashboardPanel implements EventListener<Event>
|
||||||
|
|
||||||
addItem(treeitem);
|
addItem(treeitem);
|
||||||
}
|
}
|
||||||
else if(dragged instanceof Combobox)
|
|
||||||
{
|
|
||||||
TreeSearchPanel tsp = null;
|
|
||||||
Component parent = dragged.getParent();
|
|
||||||
while(tsp == null && parent != null) {
|
|
||||||
if (parent instanceof TreeSearchPanel) {
|
|
||||||
tsp = (TreeSearchPanel) parent;
|
|
||||||
} else {
|
|
||||||
parent = parent.getParent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (tsp != null) {
|
|
||||||
Treeitem treeitem = tsp.getSelectedItem();
|
|
||||||
if (treeitem != null) {
|
|
||||||
addItem(treeitem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if(comp instanceof Image)
|
else if(comp instanceof Image)
|
||||||
{
|
{
|
||||||
|
@ -243,7 +224,7 @@ public class DPFavourites extends DashboardPanel implements EventListener<Event>
|
||||||
A btn = (A) dragged;
|
A btn = (A) dragged;
|
||||||
removeLink(btn);
|
removeLink(btn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue