Friday, April 26, 2013

Re: UiField cellBrowser with 'provided = true' was null

This is actually working... I had that before I changed the code after going through a tutorial.. 

public class PrintProviderCellBrowser extends Composite {
private final PrintProviderMockServiceAsync ppmockService = GWT.create(PrintProviderMockService.class);

interface Binder extends UiBinder<Widget, PrintProviderCellBrowser> {
}

private static Binder uiBinder = GWT.create(Binder.class);

/**
* The CellBrowser.
*/
@UiField(provided = true)
CellBrowser cellBrowser;

public PrintProviderCellBrowser() throws Exception {
final PrintProviderModel model = new PrintProviderModel();
Builder<PrintProviderMock> builder = new Builder<PrintProviderMock>(model, null);
cellBrowser = builder.build();
cellBrowser.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);
Widget widget = uiBinder.createAndBindUi(this);
initWidget(widget);

}
}

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment