final TextBox priorityTextBox = new TextBox();
priorityTextBox.setWidth( "30px" );
priorityTextBox.setText( constraint.getPriority() + "" );
priorityTextBox.addFocusHandler( new FocusHandler() {
public void onFocus(FocusEvent event) {
priorityTextBox.selectAll();
}
} );
priorityTextBox.addBlurHandler( new BlurHandler() {
public void onBlur(BlurEvent event) {
final Constraint constraint = constraints.get( connectionRef );
constraint.setPriority( Integer.parseInt( priorityTextBox.getText() ) );
constraints.put( connectionRef,
constraint );
}
} );
final TextBox constraintTextBox = new TextBox();
constraintTextBox.setWidth( "300px" );
constraintTextBox.setText( constraint.getConstraint() );
constraintTextBox.addFocusHandler( new FocusHandler() {
public void onFocus(FocusEvent event) {
constraintTextBox.selectAll();
}
} );
constraintTextBox.addBlurHandler( new BlurHandler() {