I figured out the following which will highlight the contents of a Grid cell when the cell is selected.
Code:
SummaryColumnConfig hours = new SummaryColumnConfig("hours", "Hours", 20);
NumberField nf = new NumberField();
nf.setAutoValidate(true);
CellEditor ce = new CellEditor(nf);
ce.setCancelOnEsc(true);
ce.getField().addListener(Events.Focus, new Listener<FieldEvent>() {
public void handleEvent(FieldEvent be) {
TextField t = (TextField) be.boxComponent;
t.selectAll();
}
});
hours.setEditor(ce);