Package com.bradrydzewski.gwt.calendar.client

Examples of com.bradrydzewski.gwt.calendar.client.Appointment


   * @param element
   *            Element to look up.
   * @return Appointment matching the element.
   */
  private Appointment findAppointmentByElement(Element element) {
    Appointment appointmentAtElement = null;
    for (AppointmentWidget widget : appointmentWidgets) {
      if (DOM.isOrHasChild(widget.getElement(), element)) {
        appointmentAtElement = widget.getAppointment();
        break;
      }
View Full Code Here


      }
    }
  }

  public void onMouseOver(Element element, Event event) {
    Appointment appointment = findAppointmentByElement(element);
    calendarWidget.fireMouseOverEvent(appointment, element);
  }
View Full Code Here

   *
   * @param element Element to look up.
   * @return Appointment matching the element.
   */
  private Appointment findAppointmentByElement(Element element) {
    Appointment appointmentAtElement = null;
    for (AppointmentWidget widget : appointmentsWidgets) {
      if (DOM.isOrHasChild(widget.getElement(), element)) {
        appointmentAtElement = widget.getAppointment();
        break;
      }
View Full Code Here

     * @param widget The widget to style
     * @param selected Indicates if the appointment is the currently selected in the view
     */
    protected void doApplyStyleInternal(AppointmentWidget widget, boolean selected) {
        //Extract the Appointment for later reference
        Appointment appointment = widget.getAppointment();
        //Extract the DOM Element for later reference
        Element elem = widget.getElement();
        //Is MultiDay?
        boolean multiDay = appointment.isMultiDay() || appointment.isAllDay();

        //Lookup the style from the map
        ThemeAppointmentStyle style = getViewAppointmentStyleForTheme(appointment);

        //Determine Style Name
View Full Code Here

    if (dragController == null) {
      dragController = new MonthViewPickupDragController(appointmentCanvas, true);
      dragController.addDragHandler(new DragHandler() {

        public void onDragEnd(DragEndEvent event) {
                    Appointment appt = ((AppointmentWidget) event.getContext().draggable).getAppointment();

                    calendarWidget.setCommittedAppointment(appt);
                    calendarWidget.fireUpdateEvent(appt);
        }

        public void onDragStart(DragStartEvent event) {
          Appointment appt = ((AppointmentWidget) event.getContext().draggable).getAppointment();
          calendarWidget.setRollbackAppointment(appt.clone());
        }

        public void onPreviewDragEnd(DragEndEvent event)
            throws VetoDragException {
          // do nothing
View Full Code Here

                topAppointmentManager.lowestLayerIndex(dayOfWeek);
           
            if (dayAppointments != null) {
                int count = dayAppointments.getAppointments().size();
                for (int i = 0; i < count; i++) {
                    Appointment appointment
                       = dayAppointments.getAppointments().get(i);
                    appointmentLayer = topAppointmentManager
                        .nextLowestLayerIndex(dayOfWeek,
                                              appointmentLayer);
                    if (appointmentLayer > calculatedCellAppointments - 1) {
View Full Code Here

    if (clickedElement.equals(appointmentCanvas.getElement())) {
      if (calendarWidget.getSettings().getTimeBlockClickNumber() == Click.Single) {
        dayClicked(event);
      }
    } else {
      Appointment appointment = findAppointmentByElement(clickedElement);
      if (appointment != null) {
        selectAppointment(appointment);
      } else {
        // else, lets see if a "+ n more" label was clicked
        if (moreLabels.containsKey(clickedElement)) {
View Full Code Here

TOP

Related Classes of com.bradrydzewski.gwt.calendar.client.Appointment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.