Browse Source

修改接口

master
Hades 6 years ago
parent
commit
958e29ce02
  1. 26
      plugin.xml
  2. 32
      src/main/java/com/fr/plugin/topparameterstyle/LocationAttrDefine.java
  3. 24
      src/main/java/com/fr/plugin/topparameterstyle/MobileParamStyleDefine.java

26
plugin.xml

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><plugin>
<id>com.fr.plugin.topparameterstyle</id>
<name><![CDATA[移动端报表顶部参数样式示例]]></name>
<active>yes</active>
<version>1.0</version>
<env-version>10.0</env-version>
<jartime>2018-11-03</jartime>
<vendor>finereport.hades</vendor>
<description><![CDATA[提供移动端报表顶部参数样式]]></description>
<change-notes><![CDATA[
<id>com.fr.plugin.topparameterstyle</id>
<name><![CDATA[移动端报表顶部参数样式示例]]></name>
<active>yes</active>
<version>1.0</version>
<env-version>10.0</env-version>
<jartime>2018-11-03</jartime>
<vendor>finereport.hades</vendor>
<description><![CDATA[提供移动端报表顶部参数样式]]></description>
<change-notes><![CDATA[
]]></change-notes>
<extra-report>
<LocationAttrProvider class="com.fr.plugin.topparameterstyle.LocationAttrDefine"/>
</extra-report>
<extra-report>
<MobileParamStyleProvider class="com.fr.plugin.topparameterstyle.MobileParamStyleDefine"/>
</extra-report>
<function-recorder class="com.fr.plugin.topparameterstyle.LocationAttrDefine"/>
<function-recorder class="com.fr.plugin.topparameterstyle.MobileParamStyleDefine"/>
</plugin>

32
src/main/java/com/fr/plugin/topparameterstyle/LocationAttrDefine.java

@ -1,32 +0,0 @@
package com.fr.plugin.topparameterstyle;
import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original;
import com.fr.json.JSONException;
import com.fr.json.JSONObject;
import com.fr.log.FineLoggerFactory;
import com.fr.record.analyzer.EnableMetrics;
import com.fr.report.fun.impl.AbstractLocationAttrProvider;
@EnableMetrics
public class LocationAttrDefine extends AbstractLocationAttrProvider {
private String queryType = "topbar";
@Override
@Focus(id = "com.fr.solution.plugin.topparameterstyle", text = "FR_Plugin_TOP_Parameter_Style", source = Original.PLUGIN)
public String descriptor() {
return "顶部";
}
@Override
public JSONObject createJSON() {
JSONObject jo = JSONObject.create();
try {
jo.put("queryType", this.queryType);
} catch (JSONException e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}
return jo;
}
}

24
src/main/java/com/fr/plugin/topparameterstyle/MobileParamStyleDefine.java

@ -0,0 +1,24 @@
package com.fr.plugin.topparameterstyle;
import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original;
import com.fr.record.analyzer.EnableMetrics;
import com.fr.report.fun.impl.AbstractMobileParamStyleProvider;
@EnableMetrics
public class MobileParamStyleDefine extends AbstractMobileParamStyleProvider {
private String queryType = "topbar";
@Override
@Focus(id = "com.fr.solution.plugin.topparameterstyle", text = "FR_Plugin_TOP_Parameter_Style", source = Original.PLUGIN)
public String descriptor() {
return "顶部";
}
@Override
public String getStyleType() {
return "topbar";
}
}
Loading…
Cancel
Save