layout.setWidget(0, 1, patternList);
// Add a field to display the pattern
patternBox = new TextBox();
patternBox.setWidth("17em");
patternBox.addKeyUpHandler(new KeyUpHandler() {
public void onKeyUp(KeyUpEvent event) {
updatePattern();
}
});
layout.setWidget(1, 1, patternBox);
// Add a field to set the value
valueBox = new TextBox();
valueBox.setWidth("17em");
valueBox.setText("13 September 1999 12:34:56");
valueBox.addKeyUpHandler(new KeyUpHandler() {
public void onKeyUp(KeyUpEvent event) {
updateFormattedValue();
}