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

40 lines
1.0 KiB

package com.fr.plugin.widget.clock.fun;
import com.fr.form.ui.Widget;
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.web.Repository;
/**
* @author richie
* @date 2015-03-23
* @since 8.0
*/
@EnableMetrics
public class Clock extends Widget {
@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;
}
@Override
public String[] supportedEvents() {
return new String[0];
}
}