baseview.java
来自「《基于Eclipse的开源框架技术与实战》[第5章]随书源码」· Java 代码 · 共 59 行
JAVA
59 行
package com.free.struts.storefront.framework.view;
import java.sql.Timestamp;
/**
* <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 BaseView implements java.io.Serializable {
private String id;
private Timestamp timeCreated = null;
private String description;
private String name;
public BaseView() {
super();
setTimeCreated(new Timestamp(System.currentTimeMillis()));
}
public BaseView(String id,
String name,
String desc) {
this();
this.id = id;
this.name = name;
this.description = desc;
}
public void setName(String name) {
this.name = name;
}
public void setTimeCreated(Timestamp now) {
timeCreated = now;
}
public void setDescription(String description) {
this.description = description;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public String getId() {
return id;
}
public Timestamp getTimeCreated() {
return timeCreated;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?