在决策报表中展示动态时钟。
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.

36 lines
965 B

package com.fr.plugin.widget.clock.fun;
6 years ago
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.JSONObject;
import com.fr.record.analyzer.EnableMetrics;
6 years ago
import com.fr.stable.script.CalculatorProvider;
import com.fr.stable.web.Repository;
/**
* @author richie
* @date 2015-03-23
* @since 8.0
*/
@EnableMetrics
6 years ago
public class Clock extends PlainWidget {
@Override
public String getXType() {
return "clock";
}
@Override
6 years ago
@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() {
6 years ago
return ArrayKit.EMPTY_STRING_ARRAY;
}
}