if ( DataType.TYPE_DATE.equals( this.fieldType ) || ( DataType.TYPE_THIS.equals( this.fieldName ) && isCEPOperator ) ) {
if ( this.readOnly ) {
return new SmallLabel( constraint.getValue() );
}
final PopupDatePicker dp = new PopupDatePicker( false );
// Wire up update handler
dp.addValueChangeHandler( new ValueChangeHandler<Date>() {
public void onValueChange( final ValueChangeEvent<Date> event ) {
constraint.setValue( PopupDatePicker.convertToString( event ) );
executeOnValueChangeCommand();
}
} );
dp.setValue( assertValue() );
return dp;
}
//Default editor for all other literals
final TextBox box = TextBoxFactory.getTextBox( fieldType );