setSize(width, height);
RootPanel.get().add(this);
FXStyle fx = new FXStyle(getElement());
fx.fadeIn();
final Widget fWidget = this;
Timer t = new Timer() {
public void run() {
FXStyle fx = new FXStyle(getElement());
fx.addListener(Events.EffectComplete, new Listener() {
public void handleEvent(BaseEvent be) {
slots.set(level, null);
RootPanel.get().remove(fWidget);
}
});
fx.fadeOut();
}
};
t.schedule(display);
}