org.eclipse.swt.events.KeyEvent.toString()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(93)

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

KeyEvent.toString介绍

[英]Returns a string containing a concise, human-readable description of the receiver.
[中]返回一个字符串,该字符串包含接收器的简明易读描述。

代码示例

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
@Override
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " detail=" + detail
    + "}";
}
}

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " detail=" + detail
    + "}";
}
}

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
@Override
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " start=" + start
    + " end=" + end
    + " text=" + text
    + "}";
}
}

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
@Override
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " start=" + start
    + " end=" + end
    + " text=" + text
    + "}";
}
}

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
@Override
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " start=" + start
    + " end=" + end
    + " text=" + text
    + "}";
}
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Returns a string containing a concise, human-readable description of the
 * receiver.
 *
 * @return a string representation of the event
 */
@Override
public String toString() {
 String string = super.toString();
 return string.substring( 0, string.length() - 1 ) // remove trailing '}'
     + " detail="
     + detail
     + "}";
}

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
@Override
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " detail=" + detail
    + "}";
}
}

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
@Override
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " detail=" + detail
    + "}";
}
}

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " start=" + start
    + " end=" + end
    + " text=" + text
    + "}";
}
}

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
@Override
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " detail=" + detail
    + "}";
}
}

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

/**
 * Returns a string containing a concise, human-readable
 * description of the receiver.
 *
 * @return a string representation of the event
 */
@Override
public String toString() {
  String string = super.toString ();
  return string.substring (0, string.length() - 1) // remove trailing '}'
    + " start=" + start
    + " end=" + end
    + " text=" + text
    + "}";
}
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
  * Returns a string containing a concise, human-readable
  * description of the receiver.
  *
  * @return a string representation of the event
  */
 @Override
 public String toString() {
  String string = super.toString();
  return string.substring( 0, string.length() - 1 ) // remove trailing '}'
   // differs from SWT: no doit in superclass, thus add explicitly
   + " doit=" + doit
   + " start=" + start
   + " end=" + end
   + " text=" + text
   + "}";
 }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

switch (event.type) {
  case SWT.KeyDown:
  case SWT.KeyUp: toString += new KeyEvent (event).toString (); break;
  case SWT.MouseDown:
  case SWT.MouseUp:

相关文章