예제 #1
0
  public void fireUpdateEvent(Appointment appointment) {
    // refresh the appointment
    refresh();
    // fire the event to notify the client
    boolean allow = UpdateEvent.fire(this, appointment);

    if (!allow) {
      appointmentManager.rollback();
      refresh();
    }
  }
예제 #2
0
 public HandlerRegistration addUpdateHandler(UpdateHandler<Appointment> handler) {
   return addHandler(handler, UpdateEvent.getType());
 }