/* CellDisplayLoaderImpl.java

{{IS_NOTE
	Purpose:
		
	Description:
		
	History:
		2013/8/7 , Created by dennis
}}IS_NOTE

Copyright (C) 2013 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
}}IS_RIGHT
*/
package org.zkoss.zssex.ui.impl;

import java.io.Serializable;

import org.zkoss.zss.model.SCellStyle;
import org.zkoss.zss.model.SConditionalStyle;
import org.zkoss.zss.model.SSheet;
import org.zkoss.zss.model.sys.format.FormatResult;
import org.zkoss.zss.ui.impl.CellFormatHelper;
import org.zkoss.zss.ui.sys.CellDisplayLoader;

/**
 * @author dennis
 * @since 3.0.0
 */
//migrate from ose to ee
public class CellDisplayLoaderImpl implements CellDisplayLoader, Serializable {
	private static final long serialVersionUID = 3468310609186026093L;

	/* (non-Javadoc)
	 * @see org.zkoss.zss.ui.sys.RichCellContentLoader#getCellHtmlText(org.zkoss.zss.model.sys.XSheet, int, int)
	 */
	@Override
	public String getCellHtmlText(SSheet sheet, int row, int column) {
		return CellFormatHelper.getRichCellHtmlText(sheet, row, column); 
	}

	@Override
	@Deprecated
	public String getCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle) {//ZSS-1018
		return getCellHtmlText(sheet, row, column, ft, tbStyle, null);
	}
	
	@Override
	//@since 3.9.0
	//ZSS-1142
	public String getCellHtmlText(SSheet sheet, int row, int column, FormatResult ft, SCellStyle tbStyle, SConditionalStyle cdStyle) {//ZSS-1142
		return CellFormatHelper.getRichCellHtmlText(sheet, row, column, ft, tbStyle, cdStyle); 
	}
}
