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