Class DragHoverCustomizer

java.lang.Object
com.smartgwt.client.widgets.calendar.DragHoverCustomizer

public abstract class DragHoverCustomizer extends Object
Called to determine the hover text to show during drag operations in Calendars
  • Constructor Details

    • DragHoverCustomizer

      public DragHoverCustomizer()
  • Method Details

    • setCalendar

      public void setCalendar(Calendar calendar)
    • getCalendar

      public Calendar getCalendar()
      Returns the Calendar over which the hover occurred
      Returns:
      Calendar over which the hover occurred
    • getHoverHTML

      public abstract String getHoverHTML(CalendarEvent event, String defaultValue, CalendarView view)
      getHoverHTML() should be implemented and return the string of HTML to display in the hover during a drag operation
      Parameters:
      calendarEvent - CalendarEvent the existing event being dragged, or the details of the current drag-select range, representing a new event
      defaultValue - String the default hover text as generated by the Timeline
      calendarView - CalendarView a reference to the calendarView containing the drag
      Returns:
      String The formatted hover text for the values passed in