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

📄 showtest.java

📁 一个基于ext的ajax小例子
💻 JAVA
字号:
/**
 * 
 */
package com.myext.dwrfacade;

import com.myext.model.Article;
import com.myext.model.Author;
import com.myext.model.ShowArticleList;

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

	public ShowArticleList getItems(int start, int count, String orderBy) {
		ShowArticleList articleList = new ShowArticleList();
		Object[] data = new Object[count];
		for (int i = 0; i < count; i++) {
			Article article = new Article((start + i), "title" + (start + i),
					"test contents" + (start + i), new Author("test"
							+ (start + i), "test" + (start + i) + "@gmail.com"));
			data[i] = article;
		}
		articleList.setData(data);
		articleList.setTotalSize(100);
		return articleList;
	}
}

⌨️ 快捷键说明

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