|
|
|
@ -1,13 +1,18 @@
|
|
|
|
|
package com.fr.plugin.topparameterstyle; |
|
|
|
|
|
|
|
|
|
import com.fr.design.fun.impl.AbstractLocationAttrProvider; |
|
|
|
|
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() { |
|
|
|
@ -15,9 +20,13 @@ public class LocationAttrDefine extends AbstractLocationAttrProvider {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getStyleType() { |
|
|
|
|
return "topbar"; |
|
|
|
|
public JSONObject createJSON() { |
|
|
|
|
JSONObject jo = JSONObject.create(); |
|
|
|
|
try { |
|
|
|
|
jo.put("queryType", this.queryType); |
|
|
|
|
} catch (JSONException e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
|
return jo; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|