You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
828 B
27 lines
828 B
3 years ago
|
package com.tptj.demo.hg.print.cell.value.provider;
|
||
|
|
||
|
import com.fr.intelli.record.Focus;
|
||
|
import com.fr.record.analyzer.EnableMetrics;
|
||
|
import com.fr.report.cell.cellattr.CellGUIAttr;
|
||
|
import com.fr.report.cell.cellattr.PageExportCellElement;
|
||
|
import com.fr.report.fun.impl.AbstractPrintCellValueProvider;
|
||
|
|
||
|
/**
|
||
|
* @author 秃破天际
|
||
|
* @version 10.0
|
||
|
* Created by 秃破天际 on 2021/8/9
|
||
|
**/
|
||
|
@EnableMetrics
|
||
|
public class Demo extends AbstractPrintCellValueProvider {
|
||
|
|
||
|
@Override
|
||
|
@Focus(id="com.tptj.demo.hg.print.cell.value.provider.v10",text = "PrintCellValueProvider")
|
||
|
public Object getCellValue(PageExportCellElement cell, CellGUIAttr attr, Object oriValue, int width, int height) {
|
||
|
if( "PrintCellValueDemo".equals(oriValue) ){
|
||
|
return "Hello World!";
|
||
|
}
|
||
|
return oriValue;
|
||
|
}
|
||
|
|
||
|
}
|