|
|
|
@ -1,13 +1,12 @@
|
|
|
|
|
package com.fr.plugin.widget.clock.fun; |
|
|
|
|
|
|
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
|
import com.fanruan.api.report.form.category.PlainWidget; |
|
|
|
|
import com.fanruan.api.util.ArrayKit; |
|
|
|
|
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.record.analyzer.EnableMetrics; |
|
|
|
|
import com.fr.script.Calculator; |
|
|
|
|
import com.fr.stable.core.NodeVisitor; |
|
|
|
|
import com.fr.stable.script.CalculatorProvider; |
|
|
|
|
import com.fr.stable.web.Repository; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -16,25 +15,22 @@ import com.fr.stable.web.Repository;
|
|
|
|
|
* @since 8.0 |
|
|
|
|
*/ |
|
|
|
|
@EnableMetrics |
|
|
|
|
public class Clock extends Widget { |
|
|
|
|
public class Clock extends PlainWidget { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getXType() { |
|
|
|
|
return "clock"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@Focus(id="ClockConstants", text = "Plugin-Clock_Name", source = Original.PLUGIN) |
|
|
|
|
public JSONObject createJSONConfig(Repository repository, Calculator calculator, NodeVisitor nodeVisitor) throws JSONException { |
|
|
|
|
return super.createJSONConfig(repository, calculator, nodeVisitor); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isEditor() { |
|
|
|
|
return false; |
|
|
|
|
@Focus(id = ClockConstants.PLUGIN_ID, text = "Plugin-Clock_Name", source = Original.PLUGIN) |
|
|
|
|
public void mixinJSON(Repository repository, CalculatorProvider calculatorProvider, JSONObject jsonObject) { |
|
|
|
|
// 没有属性要穿到前端,因此这里是空的
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String[] supportedEvents() { |
|
|
|
|
return new String[0]; |
|
|
|
|
return ArrayKit.EMPTY_STRING_ARRAY; |
|
|
|
|
} |
|
|
|
|
} |