@Override public void mouseOver(Component component) { super.mouseOver(component); final Menu.Item menuItem = (Menu.Item)getComponent(); menuItem.setActive(true); if (buttonPressCallback != null) { buttonPressCallback.cancel(); buttonPressCallback = null; } if (menuItem.getMenu() != null) { buttonPressCallback = ApplicationContext.scheduleCallback(new Runnable() { @Override public void run() { menuItem.press(); } }, buttonPressInterval); } }
@Override public boolean mouseUp(Component component, Mouse.Button button, int x, int y) { boolean consumed = super.mouseUp(component, button, x, y); if (Mouse.getCapturer() == component) { // Stop the scroll selection timer if (scheduledScrollSelectionCallback != null) { scheduledScrollSelectionCallback.cancel(); scheduledScrollSelectionCallback = null; } Mouse.release(); } scrollDirection = null; mouseX = -1; return consumed; }
@Override public boolean mouseUp(Component component, Mouse.Button button, int x, int y) { boolean consumed = super.mouseUp(component, button, x, y); if (Mouse.getCapturer() == component) { // Stop the scroll selection timer if (scheduledScrollSelectionCallback != null) { scheduledScrollSelectionCallback.cancel(); scheduledScrollSelectionCallback = null; } Mouse.release(); } anchor = -1; scrollDirection = null; mouseX = -1; return consumed; }
@Override public boolean mouseUp(Component component, Mouse.Button button, int x, int y) { boolean consumed = super.mouseUp(component, button, x, y); if (Mouse.getCapturer() == component) { // Stop the scroll selection timer if (scheduledScrollSelectionCallback != null) { scheduledScrollSelectionCallback.cancel(); scheduledScrollSelectionCallback = null; } Mouse.release(); } anchor = -1; scrollDirection = null; mouseX = -1; return consumed; }
private void showCaret(boolean show) { if (scheduledBlinkCaretCallback != null) { scheduledBlinkCaretCallback.cancel(); } if (show) { caretOn = true; scheduledBlinkCaretCallback = ApplicationContext.scheduleRecurringCallback(blinkCaretCallback, Platform.getCursorBlinkRate()); // Run the callback once now to show the cursor immediately blinkCaretCallback.run(); } else { scheduledBlinkCaretCallback = null; } }
private void showCaret(boolean show) { if (scheduledBlinkCaretCallback != null) { scheduledBlinkCaretCallback.cancel(); } if (show) { caretOn = true; scheduledBlinkCaretCallback = ApplicationContext.scheduleRecurringCallback(blinkCaretCallback, Platform.getCursorBlinkRate()); // Run the callback once now to show the cursor immediately blinkCaretCallback.run(); } else { scheduledBlinkCaretCallback = null; } }
private void showCaret(boolean show) { if (scheduledBlinkCaretCallback != null) { scheduledBlinkCaretCallback.cancel(); } if (show) { caretOn = true; scheduledBlinkCaretCallback = ApplicationContext.scheduleRecurringCallback( blinkCaretCallback, Platform.getCursorBlinkRate()); // Run the callback once now to show the cursor immediately blinkCaretCallback.run(); } else { scheduledBlinkCaretCallback = null; } } }
private void showCaret(boolean show) { if (scheduledBlinkCaretCallback != null) { scheduledBlinkCaretCallback.cancel(); } if (show) { caretOn = true; scheduledBlinkCaretCallback = ApplicationContext.scheduleRecurringCallback( blinkCaretCallback, Platform.getCursorBlinkRate()); // Run the callback once now to show the cursor immediately blinkCaretCallback.run(); } else { scheduledBlinkCaretCallback = null; } } }
@Override public void mouseOut(Component component) { super.mouseOut(component); if (buttonPressCallback != null) { buttonPressCallback.cancel(); buttonPressCallback = null; } if (!menuPopup.isOpen()) { Menu.Item menuItem = (Menu.Item)getComponent(); menuItem.setActive(false); } }
protected boolean mouseDown(Mouse.Button button, int x, int y) { boolean consumed = false; if (isEnabled()) { if (triggerTooltipCallback != null) { triggerTooltipCallback.cancel(); triggerTooltipCallback = null; } consumed = componentMouseButtonListeners.mouseDown(this, button, x, y); } return consumed; }
@Override public boolean mouseDown(Component component, Mouse.Button button, int x, int y) { boolean consumed = super.mouseDown(component, button, x, y); if (buttonPressCallback != null) { buttonPressCallback.cancel(); buttonPressCallback = null; } return consumed; }
protected boolean mouseDown(Mouse.Button button, int xArgument, int yArgument) { boolean consumed = false; if (isEnabled()) { if (triggerTooltipCallback != null) { triggerTooltipCallback.cancel(); triggerTooltipCallback = null; } consumed = componentMouseButtonListeners.mouseDown(this, button, xArgument, yArgument); } return consumed; }
public void stop() { if (scheduledCallback != null) { scheduledCallback.cancel(); } scheduledCallback = null; movieListeners.movieStopped(this); }
@Override public void mouseOut(Component component) { super.mouseOut(component); if (buttonPressCallback != null) { buttonPressCallback.cancel(); buttonPressCallback = null; } if (!menuPopup.isOpen()) { Menu.Item menuItem = (Menu.Item)getComponent(); menuItem.setActive(false); } }
protected void mouseOut() { if (isEnabled()) { mouseLocation = null; if (triggerTooltipCallback != null) { triggerTooltipCallback.cancel(); triggerTooltipCallback = null; } componentMouseListeners.mouseOut(this); } }
public void stop() { if (scheduledCallback != null) { scheduledCallback.cancel(); } scheduledCallback = null; movieListeners.movieStopped(this); }
/** * Stops the transition. Does not fire a * {@link TransitionListener#transitionCompleted(Transition)} event. */ public void stop() { if (transitionCallback != null) { transitionCallback.cancel(); } transitionCallback = null; }
protected void mouseOut() { if (isEnabled()) { mouseLocation = null; if (triggerTooltipCallback != null) { triggerTooltipCallback.cancel(); triggerTooltipCallback = null; } componentMouseListeners.mouseOut(this); } }
@Override public boolean mouseDown(Component component, Mouse.Button button, int x, int y) { boolean consumed = super.mouseDown(component, button, x, y); if (buttonPressCallback != null) { buttonPressCallback.cancel(); buttonPressCallback = null; } return consumed; }
/** * Stops the transition. Does not fire a * {@link TransitionListener#transitionCompleted(Transition)} event. */ public void stop() { if (transitionCallback != null) { transitionCallback.cancel(); } transitionCallback = null; }