showcase scrollable pager
I would like to use that showcaes ScrollPanel Pager with the CellList
from the example.
In TestScrollPanel.ui.xml,
<g:VerticalPanel ui:field="uiVPanel">
<s:ScrollPagerPanel ui:field='scrollPagerPanel' />
</g:VerticalPanel>
In TestScrollPanel.java
initWidget(uiBinder.createAndBindUi(this));
CellList<String> cellList = new CellList<String>(new TextCell());
cellList.setPageSize(10);
// Create a data provider.
MyDataProvider dataProvider = new MyDataProvider();
// Add the cellList to the dataProvider.
dataProvider.addDataDisplay(cellList);
scrollPagerPanel.setDisplay(cellList);
And then
public void onModuleLoad() {
// RootPanel.get().add(new TestScrollPanel());
RootLayoutPanel.get().add(new TestScrollPanel());
// RootPanel.get().add(new ScrollPanel().asWidget());
}
But I do not see anything on the panel. Any help please.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home