public class CalendarAdapter extends java.lang.Object implements CalendarListener
CalendarListener interface. This lets you override
only the handlers for the events you are interested in, instead of
implementing all methods of CalendarListener.| Constructor and Description |
|---|
CalendarAdapter() |
public void visibleDateChanged(DateChangedEvent e)
CalendarListener.visibleDateChanged(com.mindfusion.scheduling.DateChangedEvent) implementation.
Invoked when the user selects another date using the month or year navigation controls
on the calendar header area.visibleDateChanged in interface CalendarListenere - A DateChangedEvent object.public void scroll(java.util.EventObject e)
CalendarListener.scroll(java.util.EventObject) implementation.
Invoked when the value of a scrollbar has changed.scroll in interface CalendarListenere - An EventObject object.public void dateClick(ResourceDateEvent e)
CalendarListener.dateClick(com.mindfusion.scheduling.ResourceDateEvent) implementation.
Invoked when the user clicks a date cell in the calendar.dateClick in interface CalendarListenere - A ResourceDateEvent object.public void monthCellClick(DateEvent e)
CalendarListener.monthCellClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when the user clicks on a month cell in a SingleMonth and MonthRange views.monthCellClick in interface CalendarListenere - A DateEvent object.public void hiddenItemClick(DateEvent e)
CalendarListener.hiddenItemClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when a hidden items cue icon is clicked.
The hidden items cue is displayed when there are schedule items included in the time range of the current calendar view, but not currently visible because of insufficient space.
hiddenItemClick in interface CalendarListenere - A DateEvent object.public void itemClick(ItemMouseEvent e)
CalendarListener.itemClick(com.mindfusion.scheduling.ItemMouseEvent) implementation.
Invoked when the user clicks a schedule item.itemClick in interface CalendarListenere - An ItemMouseEvent object.public void itemDeleting(ItemConfirmEvent e)
CalendarListener.itemDeleting(com.mindfusion.scheduling.ItemConfirmEvent) implementation.
Invoked when the user is about to delete a schedule item.
This method can be used to prevent users from deleting specific non-recurring items interactively.
The method is invoked once for each element of the item selection. To control the deletion of
recurring items, use the CalendarListener.recurringItemDeleting(com.mindfusion.scheduling.RecurringItemConfirmEvent) method.
itemDeleting in interface CalendarListenere - An ItemConfirmEvent object.public void recurringItemDeleting(RecurringItemConfirmEvent e)
CalendarListener.recurringItemDeleting(com.mindfusion.scheduling.RecurringItemConfirmEvent) implementation.
Invoked when the user is about to delete a recurring item.
This method can be used to prevent the deletion of recurring items. For non-recurring items,
use the CalendarListener.itemDeleting(com.mindfusion.scheduling.ItemConfirmEvent) method.
recurringItemDeleting in interface CalendarListenere - A RecurringItemConfirmEvent object.public void itemDeleted(ItemEvent e)
CalendarListener.itemDeleted(com.mindfusion.scheduling.model.ItemEvent) implementation.
Invoked when the user deletes a schedule item.itemDeleted in interface CalendarListenere - An ItemEvent object.public void itemInplaceEditStarting(ItemConfirmEvent e)
CalendarListener.itemInplaceEditStarting(com.mindfusion.scheduling.ItemConfirmEvent) implementation.
Invoked when in-place editing of item's text is about to begin.
This method can be used to prevent users from editing the text of specific schedule items.
itemInplaceEditStarting in interface CalendarListenere - An ItemConfirmEvent object.public void itemInplaceEditEnding(ItemEditConfirmEvent e)
CalendarListener.itemInplaceEditEnding(com.mindfusion.scheduling.ItemEditConfirmEvent) implementation.
Invoked when in-place editing of item's text is about to be accepted.
This event can be used to validate the text entered into a schedule item during the in-place editing mode.
itemInplaceEditEnding in interface CalendarListenere - An ItemEditConfirmEvent object.public void itemInplaceEdited(ItemEvent e)
CalendarListener.itemInplaceEdited(com.mindfusion.scheduling.model.ItemEvent) implementation.
Invoked when item's text is in-place edited.itemInplaceEdited in interface CalendarListenere - An ItemEvent object.public void itemCreating(ItemConfirmEvent e)
CalendarListener.itemCreating(com.mindfusion.scheduling.ItemConfirmEvent) implementation.
Invoked when the user is about to create a new schedule item.itemCreating in interface CalendarListenere - An ItemConfirmEvent object.public void itemCreated(ItemEvent e)
CalendarListener.itemCreated(com.mindfusion.scheduling.model.ItemEvent) implementation.
Invoked when a schedule item is created by the user.itemCreated in interface CalendarListenere - An ItemEvent object.public void itemPasting(ItemConfirmEvent e)
CalendarListener.itemPasting(com.mindfusion.scheduling.ItemConfirmEvent) implementation.
Invoked when an item is about to be pasted from the clipboard.itemPasting in interface CalendarListenere - An ItemConfirmEvent object.public void itemPasted(ItemEvent e)
CalendarListener.itemPasted(com.mindfusion.scheduling.model.ItemEvent) implementation.
Invoked when an item is pasted from the clipboard.itemPasted in interface CalendarListenere - An ItemEvent object.public void itemCloning(ItemConfirmEvent e)
CalendarListener.itemCloning(com.mindfusion.scheduling.ItemConfirmEvent) implementation.
Invoked when the user is about to clone an item interactively.itemCloning in interface CalendarListenere - An ItemConfirmEvent object.public void itemCloned(ItemEvent e)
CalendarListener.itemCloned(com.mindfusion.scheduling.model.ItemEvent) implementation.
Invoked when the user has cloned an item interactively.itemCloned in interface CalendarListenere - An ItemEvent object.public void itemModifying(ItemModifyConfirmEvent e)
CalendarListener.itemModifying(com.mindfusion.scheduling.ItemModifyConfirmEvent) implementation.
Invoked when the user moves or resizes a schedule item, which would change the item's
scheduled start or end date and time.
This method can be used to prevent users from modifying an item interactively.
itemModifying in interface CalendarListenere - An ItemModifyConfirmEvent object.public void itemModified(ItemModifiedEvent e)
CalendarListener.itemModified(com.mindfusion.scheduling.ItemModifiedEvent) implementation.
Invoked when a schedule item is moved or resized by the user.itemModified in interface CalendarListenere - An ItemModifiedEvent object.public void itemModificationCanceled(ItemEvent e)
CalendarListener.itemModificationCanceled(com.mindfusion.scheduling.model.ItemEvent) implementation.
Invoked when an item modification is canceled by the user.itemModificationCanceled in interface CalendarListenere - An ItemEvent object.public void itemCreationCanceled(ItemEvent e)
CalendarListener.itemCreationCanceled(com.mindfusion.scheduling.model.ItemEvent) implementation.
Invoked when an interactive item creation is canceled by the user.
This method is invoked when the user presses the cancel key (usually Escape) while in-place editing the text of an item currently being created.
itemCreationCanceled in interface CalendarListenere - An ItemEvent object.public void monthHeaderClick(DateEvent e)
CalendarListener.monthHeaderClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when the header of a Month view is clicked.monthHeaderClick in interface CalendarListenere - A DateEvent object.public void timeLineUnitsChanged(java.util.EventObject e)
CalendarListener.timeLineUnitsChanged(java.util.EventObject) implementation
Invoked when timeline units are changed by zoom operation.timeLineUnitsChanged in interface CalendarListenere - An EventObject object.public void monthWeekHeaderClick(DateEvent e)
CalendarListener.monthWeekHeaderClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when a cell in the week header of a Month view is clicked.monthWeekHeaderClick in interface CalendarListenere - A DateEvent object.public void monthRangeHeaderClick(DateEvent e)
CalendarListener.monthRangeHeaderClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when the header of an MonthRange view is clicked.monthRangeHeaderClick in interface CalendarListenere - A DateEvent object.public void listViewHeaderClick(DateEvent e)
CalendarListener.listViewHeaderClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when the header of a List view is clicked.listViewHeaderClick in interface CalendarListenere - A DateEvent object.public void weekRangeHeaderClick(DateEvent e)
CalendarListener.weekRangeHeaderClick(com.mindfusion.scheduling.DateEvent) implementation.
Raised when the header of a WeekRange view is clicked.weekRangeHeaderClick in interface CalendarListenere - A DateEvent object.public void timetableColumnHeaderClick(DateEvent e)
CalendarListener.timetableColumnHeaderClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when the header of a Timetable column is clicked.timetableColumnHeaderClick in interface CalendarListenere - A DateEvent object.public void itemDrawing(CalendarDrawEvent e)
CalendarListener.itemDrawing(com.mindfusion.scheduling.CalendarDrawEvent) implementation.
Invoked to allow custom drawing of calendar items before
the default rendering done by the control.itemDrawing in interface CalendarListenere - A CalendarDrawEvent object.public void beginItemDrawing(java.util.EventObject e)
CalendarListener.beginItemDrawing(java.util.EventObject) implementation.
Invoked before the items are drawn in the current drawing pass.beginItemDrawing in interface CalendarListenere - An EventObject object.public void endItemDrawing(java.util.EventObject e)
CalendarListener.endItemDrawing(java.util.EventObject) implementation.
Invoked after the items are drawn in the current drawing pass.endItemDrawing in interface CalendarListenere - An EventObject object.public void drawing(CalendarDrawEvent e)
CalendarListener.drawing(com.mindfusion.scheduling.CalendarDrawEvent) implementation.
Raised to allow custom drawing of calendar elements before the default rendering done by the control.drawing in interface CalendarListenere - A CalendarDrawEvent object.public void draw(CalendarDrawEvent e)
CalendarListener.draw(com.mindfusion.scheduling.CalendarDrawEvent) implementation.
Invoked to allow custom drawing of calendar UI elements.
This method is invoked if the CustomDraw property is set.
draw in interface CalendarListenere - A CalendarDrawEvent object.public void customizeText(CalendarTextEvent e)
CalendarListener.customizeText(com.mindfusion.scheduling.CalendarTextEvent) implementation.
Raised to allow text customization of various calendar elements.customizeText in interface CalendarListenere - An CalendarTextEvent object.public void itemTooltipDisplaying(ItemTooltipEvent e)
CalendarListener.itemTooltipDisplaying(com.mindfusion.scheduling.ItemTooltipEvent) implementation.
Invoked to allow modification of an item's tooltip before it gets displayed.
Set the new tooltip through the ItemTooltipEvent.setTooltip(String) method.
itemTooltipDisplaying in interface CalendarListenere - An ItemTooltipEvent object.public void tooltipDisplaying(TooltipEvent e)
CalendarListener.tooltipDisplaying(com.mindfusion.scheduling.TooltipEvent) implementation.
Invoked to allow modification of the tooltip of a calendar element before it gets displayed.tooltipDisplaying in interface CalendarListenere - A TooltipEvent object.public void resourceViewTopTimelineClick(DateEvent e)
CalendarListener.resourceViewTopTimelineClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when the top timeline of a Resource view is clicked.resourceViewTopTimelineClick in interface CalendarListenere - A DateEvent object.public void resourceViewMiddleTimelineClick(DateEvent e)
CalendarListener.resourceViewMiddleTimelineClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when the middle timeline of a Resource view is clicked.resourceViewMiddleTimelineClick in interface CalendarListenere - A DateEvent object.public void resourceViewBottomTimelineClick(DateEvent e)
CalendarListener.resourceViewBottomTimelineClick(com.mindfusion.scheduling.DateEvent) implementation.
Invoked when the bottom timeline of a Resource view is clicked.resourceViewBottomTimelineClick in interface CalendarListenere - A DateEvent object.public void resourceViewRowHeaderClick(ResourceDateEvent e)
CalendarListener.resourceViewRowHeaderClick(com.mindfusion.scheduling.ResourceDateEvent) implementation.
Invoked when the header of a Resource view row is clicked.resourceViewRowHeaderClick in interface CalendarListenere - A ResourceDateEvent object.public void itemSelectionChanged(ItemSelectionEvent e)
CalendarListener.itemSelectionChanged(com.mindfusion.scheduling.ItemSelectionEvent) implementation.
Invoked when an item is selected or deselected.itemSelectionChanged in interface CalendarListenere - An ItemSelectionEvent object.public void itemSelectionComplete(java.util.EventObject e)
CalendarListener.itemSelectionComplete(java.util.EventObject) implementation.
Invoked when an item is selected or deselected.
This method is invoked only once unlike CalendarListener.itemSelectionChanged(com.mindfusion.scheduling.ItemSelectionEvent) which is invoked
for each individual item affected by the selection operation.
itemSelectionComplete in interface CalendarListenere - An EventObject object.public void itemSelecting(ItemConfirmEvent e)
CalendarListener.itemSelecting(com.mindfusion.scheduling.ItemConfirmEvent) implementation.
Invoked when an item is about to be selected.itemSelecting in interface CalendarListenere - An ItemConfirmEvent object.public void itemDeselecting(ItemConfirmEvent e)
CalendarListener.itemDeselecting(com.mindfusion.scheduling.ItemConfirmEvent) implementation.
Invoked when an item is about to be deselected.itemDeselecting in interface CalendarListenere - An ItemConfirmEvent object.public void hScroll(ScrollEvent e)
CalendarListener.hScroll(com.mindfusion.common.ScrollEvent) implementation.
Invoked when the control has been scrolled horizontally.hScroll in interface CalendarListenere - A ScrollEvent link.public void vScroll(ScrollEvent e)
CalendarListener.vScroll(com.mindfusion.common.ScrollEvent) implementation.
Invoked when the control has been scrolled vertically.vScroll in interface CalendarListenere - A ScrollEvent object.public void themeChanged(java.util.EventObject e)
CalendarListener.themeChanged(java.util.EventObject) implementation.
Invoked when the calendar theme has changed.themeChanged in interface CalendarListenere - An EventObject object.public void itemListLaneChanged(ItemListLaneChangedEvent e)
CalendarListener.itemListLaneChanged(com.mindfusion.scheduling.ItemListLaneChangedEvent) implementation.
Invoked when the lane index of an item within a List view has changed.itemListLaneChanged in interface CalendarListenere - An ItemListLaneChangedEvent object.public void itemsModified(ItemsEvent e)
CalendarListener.itemsModified(com.mindfusion.scheduling.ItemsEvent) implementation.
Invoked when one or more items have been modified interactively.
Unlike CalendarListener.itemModified(com.mindfusion.scheduling.ItemModifiedEvent) and CalendarListener.itemListLaneChanged(com.mindfusion.scheduling.ItemListLaneChangedEvent), this method is invoked
only once for all items that are affected by the modification.
itemsModified in interface CalendarListenere - An ItemsEvent object.public void customizeGrouping(CustomizeGroupingEvent e)
CalendarListener.customizeGrouping(com.mindfusion.scheduling.CustomizeGroupingEvent) implementation.
Raised when secondary grouping is enabled to allow the client to
filter some of the secondary resources.customizeGrouping in interface CalendarListenere - A CustomizeGroupingEvent object.public void filterItem(ItemConfirmEvent e)
CalendarListener.filterItem(com.mindfusion.scheduling.ItemConfirmEvent) implementation.
Raised to allow filtering specific items from the view.filterItem in interface CalendarListenere - An ItemConfirmEvent object.