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

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

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

Canvas.addKeyListener介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

canvas.addKeyListener( this );

代码示例来源:origin: pentaho/pentaho-kettle

canvas.addMouseTrackListener( this );
canvas.addMouseWheelListener( this );
canvas.addKeyListener( this );

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void addKeyListener(KeyListener listener) {
  super.addKeyListener(listener);
  addListener(KeyListener.class, listener);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void addKeyListener(KeyListener listener) {
  super.addKeyListener(listener);
  addListener(KeyListener.class, listener);
}

代码示例来源:origin: be.yildiz-games/module-window-swt

@Override
  public void registerInput(final WindowInputListener listener) {
    new SwtGameWindowMouseListener(this.gameWindow.getCanvas(), listener);
    SwtGameWindowKeyListener kl = SwtGameWindowKeyListener.create(listener);
    this.gameWindow.getCanvas().addKeyListener(kl);
    this.gameWindow.getCanvas().setFocus();

  }
}

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

canvas.setCaret (new Caret(canvas, SWT.NONE));
canvas.addKeyListener(new KeyAdapter() {
  @Override
  public void keyPressed(KeyEvent e) {

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

customButtonAction(actionIndex);
}));
customButton.addKeyListener(new KeyAdapter() {
  @Override
  public void keyPressed(KeyEvent e) {

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

canvas.setCaret (caret);
canvas.addKeyListener(new KeyAdapter() {
  @Override
  public void keyPressed(KeyEvent e) {
overrideCanvas.setCaret (caret);
overrideCanvas.addKeyListener(new KeyAdapter() {
  @Override
  public void keyPressed(KeyEvent e) {

相关文章

Canvas类方法