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
900 B
40 lines
900 B
package com.fr.plugin.widget.clock; |
|
|
|
import com.fanruan.api.i18n.I18nKit; |
|
import com.fr.design.fun.impl.AbstractFormWidgetOptionProvider; |
|
import com.fr.form.ui.Widget; |
|
import com.fr.plugin.widget.clock.fun.Clock; |
|
import com.fr.plugin.widget.clock.ui.XClock; |
|
|
|
/** |
|
* @author richie |
|
* @date 2015-03-23 |
|
* @since 8.0 |
|
*/ |
|
public class ClockBridge extends AbstractFormWidgetOptionProvider { |
|
|
|
@Override |
|
public Class<? extends Widget> classForWidget() { |
|
return Clock.class; |
|
} |
|
|
|
@Override |
|
public Class<?> appearanceForWidget() { |
|
return XClock.class; |
|
} |
|
|
|
@Override |
|
public String iconPathForWidget() { |
|
return "/com/fr/plugin/widget/clock/images/clock.png"; |
|
} |
|
|
|
@Override |
|
public String nameForWidget() { |
|
return I18nKit.getLocText("Plugin-Clock_Name"); |
|
} |
|
|
|
@Override |
|
public boolean isContainer() { |
|
return false; |
|
} |
|
} |