}
@Override
public void setValueAt(java.lang.Object aValue, int rowIndex,
int columnIndex) {
Product i = data.get(rowIndex);
switch (columnIndex) {
/*
* case 0: i.id = (String) aValue; break;
*/
case 1:
try {
i.setDescription((String) aValue);
setDescription = new ChangeProductDescription();
setDescription.setId(i.getId());
setDescription.setDescription((String) aValue);
adminStub.changeProductDescription(setDescription);
} catch (RemoteException e) {
e.printStackTrace(System.err);
} catch (ChangeProductDescriptionFault e) {
e.printStackTrace(System.err);
}
break;
case 2:
try {
i.setPrice((Double) aValue);
setPrice = new ChangeProductPrice();
setPrice.setId(i.getId());
setPrice.setPrice((Double) aValue);
adminStub.changeProductPrice(setPrice);
} catch (RemoteException e) {
e.printStackTrace(System.err);
} catch (ChangeProductPriceFault e) {
e.printStackTrace(System.err);
}
break;
case 3:
try {
i.setLocation((String) aValue);
setLocation = new ChangeProductLocation();
setLocation.setId(i.getId());
setLocation.setLocation((String) aValue);
adminStub.changeProductLocation(setLocation);
} catch (RemoteException e) {
e.printStackTrace(System.err);
} catch (ChangeProductLocationFault e) {