partbaseaction.java

来自「JEECSM是JavaEE版网站管理系统(Java Enterprise Edi」· Java 代码 · 共 172 行

JAVA
172
字号
package com.jeecms.core;

import java.util.List;

import com.ponyjava.common.struts2.interceptor.UrlAware;
import com.ponyjava.common.web.PaginationSupport;

/**
 * 片段模板基类
 * <p>
 * 能够处理站点信息
 * </p>
 * 
 * @author liufang
 * 
 */
@SuppressWarnings("unchecked")
public class PartBaseAction extends FrontAction implements UrlAware {
	public static final String INNER_LIST = "n_list";
	public static final String INNER_PAGE = "n_paginatioin";
	/**
	 * 使用系统模板时,返回result的name。
	 */
	public static final String SYS_TPL = "sysTpl";
	/**
	 * 标签的前缀
	 */
	public static final String TAG_RPEFIX = "tag_";

	protected List list;
	protected PaginationSupport pagination;

	protected int count;
	protected int firstResult;
	protected int orderBy;
	protected int pageNo;
	protected String isPage;

	protected String cssClass;
	protected String cssStyle;

	protected int sysTpl;
	protected String style;
	protected String sysContent;
	protected String userContent;
	protected String sysPage;
	protected String userPage;
	protected String[] custom;

	public void setPageLink(String pageLink) {
		this.pageLink = pageLink;
	}

	public void setPageSuffix(String pageSuffix) {
		this.pageSuffix = pageSuffix;
	}

	public String[] getCustom() {
		return custom;
	}

	public void setCustom(String[] custom) {
		this.custom = custom;
	}

	public String getSysContent() {
		return sysContent;
	}

	public void setSysContent(String sysContent) {
		this.sysContent = sysContent;
	}

	public String getUserContent() {
		return userContent;
	}

	public void setUserContent(String userContent) {
		this.userContent = userContent;
	}

	public String getSysPage() {
		return sysPage;
	}

	public void setSysPage(String sysPage) {
		this.sysPage = sysPage;
	}

	public String getUserPage() {
		return userPage;
	}

	public void setUserPage(String userPage) {
		this.userPage = userPage;
	}

	public int getSysTpl() {
		return sysTpl;
	}

	public void setSysTpl(int sysTpl) {
		this.sysTpl = sysTpl;
	}

	public List getList() {
		return list;
	}

	public PaginationSupport getPagination() {
		return pagination;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(int orderBy) {
		this.orderBy = orderBy;
	}

	public String getIsPage() {
		return isPage;
	}

	public void setIsPage(String isPage) {
		this.isPage = isPage;
	}

	public int getFirstResult() {
		return firstResult;
	}

	public void setFirstResult(int firstResult) {
		this.firstResult = firstResult;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	@Override
	public void setPathParams(String[] pathParams) {
		// do nothing
	}

	@Override
	public void setWholeUrl(String wholeUrl) {
		// do nothing
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}
}

⌨️ 快捷键说明

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