public class Day
extends org.eclipse.swt.widgets.Canvas
implements org.eclipse.swt.events.PaintListener, org.eclipse.swt.events.DisposeListener
Modifier and Type | Field and Description |
---|---|
static int |
FOCUS |
static int |
NO_FOCUS |
static int |
NONACTIVE_FOCUS |
Constructor and Description |
---|
Day(org.eclipse.swt.widgets.Composite parent,
int style) |
Modifier and Type | Method and Description |
---|---|
void |
addMouseListener(org.eclipse.swt.events.MouseListener listener) |
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed) |
java.util.Date |
getDate()
Returns the Date represented by this Day.
|
int |
getDayNumber() |
int |
getFocusState() |
org.eclipse.swt.graphics.Point |
getMonthPosition() |
void |
paintControl(org.eclipse.swt.events.PaintEvent e) |
void |
removeMouseListener(org.eclipse.swt.events.MouseListener listener) |
void |
setDate(java.util.Date date)
Sets the Date represented by this Day.
|
void |
setDayNumber(int dayNum) |
void |
setFocusState(int focusState) |
void |
setInCurrentMonth(boolean inCurrentMonth) |
void |
setItems(CalendarableItem[] controls) |
void |
setMonthPosition(org.eclipse.swt.graphics.Point monthPosition) |
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent e) |
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
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, 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, 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, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public static final int NONACTIVE_FOCUS
public static final int FOCUS
public static final int NO_FOCUS
public Day(org.eclipse.swt.widgets.Composite parent, int style)
parent
- style
- public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
widgetDisposed
in interface org.eclipse.swt.events.DisposeListener
public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
computeSize
in class org.eclipse.swt.widgets.Control
public org.eclipse.swt.graphics.Point getMonthPosition()
public void setMonthPosition(org.eclipse.swt.graphics.Point monthPosition)
monthPosition
- The (day, week) of this day in the month.public int getDayNumber()
public void setDayNumber(int dayNum)
dayNum
- the day number to setpublic void paintControl(org.eclipse.swt.events.PaintEvent e)
paintControl
in interface org.eclipse.swt.events.PaintListener
public void addMouseListener(org.eclipse.swt.events.MouseListener listener)
addMouseListener
in class org.eclipse.swt.widgets.Control
public void removeMouseListener(org.eclipse.swt.events.MouseListener listener)
removeMouseListener
in class org.eclipse.swt.widgets.Control
public void setInCurrentMonth(boolean inCurrentMonth)
inCurrentMonth
- public void setItems(CalendarableItem[] controls)
controls
- public void setDate(java.util.Date date)
date
- The date to setpublic java.util.Date getDate()
public int getFocusState()
public void setFocusState(int focusState)