public class TimeSlot
extends org.eclipse.swt.widgets.Canvas
| Modifier and Type | Field | Description |
|---|---|---|
static int |
TIME_BAR_WIDTH |
Width of the bar between events
|
| Constructor | Description |
|---|---|
TimeSlot(org.eclipse.swt.widgets.Composite parent,
int style) |
Constructor EmptyTablePlaceholder.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed) |
|
boolean |
isAllDay() |
|
boolean |
isMinutesAfterHour(int minute) |
|
void |
setAllDay(boolean isAllDayEvent) |
|
void |
setTime(java.util.Date currentTime) |
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIMEchanged, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListaddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, 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, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final int TIME_BAR_WIDTH
public TimeSlot(org.eclipse.swt.widgets.Composite parent,
int style)
parent - The parent controlstyle - Style bits. These are the same as what Canvas accepts.public org.eclipse.swt.graphics.Point computeSize(int wHint,
int hHint,
boolean changed)
computeSize in class org.eclipse.swt.widgets.Controlpublic boolean isMinutesAfterHour(int minute)
minute - The minute to checkpublic void setAllDay(boolean isAllDayEvent)
isAllDayEvent - public boolean isAllDay()
public void setTime(java.util.Date currentTime)
currentTime -