return new SmallLabel( assertValue() );
}
//Date picker
if ( SuggestionCompletionEngine.TYPE_DATE.equals( value.getType() ) ) {
PopupDatePicker dp = new PopupDatePicker( false );
// Wire up update handler
dp.addValueChangeHandler( new ValueChangeHandler<Date>() {
public void onValueChange(ValueChangeEvent<Date> event) {
value.setValue( PopupDatePicker.convertToString( event ) );
}
} );
dp.setValue( assertValue() );
return dp;
}
//Default editor for all other literals
final TextBox box = TextBoxFactory.getTextBox( value.getType() );