crosscol.java

来自「sample目录下是例子程序。 1.分组汇总例子 TestGroupRep」· Java 代码 · 共 111 行

JAVA
111
字号
package com.lucaslee.report.model.crosstable;

import com.lucaslee.report.grouparithmetic.GroupArithmetic;

/**
 * 交叉表中的交叉部分。
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2003
 * </p>
 * <p>
 * Company:Lucas-lee Soft
 * </p>
 * 
 * @author Lucas Lee
 * @version 1.0
 */
public class CrossCol {
	public CrossCol() {
	}

	/**
	 * 
	 * @param index
	 *            交叉部分在原始表格数据中的列序号
	 * @param headerText
	 *            说明文字
	 * @param arith
	 *            交叉部分的汇总算法
	 */
	public CrossCol(int index, String headerText, GroupArithmetic arith) {
		this.index = index;
		this.headerText = headerText;
		this.arith = arith;
	}

	/**
	 * 交叉部分在原始表格数据中的列序号。
	 */
	private int index;

	/**
	 * 汇总算法。
	 */
	private GroupArithmetic arith;

	/**
	 * 说明文字。
	 */
	private String headerText;

	/**
	 * 获得说明文字
	 * 
	 * @return
	 */
	public String getHeaderText() {
		return headerText;
	}

	/**
	 * 设置说明文字
	 * 
	 * @param headerText
	 */
	public void setHeaderText(String headerText) {
		this.headerText = headerText;
	}

	/**
	 * 获得交叉部分在原始表格数据中的列序号。
	 * 
	 * @return
	 */
	public int getIndex() {
		return index;
	}

	/**
	 * 获得交叉部分的汇总算法。
	 * 
	 * @return
	 */
	public GroupArithmetic getArith() {
		return arith;
	}

	/**
	 * 设置交叉部分在原始表格数据中的列序号。
	 * 
	 * @param index
	 */
	public void setIndex(int index) {
		this.index = index;
	}

	/**
	 * 设置交叉部分的汇总算法。
	 * 
	 * @param arith
	 */
	public void setArith(GroupArithmetic arith) {
		this.arith = arith;
	}

}

⌨️ 快捷键说明

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