itemsummaryview.java
来自「《基于Eclipse的开源框架技术与实战》[第5章]随书源码」· Java 代码 · 共 74 行
JAVA
74 行
package com.free.struts.storefront.catalog.view;import com.free.struts.storefront.framework.view.BaseView;/** * <p>Title: Eclipse Plugin Development</p> * <p>Description: Free download</p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: Free</p> * @author gan.shu.man * @version 1.0 */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 + -
显示快捷键?