0

我想要复选框字段的 ValueBoxEditorDecorator 之类的东西。由于 CheckBox 不扩展 ValueBoxBase,我需要创建自己的。

因此,我通过将 ValueBoxEditorDecorator 代码改编为我的新自定义类来开始对其进行编码:

public class CheckBoxDecorator extends Composite implements HasEditorErrors<CheckBox>, IsEditor<LeafValueEditor<Boolean>> {
...
The code here is the adaptation of ValueBoxEditorDecorator 
...
}

不幸的是它不起作用我有以下运行时错误:

[ERROR] [website] - Errors in     'generated://50642882199077F9FB1890056A90477A/com/test/client/core/MyView_RequestFactoryEditorDelegate.java'
[ERROR] [website] - Line 112: The constructor MyView_acceptTerms_Context(MyvalueProxy, CheckBoxDecorator, String) is undefined

在此先感谢您的帮助。

4

1 回答 1

0

抱歉,我的代码中有错误,这是正确的代码:

public class CheckBoxDecorator extends Composite implements HasEditorErrors<Boolean>, IsEditor<LeafValueEditor<Boolean>> {
...
The code here is the adaptation of ValueBoxEditorDecorator 
...
}
于 2012-07-19T10:32:00.853 回答