final boolean isReadOnly ) {
final TextBox box = new TextBox();
box.setEnabled( !isReadOnly );
box.setVisibleLength( ( at.getValue().length() < 3 ) ? 3 : at.getValue().length() );
box.setText( at.getValue() );
box.addChangeHandler( new ChangeHandler() {
public void onChange( ChangeEvent event ) {
at.setValue( box.getText() );
}
} );