本文整理了Java中org.eclipse.swt.widgets.DateTime.getDay()
方法的一些代码示例,展示了DateTime.getDay()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateTime.getDay()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.DateTime
类名称:DateTime
方法名:getDay
[英]Returns the receiver's date, or day of the month.
The first day of the month is 1, and the last day depends on the month and year.
[中]返回接收人的日期或当月的日期。
一个月的第一天是1,最后一天取决于月份和年份。
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
private void setCurrentDate () {
savedYear = getYear ();
savedMonth = getMonth ();
savedDay = getDay ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
private void setCurrentDate () {
savedYear = getYear ();
savedMonth = getMonth ();
savedDay = getDay ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
private void setCurrentDate () {
savedYear = getYear ();
savedMonth = getMonth ();
savedDay = getDay ();
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
private void writeDay( final DateTime dateTime ) throws IOException {
Integer newValue = new Integer( dateTime.getDay() );
if( WidgetLCAUtil.hasChanged( dateTime, PROP_DAY, newValue ) ) {
JSWriter writer = JSWriter.getWriterFor( dateTime );
writer.set( PROP_DAY, newValue );
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
private void writeDay( final DateTime dateTime ) throws IOException {
Integer newValue = new Integer( dateTime.getDay() );
if( WidgetLCAUtil.hasChanged( dateTime, PROP_DAY, newValue ) ) {
JSWriter writer = JSWriter.getWriterFor( dateTime );
writer.set( PROP_DAY, newValue );
}
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void handleEvent(Event event) {
GregorianCalendar cal = new GregorianCalendar( calendar.getYear(), calendar.getMonth(), calendar.getDay());
receiver.dateSelected(cal.getTimeInMillis());
shell.dispose();
}
});
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
static void renderDate( DateTime dateTime ) {
int[] date = { dateTime.getYear(), dateTime.getMonth(), dateTime.getDay() };
renderProperty( dateTime, PROP_DATE, date, new int[ 0 ] );
}
代码示例来源:origin: org.eclipse.mylyn.commons/workbench
@Override
public void widgetDefaultSelected(SelectionEvent e) {
date.set(Calendar.YEAR, calendar.getYear());
date.set(Calendar.MONTH, calendar.getMonth());
date.set(Calendar.DAY_OF_MONTH, calendar.getDay());
setSelection(new DateSelection(date, true));
notifyListeners(new SelectionChangedEvent(DatePickerPanel.this, getSelection()));
}
代码示例来源:origin: org.eclipse.mylyn.commons/workbench
@Override
public void widgetSelected(SelectionEvent e) {
date.set(Calendar.YEAR, calendar.getYear());
date.set(Calendar.MONTH, calendar.getMonth());
date.set(Calendar.DAY_OF_MONTH, calendar.getDay());
setSelection(new DateSelection(date));
notifyListeners(new SelectionChangedEvent(DatePickerPanel.this, getSelection()));
}
});
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
static void preserveDate( DateTime dateTime ) {
int[] date = { dateTime.getYear(), dateTime.getMonth(), dateTime.getDay() };
preserveProperty( dateTime, PROP_DATE, date );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
void preserveValues( final DateTime dateTime ) {
ControlLCAUtil.preserveValues( dateTime );
IWidgetAdapter adapter = WidgetUtil.getAdapter( dateTime );
boolean hasListeners = SelectionEvent.hasListener( dateTime );
adapter.preserve( Props.SELECTION_LISTENERS,
Boolean.valueOf( hasListeners ) );
adapter.preserve( PROP_DAY,
new Integer( dateTime.getDay() ) );
adapter.preserve( PROP_MONTH,
new Integer( dateTime.getMonth() ) );
adapter.preserve( PROP_YEAR,
new Integer( dateTime.getYear() ) );
WidgetLCAUtil.preserveCustomVariant( dateTime );
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
private void recreateCalendar () {
int year = popupCalendar.getYear ();
int month = popupCalendar.getMonth ();
int day = popupCalendar.getDay ();
popupCalendar.removeListener (SWT.Dispose, popupListener);
popupShell.dispose ();
popupShell = null;
popupCalendar = null;
createPopupShell (year, month, day);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
private void recreateCalendar () {
int year = popupCalendar.getYear ();
int month = popupCalendar.getMonth ();
int day = popupCalendar.getDay ();
popupCalendar.removeListener (SWT.Dispose, popupListener);
popupShell.dispose ();
popupShell = null;
popupCalendar = null;
createPopupShell (year, month, day);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
private void recreateCalendar () {
int year = popupCalendar.getYear ();
int month = popupCalendar.getMonth ();
int day = popupCalendar.getDay ();
popupCalendar.removeListener (SWT.Dispose, popupListener);
popupShell.dispose ();
popupShell = null;
popupCalendar = null;
createPopupShell (year, month, day);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
@Override
String getNameText() {
return (style & SWT.TIME) != 0 ? getHours() + ":" + getMinutes() + ":" + getSeconds()
: (getMonth() + 1) + "/" + getDay() + "/" + getYear();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
String getNameText() {
return (style & SWT.TIME) != 0 ? getHours() + ":" + getMinutes() + ":" + getSeconds()
: (getMonth() + 1) + "/" + getDay() + "/" + getYear();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
public void handleEvent(Event event) {
int year = popupCalendar.getYear ();
int month = popupCalendar.getMonth ();
int day = popupCalendar.getDay ();
setDate(year, month, day);
Event e = new Event ();
e.time = event.time;
notifyListeners (SWT.Selection, e);
hideCalendar();
}
});
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
String getNameText () {
if (isTime ()) {
return getHours () + ":" + getMinutes () + ":" + getSeconds ();
} else {
return (getMonth () + 1) + "/" + getDay () + "/" + getYear ();
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
String getNameText () {
if (isTime ()) {
return getHours () + ":" + getMinutes () + ":" + getSeconds ();
} else {
return (getMonth () + 1) + "/" + getDay () + "/" + getYear ();
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
String getNameText () {
if (isTime ()) {
return getHours () + ":" + getMinutes () + ":" + getSeconds ();
} else {
return (getMonth () + 1) + "/" + getDay () + "/" + getYear ();
}
}
内容来源于网络,如有侵权,请联系作者删除!