public abstract class AbstractEventEditor
extends org.eclipse.swt.widgets.Composite
Constructor and Description |
---|
AbstractEventEditor(org.eclipse.swt.widgets.Composite parent,
int style) |
Modifier and Type | Method and Description |
---|---|
void |
addItemInsertHandler(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. |
protected boolean |
fireEvents(CalendarableItemEvent e,
java.util.List handlers) |
NewEvent |
fireInsert(java.util.Date date,
boolean allDayEvent)
Requests that the event editor attempt to insert a new element by calling
its registered insert handlers
|
int |
getDefaultEventDuration()
Returns the default duration of a new event, in hours.
|
abstract void |
refresh()
Tells the IEventEditor to refresh all days in its display.
|
void |
removeItemInsertHandler(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 |
setDefaultEventDuration(int defaultEventDuration)
Sets the default duration of a new event, in hours.
|
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, 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, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, 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
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public AbstractEventEditor(org.eclipse.swt.widgets.Composite parent, int style)
parent
- Parent controlstyle
- SWT style bitpublic abstract void refresh()
public NewEvent fireInsert(java.util.Date date, boolean allDayEvent)
date
- The date/time on which to request the insert. The actual date
on which the insert is performed may be different. This is a
HINT.allDayEvent
- Indicates if the new event should be an all-day event. This is
a HINT; the actual event inserted may be a timed event.public void addItemInsertHandler(CalendarableItemEventHandler handler)
CalendarableItemInsertHandler
abstract class.
itemInserted
is called when the CalendarableItem is
inserted.
handler
- the handler which should be notifiedjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- CalendarableItemInsertHandler
,
removeItemInsertHandler(org.eclipse.nebula.widgets.compositetable.day.CalendarableItemEventHandler)
public void removeItemInsertHandler(CalendarableItemEventHandler handler)
CalendarableItemInsertHandler
abstract class.
itemInserted
is called when the CalendarableItem is inserted.
handler
- the handler which should be notifiedjava.lang.IllegalArgumentException
- org.eclipse.swt.SWTException
- CalendarableItemInsertHandler
,
addItemInsertHandler(org.eclipse.nebula.widgets.compositetable.day.CalendarableItemEventHandler)
public int getDefaultEventDuration()
public void setDefaultEventDuration(int defaultEventDuration)
defaultEventDuration
- int the number of hours a new event occupies by default.protected boolean fireEvents(CalendarableItemEvent e, java.util.List handlers)