Java Code Examples for org.eclipse.swt.events.KeyListener#keyReleased()

The following examples show how to use org.eclipse.swt.events.KeyListener#keyReleased() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MonthCalendar.java    From nebula with Eclipse Public License 2.0 6 votes vote down vote up
/** 
 * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent)
 */
public void keyReleased(KeyEvent e) {
	Day day = (Day) e.widget;
	Point coordinates = day.getMonthPosition();
	e.data = new MonthCalendarSelectedDay(day.getDate(), coordinates);

	for (Iterator<KeyListener> keyListenersIter = keyListeners.iterator(); keyListenersIter.hasNext();) {
		KeyListener listener = (KeyListener) keyListenersIter.next();
		listener.keyReleased(e);
	}

	// No need for this logic here yet, but leaving it commented
	// as a reminder...

	// if (!e.doit) return;
}
 
Example 2
Source File: DayEditor.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
public void keyReleased(KeyEvent e) {
	for (Iterator<KeyListener> i = keyListeners.iterator(); i.hasNext();) {
		KeyListener keyListener = i.next();
		keyListener.keyReleased(e);
		if (!e.doit)
			return;
	}
}
 
Example 3
Source File: CompositeTable.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
void fireKeyReleased(KeyEvent e) {
    for (Iterator i = keyEventListeners.iterator(); i.hasNext();) {
        KeyListener l = (KeyListener) i.next();
        l.keyReleased(e);
    }
}