IDEMPIERE-3726 Integrate ADempiere POS WEB / integrate partially patch from Orlando Curieles

This commit is contained in:
Carlos Ruiz 2018-06-06 10:26:28 +02:00
parent 38d72fae55
commit 2fdf5d9cd1
2 changed files with 16 additions and 3 deletions

View File

@ -40,7 +40,8 @@ public class Listbox extends org.zkoss.zul.Listbox implements EventListener<Even
/** /**
* *
*/ */
private static final long serialVersionUID = 2102597724705225997L; private static final long serialVersionUID = -3713350125429939476L;
private List<EventListener<Event>> doubleClickListeners = new ArrayList<EventListener<Event>>(); private List<EventListener<Event>> doubleClickListeners = new ArrayList<EventListener<Event>>();
private List<EventListener<Event>> onDropListeners = new ArrayList<EventListener<Event>>(); private List<EventListener<Event>> onDropListeners = new ArrayList<EventListener<Event>>();
private boolean draggable; private boolean draggable;
@ -333,5 +334,17 @@ public class Listbox extends org.zkoss.zul.Listbox implements EventListener<Even
items.append("]"); items.append("]");
return items.toString(); return items.toString();
} }
/**
* Get selected item for the list box based on the value of list item
* @return Value of selected ListItem
*/
public Object getValue()
{
ListItem item = getSelectedItem();
return item.getValue();
}
} }

View File

@ -545,7 +545,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
} }
protected void showInfoPanel(final InfoPanel ip) { public void showInfoPanel(final InfoPanel ip) {
ip.setVisible(true); ip.setVisible(true);
ip.setStyle("border: 2px"); ip.setStyle("border: 2px");
ip.setClosable(true); ip.setClosable(true);