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