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