code: protected void onShow() {
  
          getCloseButton().setEnabled(true);
          Scheduler.get().scheduleDeferred(new ScheduledCommand() {
  
              public void execute() {
  
                  truncate(CmsAlertDialog.this.hashCode() + "", getTopWidgets().getElement().getClientWidth());
  
              }
          });
      }
docs: Executed when the dialog is shown.<p>