article.java

来自「用最新的Ext2做的UI 一个用户管理程序」· Java 代码 · 共 94 行

JAVA
94
字号
/**
 * 
 */
package com.myext.model;

/**
 * @author Administrator
 *
 */
public class Article {

	private int id;
	private String title;
	private String content;
	private Author author;

	
	
	/**
	 * 构造函数
	 */
	public Article(int id,String title, String content, Author author) {
		this.id = id;
		this.author = author;
		this.title = title;
		this.content = content;
	}

	/**
	 * get title
	 * @return the title
	 */
	public String getTitle() {
		return this.title;
	}

	/**
	 * set title
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * get content
	 * @return the content
	 */
	public String getContent() {
		return this.content;
	}

	/**
	 * set content
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * get author
	 * @return the author
	 */
	public Author getAuthor() {
		return this.author;
	}

	/**
	 * set author
	 * @param author the author to set
	 */
	public void setAuthor(Author author) {
		this.author = author;
	}

	/**
	 * get id
	 * @return the id
	 */
	public int getId() {
		return this.id;
	}

	/**
	 * set id
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

}

⌨️ 快捷键说明

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