Package stub.ItemAdminStub

Examples of stub.ItemAdminStub.Product


    }
  }

  @Override
  public java.lang.Object getValueAt(int rowIndex, int columnIndex) {
    Product i = data.get(rowIndex);
    switch (columnIndex) {
    case 0:
      return i.getId();
    case 1:
      return i.getDescription();
    case 2:
      return i.getPrice();
    case 3:
      return i.getLocation();
    default:
      return new java.lang.Object();
    }
  }
View Full Code Here


  }

  @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) {
View Full Code Here

    }
    fireTableCellUpdated(rowIndex, columnIndex);
  }

  public void moveToLocation(String location, int rowIndex) {
    Product i = data.get(rowIndex);
    try {
      i.setLocation((String) location);
      setLocation = new ChangeProductLocation();
      setLocation.setId(i.getId());
      setLocation.setLocation((String) location);
      adminStub.changeProductLocation(setLocation);
    } catch (RemoteException e) {
      e.printStackTrace(System.err);
    } catch (ChangeProductLocationFault e) {
View Full Code Here

TOP

Related Classes of stub.ItemAdminStub.Product

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.