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
933 B
40 lines
933 B
7 years ago
|
package com.fr.plugin.widget.clock;
|
||
|
|
||
|
import com.fr.design.fun.impl.AbstractFormWidgetOptionProvider;
|
||
|
import com.fr.form.ui.Widget;
|
||
|
import com.fr.locale.InterProviderFactory;
|
||
|
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 InterProviderFactory.getProvider().getLocText("Plugin-Clock_Name");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean isContainer() {
|
||
|
return false;
|
||
|
}
|
||
|
}
|