|
|
@ -9,19 +9,14 @@ import com.fr.form.ui.Widget; |
|
|
|
public class UserDefinedWidgetOption extends WidgetOption { |
|
|
|
public class UserDefinedWidgetOption extends WidgetOption { |
|
|
|
|
|
|
|
|
|
|
|
private String widgetConfigName; |
|
|
|
private String widgetConfigName; |
|
|
|
private Widget widget; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public UserDefinedWidgetOption(String name, Widget widget) { |
|
|
|
public UserDefinedWidgetOption(String name) { |
|
|
|
this.widgetConfigName = name; |
|
|
|
this.widgetConfigName = name; |
|
|
|
this.widget = widget; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Widget createWidget() { |
|
|
|
public Widget createWidget() { |
|
|
|
Widget widget = new NameWidget(widgetConfigName); |
|
|
|
return new NameWidget(widgetConfigName); |
|
|
|
widget.setEnabled(this.widget.isEnabled()); |
|
|
|
|
|
|
|
widget.setVisible(this.widget.isVisible()); |
|
|
|
|
|
|
|
return widget; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|