}
@Override
public void onCellClicked(Object item, JTable addressTable, MouseEvent e)
{
AddressClientManager acm = (AddressClientManager) Engine.instance().getManager(AddressClientManager.ID);
AddressClientService acs = (AddressClientService) Engine.instance().getManager(AddressClientService.ID);
Address address = (Address) item;
address.setPhoneNumbers(acs.listPhoneNumbers(address.getStoreId(), address.getId()));
JPopupMenu menu = new JPopupMenu();
for (IMenuItemProvider itemProvider : acm.getAddressTableActionMenuItemProviders())
{
menu.add(itemProvider.create(address));
}
menu.show(addressTable, (int) e.getPoint().getX(), (int) e.getPoint().getY());