Hi!
When I try Canvas.redraw() on my ListGrid, nothing moves !
Is it because the ListGrid is "final" ? I have to put "final", otherwise :
"Cannot refer to a non-final variable SocieteGrid inside an inner class defined in a different method".
Should I use another function than redraw ?
Thanx for your help !
When I try Canvas.redraw() on my ListGrid, nothing moves !
Is it because the ListGrid is "final" ? I have to put "final", otherwise :
"Cannot refer to a non-final variable SocieteGrid inside an inner class defined in a different method".
Should I use another function than redraw ?
Thanx for your help !
Code:
final ListGrid SocieteGrid = new ListGrid(societeListeLoader.getJsObj());
SocieteGrid.setWidth(1000);
SocieteGrid.setHeight(200);
SocieteGrid.getFreezeOnLeftText();
societeListePanel.add(SocieteGrid);
Button button1 = new Button();
societeListePanel.add(button1);
button1.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
SocieteGrid.redraw();
}
});
Comment