📄 itemsummaryview.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -