Getter for canvas element and LoadingListener in GWT

I needed to get canvas to change it's width and height.
And I needed to do some stuff before the canvas element was added (beforeSetup()) and after the canvas element was added (afterSetup())