b.setSelectedIndex( 2 );
String xc = (v.getExpectedCount() != null) ? "" + v.getExpectedCount().intValue() : "0";
num.setText( xc );
}
b.addChangeHandler( new ChangeHandler() {
public void onChange(ChangeEvent event) {
String s = b.getValue( b.getSelectedIndex() );
if ( s.equals( "y" ) || s.equals( "n" ) ) {
num.setVisible( false );
v.setExpectedFire( (s.equals( "y" )) ? Boolean.TRUE : Boolean.FALSE );
v.setExpectedCount( null );
} else {
num.setVisible( true );
v.setExpectedFire( null );
num.setText( "1" );
v.setExpectedCount( new Integer( 1 ) );
}
}
} );
b.addItem( constants.ChooseDotDotDot() );
num.addChangeHandler( new ChangeHandler() {
public void onChange(ChangeEvent event) {
v.setExpectedCount( new Integer( num.getText() ) );
}
} );