⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 note.java

📁 struts框架编写的例程;学习struts的一个很好程序
💻 JAVA
字号:

package cn.edu.bit.Object;


/**
 * 
 * @author liuyu
 *2007-7-21
 */
public class Note {
	
	private int id;
	
	private String title;
	
	private String author;
	
	private String content;
	
	private String datetime;
	
	private Note(){
		
	}
	
	private Note(int id,String title,String author,String content,String datetime)
	{
		this.id = id;
		
		this.title = title;
		
		this.author = author;
		
		this.content = content;
		
		this.datetime = datetime;
	}
	
	public static Note getInstance(int id,String title,String author,String content,String datetime)
	{
		return new Note(id,title,author,content,datetime);
	}
	
	public void setId(int id)
	{
		this.id = id;
	}
	
	public int getId()
	{
		return this.id;
	}
	
	public void setTitle(String title)
	{
		this.title = title;
	}
	
	public String getTitle()
	{
		return this.title;
	}
	
	public void setAuthor(String author)
	{
		this.author = author;
	}
	
	public String getAuthor()
	{
		return this.author;
	}
	
	public void setContent(String content)
	{
		this.content = content;
	}
	
	public String getContent()
	{
		return this.content;
	}
	
	public void setDatetime(String datetime)
	{
		this.datetime = datetime;
	}
	
	public String getDatetime()
	{
		return this.datetime;
	}
	

}

⌨️ 快捷键说明

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