I have declared a CellTable with a SimplePager in my UiBinder. The UiBinder
file is paired with a Java file that includes custom SimplePager.Resources.
The images from this resource are not showing in my client UI. The images
are there and correctly pathed: I can see them loaded in the Developer
Tools, and there are no errors in the JavaScript console, yet they do not
appear in my client UI. What might I be missing?
interface PagerResources extends SimplePager.Resources {
@Override
@Source("../../images/SkipBackwards.png")
ImageResource simplePagerFirstPage();
@Override
@Source("../../images/Backwards.png")
ImageResource simplePagerPreviousPage();
@Override
@Source("../../images/Forwards.png")
ImageResource simplePagerNextPage();
}
...
@Inject
public QueryResultsViewDesktopImpl(final Messages messages,
AppState appState) {
this.messages = messages;
this.appState = appState;
PagerResources pagerResources = GWT.create(PagerResources.class);
pager = new SimplePager(TextLocation.CENTER, pagerResources, false,
0, false) {
@Override
protected String createText() {
return "Showing " + (getPageStart()+1) + " thru " + getPageSize();
}
};
...
cellTable = new DataGrid<Record>(KEY_PROVIDER);
cellTable.setEmptyTableWidget(empty);
pager.setDisplay(cellTable);
...
LayoutPanel panel = uiBinder.createAndBindUi(this);
main.add(panel);
}
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.