Class MonthCalendar

java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.nebula.widgets.compositetable.timeeditor.AbstractEventEditor
org.eclipse.nebula.widgets.compositetable.month.MonthCalendar
All Implemented Interfaces:
IEventEditor, org.eclipse.swt.graphics.Drawable

public class MonthCalendar
extends AbstractEventEditor
implements IEventEditor
An IEventEditor implementing a month calendar. This class is not intended to be subclassed.
  • Field Summary

    Fields inherited from class org.eclipse.swt.widgets.Control

    handle

    Fields inherited from interface org.eclipse.nebula.widgets.compositetable.timeeditor.IEventEditor

    DISPLAYED_HOURS
  • Constructor Summary

    Constructors 
    Constructor Description
    MonthCalendar​(org.eclipse.swt.widgets.Composite parent, int style)
    Constructor DayEditor.
  • Method Summary

    Modifier and Type Method Description
    void addFocusListener​(org.eclipse.swt.events.FocusListener listener)
    Adds the listener to the collection of listeners who will be notified when the control gains or loses focus, by sending it one of the messages defined in the FocusListener interface.
    void addItemDeleteHandler​(CalendarableItemEventHandler deleteHandler)
    Adds the handler to the collection of handlers who will be notified when a CalendarableItem is deleted from the receiver, by sending it one of the messages defined in the CalendarableItemEventHandler abstract class.
    void addItemDisposeHandler​(CalendarableItemEventHandler itemDisposeHandler)
    Adds the handler to the collection of handler who will be notified when a CalendarableItem's control is disposed, by sending it one of the messages defined in the CalendarableItemEventHandler abstract class.
    void addItemEditHandler​(CalendarableItemEventHandler handler)
    Adds the handler to the collection of handlers who will be notified when a CalendarableItem is inserted in the receiver, by sending it one of the messages defined in the CalendarableItemInsertHandler abstract class.
    void addKeyListener​(org.eclipse.swt.events.KeyListener listener)
    Adds the listener to the collection of listeners who will be notified when keys are pressed and released on the system keyboard, by sending it one of the messages defined in the KeyListener interface.
    void addMouseListener​(org.eclipse.swt.events.MouseListener listener)  
    void addSelectionChangeListener​(CalendarableSelectionChangeListener l)
    Adds the listener to the collection of listeners who will be notified when the receiver's selection changes, by sending it one of the messages defined in the CalendarableSelectionChangeListener interface.
    boolean fireDelete​(CalendarableItem toDelete)
    Requests that the event editor delete the specified CalendarableItem's data.
    int getNumberOfDays()
    Method getNumberOfDays.
    int getNumberOfDivisionsInHour()
    Returns the numberOfDivisionsInHour.
    MonthCalendarSelectedDay getSelectedDay()
    Method getSelectedDay.
    java.util.Date getStartDate()
    Return the current start date for this event editor.
    void refresh()
    Tells the IEventEditor to refresh all days in its display.
    void refresh​(java.util.Date date)
    Tells the IEventEditor to refresh its display for the specified date.
    void removeFocusListener​(org.eclipse.swt.events.FocusListener listener)
    Removes the listener from the collection of listeners who will be notified when the control gains or loses focus.
    void removeItemDeleteHandler​(CalendarableItemEventHandler deleteHandler)
    Removes the handler from the collection of handlers who will be notified when a CalendarableItem is deleted from the receiver, by sending it one of the messages defined in the CalendarableItemEventHandler abstract class.
    void removeItemDisposeHandler​(CalendarableItemEventHandler itemDisposeHandler)
    Removes the handler from the collection of handlers who will be notified when a CalendarableItem is disposed, by sending it one of the messages defined in the CalendarableItemEventHandler abstract class.
    void removeItemEditHandler​(CalendarableItemEventHandler handler)
    Removes the handler from the collection of handlers who will be notified when a CalendarableItem is inserted into the receiver, by sending it one of the messages defined in the CalendarableItemInsertHandler abstract class.
    void removeKeyListener​(org.eclipse.swt.events.KeyListener listener)
    Removes the listener from the collection of listeners who will be notified when keys are pressed and released on the system keyboard.
    void removeMouseListener​(org.eclipse.swt.events.MouseListener listener)  
    void removeSelectionChangeListener​(CalendarableSelectionChangeListener l)
    Removes the listener from the collection of listeners who will be notified when the receiver's selection changes, by sending it one of the messages defined in the CalendarableSelectionChangeListener interface.
    void select​(java.util.Date newDate)  
    void setEventContentProvider​(EventContentProvider eventContentProvider)
    Sets the strategy pattern object that can set the properties of the event objects in order to display the data associated with the specified event.
    void setEventCountProvider​(EventCountProvider eventCountProvider)
    Set the strategy pattern object that can return how many events to display for specific periods of time.
    boolean setFocus()  
    void setStartDate​(java.util.Date startDate)
    Sets the start date for this MonthCalendar.
    void setTimeBreakdown​(int numberOfDays, int numberOfDivisionsInHour)
    Method setTimeBreakdown.

    Methods inherited from class org.eclipse.nebula.widgets.compositetable.timeeditor.AbstractEventEditor

    addItemInsertHandler, fireEvents, fireInsert, getDefaultEventDuration, removeItemInsertHandler, setDefaultEventDuration

    Methods inherited from class org.eclipse.swt.widgets.Composite

    changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList, toString

    Methods inherited from class org.eclipse.swt.widgets.Scrollable

    computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar

    Methods inherited from class org.eclipse.swt.widgets.Control

    addControlListener, addDragDetectListener, addGestureListener, addHelpListener, addMenuDetectListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeGestureListener, removeHelpListener, removeMenuDetectListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update

    Methods inherited from class org.eclipse.swt.widgets.Widget

    addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.swt.graphics.Drawable

    isAutoScalable

    Methods inherited from interface org.eclipse.nebula.widgets.compositetable.timeeditor.IEventEditor

    addItemInsertHandler, fireInsert, removeItemInsertHandler