class DatePicker extends VPanel
VControl.Type
Modifier and Type | Field and Description |
---|---|
(package private) VButton |
clear |
(package private) VButton |
dateNow |
(package private) VButton[] |
dayButtons |
(package private) VLabel[] |
dayLabels |
(package private) boolean |
editYear |
(package private) VButton |
monthButton |
(package private) VButton[] |
monthButtons |
(package private) org.eclipse.swt.widgets.MenuItem[] |
monthItems |
(package private) VButton |
monthNext |
(package private) VPanel |
monthPanel |
(package private) VButton |
monthPrev |
(package private) org.eclipse.swt.widgets.MenuItem |
showSelMenuItem |
(package private) VButton |
timeButton |
(package private) AnalogTimePicker |
timePanel |
(package private) VButton |
today |
(package private) org.eclipse.swt.widgets.MenuItem |
todayMenuItem |
(package private) VButton |
yearButton |
(package private) VButton[] |
yearButtons |
(package private) org.eclipse.swt.widgets.MenuItem[] |
yearItems |
(package private) VButton |
yearNext |
(package private) VPanel |
yearPanel |
(package private) VButton |
yearPrev |
carbon, gtk, STATE_ACTIVE, STATE_ENABLED, STATE_MOUSE_DOWN, STATE_SELECTED, win32
Constructor and Description |
---|
DatePicker(CDateTime parent)
Constructs a new instance of this class given its parent, a style value
describing its behavior and appearance, a date to which the initial
selection will be set, and the locale to use.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createContents() |
int[] |
getFields() |
(package private) static boolean |
isValidDate(java.util.Calendar selectedDay,
java.util.Calendar min,
java.util.Calendar max) |
void |
setEditable(boolean editable) |
void |
setFields(int[] calendarFields) |
boolean |
setFocus() |
protected boolean |
setFocus(boolean focus) |
(package private) void |
setMonthLabelText() |
void |
setScrollable(boolean scrollable) |
(package private) void |
traverseSelection(int keyCode)
Traverse the selection programmatically just as a user would with the
keyboard.
|
void |
updateColorsAndFont() |
protected void |
updateLabels() |
(package private) void |
updateView() |
computeSize, dispose, getBorderWidth, getChildren, getControl, getControl, getLayout, getLayout, getType, getWidget, layout, layout, redrawOnActivate, redrawOnDeactivate, setActivatable, setBounds, setEnabled, setLayout, setLayoutData, setSize, setVisibility, setVisible, setWidget, sort
addListener, computeSize, containsControl, createMenu, filterEvent, getBackground, getBounds, getClientArea, getClientSize, getComposite, getControl, getData, getData, getData, getData, getDisplay, getEnabled, getFont, getForeground, getImage, getLayoutData, getListeners, getLocation, getMargins, getMenu, getParent, getShell, getSize, getState, getStyle, getText, getToolTipText, getVisibility, getVisible, hasState, hasStyle, isActivatable, isDisposed, isEnabled, isSameWidgetAs, isSameWidgetAs, isSquare, isVisible, moveAbove, moveBelow, notifyListeners, notifyListeners, paintControl, redraw, removeListener, setActiveCursor, setAlignment, setAlpha, setAlpha, setBackground, setBounds, setCursor, setData, setData, setFill, setFont, setForeground, setImage, setImage, setInactiveCursor, setLocation, setLocation, setMargins, setMargins, setMargins, setOval, setOval, setPainter, setParent, setPolygon, setPolygon, setScaleImage, setSquare, setState, setStyle, setStyle, setText, setToolTipText, setVisible, setVisible, toControl, toControl, toDisplay, toDisplay, toString, update
VButton monthButton
VButton monthPrev
VButton dateNow
VButton monthNext
VButton yearButton
VButton yearPrev
VButton yearNext
VButton timeButton
VLabel[] dayLabels
VButton[] dayButtons
VButton today
VButton clear
org.eclipse.swt.widgets.MenuItem todayMenuItem
org.eclipse.swt.widgets.MenuItem showSelMenuItem
org.eclipse.swt.widgets.MenuItem[] monthItems
org.eclipse.swt.widgets.MenuItem[] yearItems
boolean editYear
VPanel monthPanel
VButton[] monthButtons
VPanel yearPanel
VButton[] yearButtons
AnalogTimePicker timePanel
public DatePicker(CDateTime parent)
parent
- a widget which will be the parent of the new instance (cannot
be null)protected void createContents()
public int[] getFields()
public void setEditable(boolean editable)
public void setFields(int[] calendarFields)
void setMonthLabelText()
public void setScrollable(boolean scrollable)
void traverseSelection(int keyCode)
keyCode
- a SWT traversal keycodescrollCalendar(int)
protected void updateLabels()
void updateView()
static boolean isValidDate(java.util.Calendar selectedDay, java.util.Calendar min, java.util.Calendar max)
public void updateColorsAndFont()
updateColorsAndFont
in class VPanel