| 796 | |
| 797 | /// {@inheritDoc} |
| 798 | @Override |
| 799 | public void pointerPressed(int x, int y) { |
| 800 | Component leadParent = LeadUtil.leadParentImpl(this); |
| 801 | leadParent.clearDrag(); |
| 802 | leadParent.setDragActivated(false); |
| 803 | if (pointerPressedListeners != null && pointerPressedListeners.hasListeners()) { |
| 804 | pointerPressedListeners.fireActionEvent(new ActionEvent(this, ActionEvent.Type.PointerPressed, x, y)); |
| 805 | } |
| 806 | pressed(); |
| 807 | Form f = getComponentForm(); |
| 808 | // might happen when programmatically triggering press |
| 809 | if (f != null) { |
| 810 | f.addComponentAwaitingRelease(this); |
| 811 | } |
| 812 | } |
| 813 | |
| 814 | /// {@inheritDoc} |
| 815 | @Override |