コード例 #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);
     }
   }
 }
コード例 #2
0
 @Override
 public HandlerRegistration addShowHandler(ShowHandler handler) {
   return addHandler(handler, ShowEvent.getType());
 }