@Override public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER) { treeClickAction(); } } });
public void mousePressed (MouseEvent event) { movingIndex = overIndex; moveAll = event.isControlDown(); if (moveAll) { moveAllProportionally = event.isShiftDown(); moveAllPrevY = event.getY(); } }
public boolean isCellEditable(EventObject anEvent) { if (anEvent instanceof MouseEvent) { if (((MouseEvent) anEvent).getClickCount() < _clickCountToStart) { return false; } } return true; }
@Override public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() % 2 == 0 && !evt.isConsumed()) { evt.consume(); String str = getSelectedText(); if (str != null) { highlightAllMatches(str); } } else { highlightAllMatches(null); } } });
protected void notifyActionListeners() { if (_listener != null) { _listener.actionPerformed(_event); } }
public boolean touchUp (int x, int y, int pointer, int button) { ParticleEditor.this.dispatchEvent(new WindowEvent(ParticleEditor.this, WindowEvent.WINDOW_LOST_FOCUS)); ParticleEditor.this.dispatchEvent(new WindowEvent(ParticleEditor.this, WindowEvent.WINDOW_GAINED_FOCUS)); ParticleEditor.this.requestFocusInWindow(); return false; }
public void mousePressed (MouseEvent event) { movingIndex = overIndex; moveAll = event.isControlDown(); if (moveAll) { moveAllProportionally = event.isShiftDown(); moveAllPrevY = event.getY(); } }
@Override public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { useSourceLines = !useSourceLines; repaint(); } } });
max.setOnEditorActionListener(new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if ((event != null && (event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) || (actionId == EditorInfo.IME_ACTION_DONE)) { Log.i(TAG,"Enter pressed"); } return false; } });
public boolean touchUp (int x, int y, int pointer, int button) { ParticleEditor.this.dispatchEvent(new WindowEvent(ParticleEditor.this, WindowEvent.WINDOW_LOST_FOCUS)); ParticleEditor.this.dispatchEvent(new WindowEvent(ParticleEditor.this, WindowEvent.WINDOW_GAINED_FOCUS)); ParticleEditor.this.requestFocusInWindow(); return false; }
@Override public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2) { openSelectedItem(); } } });
@Override public boolean onKeyPreIme(int keyCode, KeyEvent event) { if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) { // Do your thing. return true; // So it is not propagated. } return super.dispatchKeyEvent(event); }
public void mouseClicked (MouseEvent evt) { if (evt.getClickCount() == 2 && addEffectButton.isEnabled()) addEffectButton.doClick(); } });
@Override public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER) { openSelectedItem(); } } });
public void mouseClicked (MouseEvent evt) { if (evt.getClickCount() == 2 && addEffectButton.isEnabled()) addEffectButton.doClick(); } });