forked from fanruan/finekit
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.
30 lines
833 B
30 lines
833 B
package com.fanruan.api.report.form; |
|
|
|
import com.fr.data.act.Describer; |
|
import com.fr.form.ui.Widget; |
|
import com.fr.json.JSONException; |
|
import com.fr.json.JSONObject; |
|
import com.fr.script.Calculator; |
|
import com.fr.stable.core.NodeVisitor; |
|
import com.fr.stable.web.Repository; |
|
|
|
/** |
|
* @author richie |
|
* @version 10.0 |
|
* Created by richie on 2019-09-10 |
|
* 控件的插件接口 |
|
*/ |
|
public abstract class BaseWidget extends Widget implements Describer { |
|
|
|
@Override |
|
public boolean isEditor() { |
|
return false; |
|
} |
|
|
|
@Override |
|
public JSONObject createJSONConfig(Repository repository, Calculator calculator, NodeVisitor nodeVisitor) throws JSONException { |
|
JSONObject jo = super.createJSONConfig(repository, calculator, nodeVisitor); |
|
mixinJSON(repository, calculator, jo); |
|
return jo; |
|
} |
|
}
|
|
|