|
|
@ -6,16 +6,14 @@ import com.fanruan.api.net.NetworkKit; |
|
|
|
import com.fanruan.api.report.form.category.TextWidget; |
|
|
|
import com.fanruan.api.report.form.category.TextWidget; |
|
|
|
import com.fanruan.api.util.ArrayKit; |
|
|
|
import com.fanruan.api.util.ArrayKit; |
|
|
|
import com.fanruan.api.xml.XmlKit; |
|
|
|
import com.fanruan.api.xml.XmlKit; |
|
|
|
|
|
|
|
import com.fr.data.act.Producer; |
|
|
|
import com.fr.form.ui.DataControl; |
|
|
|
import com.fr.form.ui.DataControl; |
|
|
|
import com.fr.form.ui.concept.data.ValueInitializer; |
|
|
|
import com.fr.form.ui.concept.data.ValueInitializer; |
|
|
|
import com.fr.intelli.record.Focus; |
|
|
|
import com.fr.intelli.record.Focus; |
|
|
|
import com.fr.json.JSONArray; |
|
|
|
import com.fr.json.JSONArray; |
|
|
|
import com.fr.json.JSONException; |
|
|
|
|
|
|
|
import com.fr.json.JSONObject; |
|
|
|
import com.fr.json.JSONObject; |
|
|
|
import com.fr.plugin.context.PluginContexts; |
|
|
|
import com.fr.plugin.context.PluginContexts; |
|
|
|
import com.fr.record.analyzer.EnableMetrics; |
|
|
|
import com.fr.record.analyzer.EnableMetrics; |
|
|
|
import com.fr.script.Calculator; |
|
|
|
|
|
|
|
import com.fr.stable.core.NodeVisitor; |
|
|
|
|
|
|
|
import com.fr.stable.script.CalculatorProvider; |
|
|
|
import com.fr.stable.script.CalculatorProvider; |
|
|
|
import com.fr.stable.web.Repository; |
|
|
|
import com.fr.stable.web.Repository; |
|
|
|
import com.fr.stable.web.SessionProvider; |
|
|
|
import com.fr.stable.web.SessionProvider; |
|
|
@ -28,7 +26,7 @@ import javax.servlet.http.HttpServletRequest; |
|
|
|
* Created by richie on 15/11/17. |
|
|
|
* Created by richie on 15/11/17. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@EnableMetrics |
|
|
|
@EnableMetrics |
|
|
|
public class ZTree extends TextWidget implements DataControl { |
|
|
|
public class ZTree extends TextWidget implements DataControl, Producer { |
|
|
|
|
|
|
|
|
|
|
|
private ValueInitializer widgetValue; |
|
|
|
private ValueInitializer widgetValue; |
|
|
|
|
|
|
|
|
|
|
@ -122,17 +120,10 @@ public class ZTree extends TextWidget implements DataControl { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Focus(id = "com.fr.plugin.widget.ztree", text = "Plugin-ZTree") |
|
|
|
@Focus(id = "com.fr.plugin.widget.ztree", text = "Plugin-ZTree") |
|
|
|
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor toFindChart) throws JSONException { |
|
|
|
public void mixinJSON(Repository repository, CalculatorProvider calculatorProvider, JSONObject jsonObject) { |
|
|
|
JSONObject conf = super.createJSONConfig(repo, c, toFindChart); |
|
|
|
|
|
|
|
if (treeAttr != null) { |
|
|
|
if (treeAttr != null) { |
|
|
|
treeAttr.mixConfig(conf); |
|
|
|
treeAttr.mixConfig(jsonObject); |
|
|
|
} |
|
|
|
|
|
|
|
return conf; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void mixinJSON(Repository repository, CalculatorProvider calculatorProvider, JSONObject jsonObject) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|