Hades
6 years ago
3 changed files with 37 additions and 45 deletions
@ -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> |
@ -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; |
||||
} |
||||
} |
@ -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…
Reference in new issue