box.addKeyboardListener( ActionValueEditor.getNumericFilter( box ) );
panel.add( box );
} else if ( flType.equals( SuggestionCompletionEngine.TYPE_BOOLEAN ) ) {
String[] c = new String[]{"true", "false"};
panel.add( new EnumDropDown( field.expected,
new DropDownValueChanged() {
public void valueChanged(String newText,
String newValue) {
callback.valueChanged( newValue );
}
},
DropDownData.create( c ) ) );
} else if (flType != null && flType.equals(SuggestionCompletionEngine.TYPE_DATE)) {
final DatePickerTextBox datePicker = new DatePickerTextBox( field.expected );
String m = Format.format(((Constants) GWT.create(Constants.class)).ValueFor0(),
field.fieldName);
datePicker.setTitle(m);
datePicker.addValueChanged(new ValueChanged() {
public void valueChanged(String newValue) {
field.expected = newValue;
}
});
panel.add(datePicker);
} else {
String[] enums = sce.getDataEnumList( key );
if ( enums != null ) {
panel.add( new EnumDropDown( field.expected,
new DropDownValueChanged() {
public void valueChanged(String newText,
String newValue) {
callback.valueChanged( newValue );
}
},