为复选框字段创建编辑器装饰器

时间:2012-07-17 17:17:38

标签: java gwt gwt-editors

我想在复选框字段中使用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

提前感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

很抱歉我的代码出错了,这是正确的代码:

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