Create an editor decorator for a checkbox field

I'd like to have something like the ValueBoxEditorDecorator for checkbox fields. As CheckBox doesn't extend ValueBoxBase, I need to create my own.

So I start coding it by adapting the ValueBoxEditorDecorator code to my new custom class :

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

Unfortunately it doesn't work I have the following runtime error :

[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

Thanks in advance for your help.

Answers


Sorry there was an error in my code, here is the correct piece of code :

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

Need Your Help

Roll die and return number of 4's Matlab

matlab for-loop dice

I need to write a function to roll a 4-sided die N times and return the number of 4's rolled. I want to use randperm and a for lop in my Matlab function. So far i have:

Java: Preventing array going out of bounds

java arrays multidimensional-array

I'm working on a game of checkers, if you want to read more about you can view it here; http://minnie.tuhs.org/I2P/Assessment/assig2.html