本文整理了Java中org.eclipse.swt.widgets.Canvas.addKeyListener()
方法的一些代码示例,展示了Canvas.addKeyListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.addKeyListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Canvas
类名称: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) {
内容来源于网络,如有侵权,请联系作者删除!