itemsummaryview.java

来自「一个netstore的完整代码,他使用了j2ee和webservice技术,并使」· Java 代码 · 共 65 行

JAVA
65
字号
package netstore.catalog.view;

import netstore.framework.view.BaseView;

public class ItemSummaryView extends BaseView {
  /**
   * The base price of the item.
   */
  private Double unitPrice = null;
  /**
   * A short statement listing a feature of the item.
   */
  private String productFeature;
  /**
   * A path to a small image stored on the web server.
   */
  private String smallImageURL;
  private String modelNumber;


  /**
   * A no arg constructor.
   */
  public ItemSummaryView(){
    super();
  }

  public ItemSummaryView(String id, String name, String description,
    Double price, String feature, String smallImageURL ) {
    super( id, name, description );
    setUnitPrice( price );
    setProductFeature( feature );
    setSmallImageURL( smallImageURL );
  }

  public Double getUnitPrice() {
    return unitPrice;
  }

  public void setUnitPrice( Double price ){
    this.unitPrice = price;
  }

  public void setSmallImageURL(String newSmallImageURL) {
    smallImageURL = newSmallImageURL;
  }

  public String getProductFeature() {
    return productFeature;
  }

  public String getSmallImageURL() {
    return smallImageURL;
  }

  public void setProductFeature(String newProductFeature) {
    productFeature = newProductFeature;
  }
  public void setModelNumber(String modelNumber) {
    this.modelNumber = modelNumber;
  }
  public String getModelNumber() {
    return modelNumber;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?