Ejemplo n.º 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();
    }
  }
Ejemplo n.º 2
0
 public HandlerRegistration addUpdateHandler(UpdateHandler<Appointment> handler) {
   return addHandler(handler, UpdateEvent.getType());
 }