# HG changeset patch # User Frank Benoit # Date 1199496174 -3600 # Node ID b8884f396ec8655d0f970f72d9d16df0d6023f34 # Parent 088b30eabff3d8573cb084fddb1ada08f27e34fa some listeners diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/ControlListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/ControlListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,48 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.ControlListener; + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.ControlEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the events that are generated by moving + * and resizing controls. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addControlListener method and removed using + * the removeControlListener method. When a + * control is moved or resized, the appropriate method will + * be invoked. + *

+ * + * @see ControlAdapter + * @see ControlEvent + */ +public interface ControlListener : SWTEventListener { + +/** + * Sent when the location (x, y) of a control changes relative + * to its parent (or relative to the display, for Shells). + * + * @param e an event containing information about the move + */ +public void controlMoved(ControlEvent e); + +/** + * Sent when the size (width, height) of a control changes. + * + * @param e an event containing information about the resize + */ +public void controlResized(ControlEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/DragDetectListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/DragDetectListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,41 @@ +/******************************************************************************* + * Copyright (c) 2000, 2007 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.DragDetectListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.DragDetectEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the events that are generated when a drag + * gesture is detected. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addDragDetectListener method and removed using + * the removeDragDetectListener method. When the + * drag is detected, the drageDetected method will be invoked. + *

+ * + * @see DragDetectEvent + * + * @since 3.3 + */ +public interface DragDetectListener : SWTEventListener { + +/** + * Sent when a drag gesture is detected. + * + * @param e an event containing information about the drag + */ +public void dragDetected(DragDetectEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/ExpandListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/ExpandListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,50 @@ +/******************************************************************************* + * Copyright (c) 2000, 2006 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.ExpandListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.ExpandEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the expanding and collapsing of ExpandItems. + * + *

+ * After creating an instance of a class that : + * this interface it can be added to a ExpandBar + * control using the addExpandListener method and + * removed using the removeExpandListener method. + * When a item of the ExpandBar is expanded or + * collapsed, the appropriate method will be invoked. + *

+ * + * @see ExpandAdapter + * @see ExpandEvent + * + * @since 3.2 + */ +public interface ExpandListener : SWTEventListener { + +/** + * Sent when an item is collapsed. + * + * @param e an event containing information about the operation + */ +public void itemCollapsed(ExpandEvent e); + +/** + * Sent when an item is expanded. + * + * @param e an event containing information about the operation + */ +public void itemExpanded(ExpandEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/FocusListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/FocusListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,49 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.FocusListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.FocusEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the events that are generated as controls + * gain and lose focus. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addFocusListener method and removed using + * the removeFocusListener method. When a + * control gains or loses focus, the appropriate method + * will be invoked. + *

+ * + * @see FocusAdapter + * @see FocusEvent + */ +public interface FocusListener : SWTEventListener { + +/** + * Sent when a control gets focus. + * + * @param e an event containing information about the focus change + */ +public void focusGained(FocusEvent e); + +/** + * Sent when a control loses focus. + * + * @param e an event containing information about the focus change + */ +public void focusLost(FocusEvent e); +} + diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/HelpListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/HelpListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,41 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.HelpListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.HelpEvent; + +/** + * Classes which implement this interface provide a method + * that deals with the event that is generated when help is + * requested for a control, typically when the user presses F1. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addHelpListener method and removed using + * the removeHelpListener method. When help + * is requested for a control, the helpRequested method + * will be invoked. + *

+ * + * @see HelpEvent + */ +public interface HelpListener : SWTEventListener { + +/** + * Sent when help is requested for a control, typically + * when the user presses F1. + * + * @param e an event containing information about the help + */ +public void helpRequested(HelpEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/KeyListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/KeyListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,48 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.KeyListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.KeyEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the events that are generated as keys + * are pressed on the system keyboard. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addKeyListener method and removed using + * the removeKeyListener method. When a + * key is pressed or released, the appropriate method will + * be invoked. + *

+ * + * @see KeyAdapter + * @see KeyEvent + */ +public interface KeyListener : SWTEventListener { + +/** + * Sent when a key is pressed on the system keyboard. + * + * @param e an event containing information about the key press + */ +public void keyPressed(KeyEvent e); + +/** + * Sent when a key is released on the system keyboard. + * + * @param e an event containing information about the key release + */ +public void keyReleased(KeyEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/MenuDetectListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/MenuDetectListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,43 @@ +/******************************************************************************* + * Copyright (c) 2000, 2007 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.MenuDetectListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.MenuDetectEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the events that are generated when the + * platform-specific trigger for showing a context menu is + * detected. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control or TrayItem + * using the addMenuDetectListener method and + * removed using the removeMenuDetectListener method. + * When the context menu trigger occurs, the + * menuDetected method will be invoked. + *

+ * + * @see MenuDetectEvent + * + * @since 3.3 + */ +public interface MenuDetectListener : SWTEventListener { + +/** + * Sent when the platform-dependent trigger for showing a menu item is detected. + * + * @param e an event containing information about the menu detect + */ +public void menuDetected (MenuDetectEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/MenuListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/MenuListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,47 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.MenuListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.MenuEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the hiding and showing of menus. + *

+ * After creating an instance of a class that : + * this interface it can be added to a menu using the + * addMenuListener method and removed using + * the removeMenuListener method. When the + * menu is hidden or shown, the appropriate method will + * be invoked. + *

+ * + * @see MenuAdapter + * @see MenuEvent + */ +public interface MenuListener : SWTEventListener { + +/** + * Sent when a menu is hidden. + * + * @param e an event containing information about the menu operation + */ +public void menuHidden(MenuEvent e); + +/** + * Sent when a menu is shown. + * + * @param e an event containing information about the menu operation + */ +public void menuShown(MenuEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/ModifyListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/ModifyListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.ModifyListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.ModifyEvent; + +/** + * Classes which implement this interface provide a method + * that deals with the events that are generated when text + * is modified. + *

+ * After creating an instance of a class that : + * this interface it can be added to a text widget using the + * addModifyListener method and removed using + * the removeModifyListener method. When the + * text is modified, the modifyText method will be invoked. + *

+ * + * @see ModifyEvent + */ +public interface ModifyListener : SWTEventListener { + +/** + * Sent when the text is modified. + * + * @param e an event containing information about the modify + */ +public void modifyText(ModifyEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/MouseListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/MouseListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,58 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.MouseListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.MouseEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the events that are generated as mouse buttons + * are pressed. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addMouseListener method and removed using + * the removeMouseListener method. When a + * mouse button is pressed or released, the appropriate method + * will be invoked. + *

+ * + * @see MouseAdapter + * @see MouseEvent + */ +public interface MouseListener : SWTEventListener { + +/** + * Sent when a mouse button is pressed twice within the + * (operating system specified) double click period. + * + * @param e an event containing information about the mouse double click + * + * @see org.eclipse.swt.widgets.Display#getDoubleClickTime() + */ +public void mouseDoubleClick(MouseEvent e); + +/** + * Sent when a mouse button is pressed. + * + * @param e an event containing information about the mouse button press + */ +public void mouseDown(MouseEvent e); + +/** + * Sent when a mouse button is released. + * + * @param e an event containing information about the mouse button release + */ +public void mouseUp(MouseEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/MouseMoveListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/MouseMoveListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.MouseMoveListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.MouseEvent; + +/** + * Classes which implement this interface provide a method + * that deals with the events that are generated as the mouse + * pointer moves. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addMouseMoveListener method and removed using + * the removeMouseMoveListener method. As the + * mouse moves, the mouseMove method will be invoked. + *

+ * + * @see MouseEvent + */ +public interface MouseMoveListener : SWTEventListener { + +/** + * Sent when the mouse moves. + * + * @param e an event containing information about the mouse move + */ +public void mouseMove(MouseEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/MouseTrackListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/MouseTrackListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,60 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.MouseTrackListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.MouseEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the events that are generated as the mouse + * pointer passes (or hovers) over controls. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addMouseTrackListener method and removed using + * the removeMouseTrackListener method. When the + * mouse pointer passes into or out of the area of the screen + * covered by a control or pauses while over a control, the + * appropriate method will be invoked. + *

+ * + * @see MouseTrackAdapter + * @see MouseEvent + */ +public interface MouseTrackListener : SWTEventListener { + +/** + * Sent when the mouse pointer passes into the area of + * the screen covered by a control. + * + * @param e an event containing information about the mouse enter + */ +public void mouseEnter(MouseEvent e); + +/** + * Sent when the mouse pointer passes out of the area of + * the screen covered by a control. + * + * @param e an event containing information about the mouse exit + */ +public void mouseExit(MouseEvent e); + +/** + * Sent when the mouse pointer hovers (that is, stops moving + * for an (operating system specified) period of time) over + * a control. + * + * @param e an event containing information about the hover + */ +public void mouseHover(MouseEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/MouseWheelListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/MouseWheelListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,42 @@ +/******************************************************************************* + * Copyright (c) 2000, 2007 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.MouseWheelListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.MouseEvent; + +/** + * Classes which implement this interface provide a method + * that deals with the event that is generated as the mouse + * wheel is scrolled. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addMouseWheelListener method and removed using + * the removeMouseWheelListener method. When the + * mouse wheel is scrolled the mouseScrolled method + * will be invoked. + *

+ * + * @see MouseEvent + * + * @since 3.3 + */ +public interface MouseWheelListener : SWTEventListener { + +/** + * Sent when the mouse wheel is scrolled. + * + * @param e an event containing information about the mouse wheel action + */ +public void mouseScrolled (MouseEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/PaintListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/PaintListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,40 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.PaintListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.PaintEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the events that are generated when the + * control needs to be painted. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addPaintListener method and removed using + * the removePaintListener method. When a + * paint event occurs, the paintControl method will be + * invoked. + *

+ * + * @see PaintEvent + */ +public interface PaintListener : SWTEventListener { + +/** + * Sent when a paint event occurs for the control. + * + * @param e an event containing information about the paint + */ +public void paintControl(PaintEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/SelectionListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/SelectionListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,63 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.SelectionListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.SelectionEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the events that are generated when selection + * occurs in a control. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addSelectionListener method and removed using + * the removeSelectionListener method. When + * selection occurs in a control the appropriate method + * will be invoked. + *

+ * + * @see SelectionAdapter + * @see SelectionEvent + */ +public interface SelectionListener : SWTEventListener { + +/** + * Sent when selection occurs in the control. + *

+ * For example, selection occurs in a List when the user selects + * an item or items with the keyboard or mouse. On some platforms, + * the event occurs when a mouse button or key is pressed. On others, + * it happens when the mouse or key is released. The exact key or + * mouse gesture that causes this event is platform specific. + *

+ * + * @param e an event containing information about the selection + */ +public void widgetSelected(SelectionEvent e); + +/** + * Sent when default selection occurs in the control. + *

+ * For example, on some platforms default selection occurs in a List + * when the user double-clicks an item or types return in a Text. + * On some platforms, the event occurs when a mouse button or key is + * pressed. On others, it happens when the mouse or key is released. + * The exact key or mouse gesture that causes this event is platform + * specific. + *

+ * + * @param e an event containing information about the default selection + */ +public void widgetDefaultSelected(SelectionEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/ShellListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/ShellListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,68 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.ShellListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.ShellEvent; + +/** + * Classes which implement this interface provide methods + * that deal with changes in state of Shells. + *

+ * After creating an instance of a class that : + * this interface it can be added to a shell using the + * addShellListener method and removed using + * the removeShellListener method. When the + * state of the shell changes, the appropriate method will + * be invoked. + *

+ * + * @see ShellAdapter + * @see ShellEvent + */ +public interface ShellListener : SWTEventListener { + +/** + * Sent when a shell becomes the active window. + * + * @param e an event containing information about the activation + */ +public void shellActivated(ShellEvent e); + +/** + * Sent when a shell is closed. + * + * @param e an event containing information about the close + */ +public void shellClosed(ShellEvent e); + +/** + * Sent when a shell stops being the active window. + * + * @param e an event containing information about the deactivation + */ +public void shellDeactivated(ShellEvent e); + +/** + * Sent when a shell is un-minimized. + * + * @param e an event containing information about the un-minimization + */ +public void shellDeiconified(ShellEvent e); + +/** + * Sent when a shell is minimized. + * + * @param e an event containing information about the minimization + */ +public void shellIconified(ShellEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/TraverseListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/TraverseListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,47 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.TraverseListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.TraverseEvent; + +/** + * Classes which implement this interface provide a method + * that deals with the events that are generated when a + * traverse event occurs in a control. + *

+ * After creating an instance of a class that : + * this interface it can be added to a control using the + * addTraverseListener method and removed using + * the removeTraverseListener method. When a + * traverse event occurs in a control, the keyTraversed method + * will be invoked. + *

+ * + * @see TraverseEvent + */ +public interface TraverseListener : SWTEventListener { + +/** + * Sent when a traverse event occurs in a control. + *

+ * A traverse event occurs when the user presses a traversal + * key. Traversal keys are typically tab and arrow keys, along + * with certain other keys on some platforms. Traversal key + * constants beginning with TRAVERSE_ are defined + * in the SWT class. + *

+ * + * @param e an event containing information about the traverse + */ +public void keyTraversed(TraverseEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/TreeListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/TreeListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,48 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.TreeListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.TreeEvent; + +/** + * Classes which implement this interface provide methods + * that deal with the expanding and collapsing of tree + * branches. + *

+ * After creating an instance of a class that : + * this interface it can be added to a tree control using the + * addTreeListener method and removed using + * the removeTreeListener method. When a branch + * of the tree is expanded or collapsed, the appropriate method + * will be invoked. + *

+ * + * @see TreeAdapter + * @see TreeEvent + */ +public interface TreeListener : SWTEventListener { + +/** + * Sent when a tree branch is collapsed. + * + * @param e an event containing information about the tree operation + */ +public void treeCollapsed(TreeEvent e); + +/** + * Sent when a tree branch is expanded. + * + * @param e an event containing information about the tree operation + */ +public void treeExpanded(TreeEvent e); +} diff -r 088b30eabff3 -r b8884f396ec8 org/eclipse/swt/events/VerifyListener.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/VerifyListener.d Sat Jan 05 02:22:54 2008 +0100 @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +module org.eclipse.swt.events.VerifyListener; + + +import org.eclipse.swt.internal.SWTEventListener; +import org.eclipse.swt.events.VerifyEvent; + +/** + * Classes which implement this interface provide a method + * that deals with the events that are generated when text + * is about to be modified. + *

+ * After creating an instance of a class that : + * this interface it can be added to a text control using the + * addVerifyListener method and removed using + * the removeVerifyListener method. When the + * text is about to be modified, the verifyText method + * will be invoked. + *

+ * + * @see VerifyEvent + */ +public interface VerifyListener : SWTEventListener { + +/** + * Sent when the text is about to be modified. + *

+ * A verify event occurs after the user has done something + * to modify the text (typically typed a key), but before + * the text is modified. The doit field in the verify event + * indicates whether or not to modify the text. + *

+ * + * @param e an event containing information about the verify + */ +public void verifyText(VerifyEvent e); +}