org.eclipse.swt.widgets.DateTime.isDisposed()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(231)

本文整理了Java中org.eclipse.swt.widgets.DateTime.isDisposed()方法的一些代码示例,展示了DateTime.isDisposed()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateTime.isDisposed()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.DateTime
类名称:DateTime
方法名:isDisposed

DateTime.isDisposed介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
LRESULT WM_LBUTTONUP (int /*long*/ wParam, int /*long*/ lParam) {
  LRESULT result = super.WM_LBUTTONUP (wParam, lParam);
  if (isDisposed ()) return LRESULT.ZERO;
  if (doubleClick) sendSelectionEvent (SWT.DefaultSelection);
  doubleClick = false;
  return result;
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

void hideCalendar() {
  if (!isDropped ()) return;
  popupShell.setVisible (false);
  if (!isDisposed () && isFocusControl()) {
    setFocus();
  }
  display.removeFilter(SWT.MouseDown, clickListener); 
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
LRESULT WM_LBUTTONDBLCLK (int /*long*/ wParam, int /*long*/ lParam) {
  LRESULT result = super.WM_LBUTTONDBLCLK (wParam, lParam);
  if (isDisposed ()) return LRESULT.ZERO;
  if ((style & SWT.CALENDAR) != 0) {
    MCHITTESTINFO pMCHitTest = new MCHITTESTINFO ();
    pMCHitTest.cbSize = MCHITTESTINFO.sizeof;
    POINT pt = new POINT ();
    pt.x = OS.GET_X_LPARAM (lParam);
    pt.y = OS.GET_Y_LPARAM (lParam);
    pMCHitTest.pt = pt;
    int /*long*/ code = OS.SendMessage (handle, OS.MCM_HITTEST, 0, pMCHitTest);
    if ((code & OS.MCHT_CALENDARDATE) == OS.MCHT_CALENDARDATE) doubleClick = true;
  }
  return result;
}

代码示例来源:origin: org.xworker/xworker_swt

if(dateTime != null && !dateTime.isDisposed()){
  dateTime.setHours(calendar.get(Calendar.HOUR_OF_DAY));
  dateTime.setMinutes(calendar.get(Calendar.MINUTE));

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void popupCalendarEvent (Event event) {
  switch (event.type) {
    case SWT.Dispose:
      if (popupShell != null && !popupShell.isDisposed () && !isDisposed () && getShell () != popupShell.getParent ()) {
        int year = popupCalendar.getYear ();
        int month = popupCalendar.getMonth ();
      if (isDisposed ()) break;
      Event e = new Event ();
      e.time = event.time;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void popupCalendarEvent (Event event) {
  switch (event.type) {
    case SWT.Dispose:
      if (popupShell != null && !popupShell.isDisposed () && !isDisposed () && getShell () != popupShell.getParent ()) {
        int year = popupCalendar.getYear ();
        int month = popupCalendar.getMonth ();
      if (isDisposed ()) break;
      Event e = new Event ();
      e.time = event.time;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void popupCalendarEvent (Event event) {
  switch (event.type) {
    case SWT.Dispose:
      if (popupShell != null && !popupShell.isDisposed () && !isDisposed () && getShell () != popupShell.getParent ()) {
        int year = popupCalendar.getYear ();
        int month = popupCalendar.getMonth ();
      if (isDisposed ()) break;
      Event e = new Event ();
      e.time = event.time;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void handleFocus (int type) {
  if (isDisposed ()) return;
  switch (type) {
    case SWT.FocusIn: {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void handleFocus (int type) {
  if (isDisposed ()) return;
  switch (type) {
    case SWT.FocusIn: {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void handleFocus (int type) {
  if (isDisposed ()) return;
  switch (type) {
    case SWT.FocusIn: {

相关文章

DateTime类方法