PDA

View Full Version : PagingToolBar setBeforePageText(..) don't work



wangying95599
22 Oct 2009, 11:02 PM
(gxt2.01)
Hi,
I write the follow code ,but not work:


PagingToolBar pagingToolBar = new PagingToolBar(pageSize);
PagingToolBarMessages msg = pagingToolBar.getMessages();
msg.setBeforePageText("PAGE");
so I read the source code,
the constructor like this:


public PagingToolBar(final int pageSize) {
...
LabelToolItem beforePage = new LabelToolItem(msgs.getBeforePageText());
beforePage.setStyleName("my-paging-text");
...
add(beforePage);
...
}
the code don't call "beforePage" any more , so the setBeforePageText(..) have no work
Is this a bug or sth I don't find
Thanks a lot!

wangying95599
26 Oct 2009, 5:28 PM
if I hide the text "Page" by css, the part of "of x" also hidden, I just hope "Page" is disappered .