Ejemplo n.º 1
0
 @Override
 public void setVisible(boolean visible) {
   boolean oldValue = isVisible();
   super.setVisible(visible);
   if (oldValue != visible) {
     if (visible) {
       ShowEvent.fire(this, this);
     } else {
       HideEvent.fire(this, this);
     }
   }
 }
Ejemplo n.º 2
0
 @Override
 public HandlerRegistration addShowHandler(ShowHandler handler) {
   return addHandler(handler, ShowEvent.getType());
 }