# HG changeset patch # User Frank Benoit # Date 1199496560 -3600 # Node ID 5dfd6e42e2efa22f5c79f6f607ad655046165401 # Parent b8884f396ec8655d0f970f72d9d16df0d6023f34 some adapters diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/ArmListener.d --- a/org/eclipse/swt/events/ArmListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/ArmListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -10,8 +10,8 @@ *******************************************************************************/ module org.eclipse.swt.events.ArmListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.ArmEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.ArmEvent; /** * Classes which implement this interface provide a method diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/ControlAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/ControlAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,46 @@ +/******************************************************************************* + * 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.ControlAdapter; + +import org.eclipse.swt.events.ControlListener; +/** + * This adapter class provides default implementations for the + * methods described by the ControlListener interface. + *

+ * Classes that wish to deal with ControlEvents can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see ControlListener + * @see ControlEvent + */ +public abstract class ControlAdapter : ControlListener { + +/** + * Sent when the location (x, y) of a control changes relative + * to its parent (or relative to the display, for Shells). + * The default behavior is to do nothing. + * + * @param e an event containing information about the move + */ +public void controlMoved(ControlEvent e) { +} + +/** + * Sent when the size (width, height) of a control changes. + * The default behavior is to do nothing. + * + * @param e an event containing information about the resize + */ +public void controlResized(ControlEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/ControlListener.d --- a/org/eclipse/swt/events/ControlListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/ControlListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -10,8 +10,8 @@ *******************************************************************************/ module org.eclipse.swt.events.ControlListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.ControlEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.ControlEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/DisposeListener.d --- a/org/eclipse/swt/events/DisposeListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/DisposeListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.DisposeListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.DisposeEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.DisposeEvent; /** * Classes which implement this interface provide a method diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/DragDetectListener.d --- a/org/eclipse/swt/events/DragDetectListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/DragDetectListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.DragDetectListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.DragDetectEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.DragDetectEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/ExpandAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/ExpandAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,48 @@ +/******************************************************************************* + * 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.ExpandAdapter; + +import org.eclipse.swt.events.ExpandListener; + +/** + * This adapter class provides default implementations for the + * methods described by the ExpandListener interface. + *

+ * Classes that wish to deal with ExpandEvents can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see ExpandListener + * @see ExpandEvent + * + * @since 3.2 + */ +public abstract class ExpandAdapter : ExpandListener { + +/** + * Sent when an item is collapsed. + * The default behavior is to do nothing. + * + * @param e an event containing information about the operation + */ +public void itemCollapsed(ExpandEvent e) { +} + +/** + * Sent when an item is expanded. + * The default behavior is to do nothing. + * + * @param e an event containing information about the operation + */ +public void itemExpanded(ExpandEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/ExpandListener.d --- a/org/eclipse/swt/events/ExpandListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/ExpandListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.ExpandListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.ExpandEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.ExpandEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/FocusAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/FocusAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,46 @@ +/******************************************************************************* + * 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.FocusAdapter; + +import org.eclipse.swt.events.FocusListener; + +/** + * This adapter class provides default implementations for the + * methods described by the FocusListener interface. + *

+ * Classes that wish to deal with FocusEvents can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see FocusListener + * @see FocusEvent + */ +public abstract class FocusAdapter : FocusListener { + +/** + * Sent when a control gets focus. + * The default behavior is to do nothing. + * + * @param e an event containing information about the focus change + */ +public void focusGained(FocusEvent e) { +} + +/** + * Sent when a control loses focus. + * The default behavior is to do nothing. + * + * @param e an event containing information about the focus change + */ +public void focusLost(FocusEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/FocusListener.d --- a/org/eclipse/swt/events/FocusListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/FocusListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.FocusListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.FocusEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.FocusEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/HelpListener.d --- a/org/eclipse/swt/events/HelpListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/HelpListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.HelpListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.HelpEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.HelpEvent; /** * Classes which implement this interface provide a method diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/KeyAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/KeyAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,46 @@ +/******************************************************************************* + * 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.KeyAdapter; + +import org.eclipse.swt.events.KeyListener; + +/** + * This adapter class provides default implementations for the + * methods described by the KeyListener interface. + *

+ * Classes that wish to deal with KeyEvents can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see KeyListener + * @see KeyEvent + */ +public abstract class KeyAdapter : KeyListener { + +/** + * Sent when a key is pressed on the system keyboard. + * The default behavior is to do nothing. + * + * @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. + * The default behavior is to do nothing. + * + * @param e an event containing information about the key release + */ +public void keyReleased(KeyEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/KeyListener.d --- a/org/eclipse/swt/events/KeyListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/KeyListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.KeyListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.KeyEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.KeyEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/MenuAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/MenuAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,46 @@ +/******************************************************************************* + * 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.MenuAdapter; + +import org.eclipse.swt.events.MenuListener; + +/** + * This adapter class provides default implementations for the + * methods described by the MenuListener interface. + *

+ * Classes that wish to deal with MenuEvents can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see MenuListener + * @see MenuEvent + */ +public abstract class MenuAdapter : MenuListener { + +/** + * Sent when a menu is hidden. + * The default behavior is to do nothing. + * + * @param e an event containing information about the menu operation + */ +public void menuHidden(MenuEvent e) { +} + +/** + * Sent when a menu is shown. + * The default behavior is to do nothing. + * + * @param e an event containing information about the menu operation + */ +public void menuShown(MenuEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/MenuDetectListener.d --- a/org/eclipse/swt/events/MenuDetectListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/MenuDetectListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.MenuDetectListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.MenuDetectEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.MenuDetectEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/MenuListener.d --- a/org/eclipse/swt/events/MenuListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/MenuListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.MenuListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.MenuEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.MenuEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/ModifyListener.d --- a/org/eclipse/swt/events/ModifyListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/ModifyListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.ModifyListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.ModifyEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.ModifyEvent; /** * Classes which implement this interface provide a method diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/MouseAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/MouseAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,59 @@ +/******************************************************************************* + * 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.MouseAdapter; + +import org.eclipse.swt.events.MouseListener; + +/** + * This adapter class provides default implementations for the + * methods described by the MouseListener interface. + *

+ * Classes that wish to deal with MouseEvents + * which occur as mouse buttons are pressed and released can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see MouseListener + * @see MouseEvent + */ +public abstract class MouseAdapter : MouseListener { + +/** + * Sent when a mouse button is pressed twice within the + * (operating system specified) double click period. + * The default behavior is to do nothing. + * + * @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. + * The default behavior is to do nothing. + * + * @param e an event containing information about the mouse button press + */ +public void mouseDown(MouseEvent e) { +} + +/** + * Sent when a mouse button is released. + * The default behavior is to do nothing. + * + * @param e an event containing information about the mouse button release + */ +public void mouseUp(MouseEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/MouseListener.d --- a/org/eclipse/swt/events/MouseListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/MouseListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.MouseListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.MouseEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.MouseEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/MouseMoveListener.d --- a/org/eclipse/swt/events/MouseMoveListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/MouseMoveListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.MouseMoveListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.MouseEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.MouseEvent; /** * Classes which implement this interface provide a method diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/MouseTrackAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/MouseTrackAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,60 @@ +/******************************************************************************* + * 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.MouseTrackAdapter; + +import org.eclipse.swt.events.MouseTrackListener; + +/** + * This adapter class provides default implementations for the + * methods described by the MouseTrackListener interface. + *

+ * Classes that wish to deal with MouseEvents which + * occur as the mouse pointer passes (or hovers) over controls can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see MouseTrackListener + * @see MouseEvent + */ +public abstract class MouseTrackAdapter : MouseTrackListener { + +/** + * Sent when the mouse pointer passes into the area of + * the screen covered by a control. + * The default behavior is to do nothing. + * + * @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. + * The default behavior is to do nothing. + * + * @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. + * The default behavior is to do nothing. + * + * @param e an event containing information about the hover + */ +public void mouseHover(MouseEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/MouseTrackListener.d --- a/org/eclipse/swt/events/MouseTrackListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/MouseTrackListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.MouseTrackListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.MouseEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.MouseEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/MouseWheelListener.d --- a/org/eclipse/swt/events/MouseWheelListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/MouseWheelListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.MouseWheelListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.MouseEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.MouseEvent; /** * Classes which implement this interface provide a method diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/PaintListener.d --- a/org/eclipse/swt/events/PaintListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/PaintListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.PaintListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.PaintEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.PaintEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/SelectionAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/SelectionAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,46 @@ +/******************************************************************************* + * 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.SelectionAdapter; + +import org.eclipse.swt.events.SelectionListener; + +/** + * This adapter class provides default implementations for the + * methods described by the SelectionListener interface. + *

+ * Classes that wish to deal with SelectionEvents can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see SelectionListener + * @see SelectionEvent + */ +public abstract class SelectionAdapter : SelectionListener { + +/** + * Sent when selection occurs in the control. + * The default behavior is to do nothing. + * + * @param e an event containing information about the selection + */ +public void widgetSelected(SelectionEvent e) { +} + +/** + * Sent when default selection occurs in the control. + * The default behavior is to do nothing. + * + * @param e an event containing information about the default selection + */ +public void widgetDefaultSelected(SelectionEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/SelectionListener.d --- a/org/eclipse/swt/events/SelectionListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/SelectionListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.SelectionListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.SelectionEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.SelectionEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/ShellAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/ShellAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,73 @@ +/******************************************************************************* + * 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.ShellAdapter; + +import org.eclipse.swt.events.ShellListener; + +/** + * This adapter class provides default implementations for the + * methods described by the ShellListener interface. + *

+ * Classes that wish to deal with ShellEvents can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see ShellListener + * @see ShellEvent + */ +public abstract class ShellAdapter : ShellListener { + +/** + * Sent when a shell becomes the active window. + * The default behavior is to do nothing. + * + * @param e an event containing information about the activation + */ +public void shellActivated(ShellEvent e) { +} + +/** + * Sent when a shell is closed. + * The default behavior is to do nothing. + * + * @param e an event containing information about the close + */ +public void shellClosed(ShellEvent e) { +} + +/** + * Sent when a shell stops being the active window. + * The default behavior is to do nothing. + * + * @param e an event containing information about the deactivation + */ +public void shellDeactivated(ShellEvent e) { +} + +/** + * Sent when a shell is un-minimized. + * The default behavior is to do nothing. + * + * @param e an event containing information about the un-minimization + */ +public void shellDeiconified(ShellEvent e) { +} + +/** + * Sent when a shell is minimized. + * The default behavior is to do nothing. + * + * @param e an event containing information about the minimization + */ +public void shellIconified(ShellEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/ShellListener.d --- a/org/eclipse/swt/events/ShellListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/ShellListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.ShellListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.ShellEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.ShellEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/TraverseListener.d --- a/org/eclipse/swt/events/TraverseListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/TraverseListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.TraverseListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.TraverseEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.TraverseEvent; /** * Classes which implement this interface provide a method diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/TreeAdapter.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org/eclipse/swt/events/TreeAdapter.d Sat Jan 05 02:29:20 2008 +0100 @@ -0,0 +1,46 @@ +/******************************************************************************* + * 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.TreeAdapter; + +import org.eclipse.swt.events.TreeListener; + +/** + * This adapter class provides default implementations for the + * methods described by the TreeListener interface. + *

+ * Classes that wish to deal with TreeEvents can + * extend this class and override only the methods which they are + * interested in. + *

+ * + * @see TreeListener + * @see TreeEvent + */ +public abstract class TreeAdapter : TreeListener { + +/** + * Sent when a tree branch is collapsed. + * The default behavior is to do nothing. + * + * @param e an event containing information about the tree operation + */ +public void treeCollapsed(TreeEvent e) { +} + +/** + * Sent when a tree branch is expanded. + * The default behavior is to do nothing. + * + * @param e an event containing information about the tree operation + */ +public void treeExpanded(TreeEvent e) { +} +} diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/TreeListener.d --- a/org/eclipse/swt/events/TreeListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/TreeListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.TreeListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.TreeEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.TreeEvent; /** * Classes which implement this interface provide methods diff -r b8884f396ec8 -r 5dfd6e42e2ef org/eclipse/swt/events/VerifyListener.d --- a/org/eclipse/swt/events/VerifyListener.d Sat Jan 05 02:22:54 2008 +0100 +++ b/org/eclipse/swt/events/VerifyListener.d Sat Jan 05 02:29:20 2008 +0100 @@ -11,8 +11,8 @@ module org.eclipse.swt.events.VerifyListener; -import org.eclipse.swt.internal.SWTEventListener; -import org.eclipse.swt.events.VerifyEvent; +public import org.eclipse.swt.internal.SWTEventListener; +public import org.eclipse.swt.events.VerifyEvent; /** * Classes which implement this interface provide a method