diff dwt/custom/TextChangeListener.d @ 41:6337764516f1

Sync dwt/custom with dwt-linux (took copy of complete folder)
author Frank Benoit <benoit@tionex.de>
date Tue, 07 Oct 2008 16:29:55 +0200
parents 380af2bdd8e5
children
line wrap: on
line diff
--- a/dwt/custom/TextChangeListener.d	Tue Oct 07 14:41:31 2008 +0200
+++ b/dwt/custom/TextChangeListener.d	Tue Oct 07 16:29:55 2008 +0200
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*******************************************************************************
  * 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
@@ -7,33 +7,37 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ * Port to the D programming language:
+ *     Frank Benoit <benoit@tionex.de>
  *******************************************************************************/
-module dwt.custom;
+module dwt.custom.TextChangeListener;
 
 
 import dwt.internal.DWTEventListener;
+import dwt.custom.TextChangingEvent;
+import dwt.custom.TextChangedEvent;
 
 /**
- * The StyledText widget : this listener to receive
+ * The StyledText widget implements this listener to receive
  * notifications when changes to the model occur.
- * It is not intended to be implemented by clients or by 
- * implementors of StyledTextContent. 
- * Clients should listen to the ModifyEvent or ExtendedModifyEvent 
- * that is sent by the StyledText widget to receive text change 
+ * It is not intended to be implemented by clients or by
+ * implementors of StyledTextContent.
+ * Clients should listen to the ModifyEvent or ExtendedModifyEvent
+ * that is sent by the StyledText widget to receive text change
  * notifications.
  * Implementors of StyledTextContent should call the textChanging
- * and textChanged methods when text changes occur as described 
- * below. If the entire text is replaced the textSet method 
+ * and textChanged methods when text changes occur as described
+ * below. If the entire text is replaced the textSet method
  * should be called instead.
  */
 public interface TextChangeListener : DWTEventListener {
 
 /**
  * This method is called when the content is about to be changed.
- * Callers also need to call the textChanged method after the 
- * content change has been applied. The widget only updates the 
- * screen properly when it receives both events. 
- * 
+ * Callers also need to call the textChanged method after the
+ * content change has been applied. The widget only updates the
+ * screen properly when it receives both events.
+ *
  * @param event the text changing event. All event fields need
  *  to be set by the sender.
  * @see TextChangingEvent
@@ -41,18 +45,18 @@
 public void textChanging(TextChangingEvent event);
 /**
  * This method is called when the content has changed.
- * Callers need to have called the textChanging method prior to 
- * applying the content change and calling this method. The widget 
+ * Callers need to have called the textChanging method prior to
+ * applying the content change and calling this method. The widget
  * only updates the screen properly when it receives both events.
- * 
+ *
  * @param event the text changed event
  */
 public void textChanged(TextChangedEvent event);
 /**
- * This method is called instead of the textChanging/textChanged 
- * combination when the entire old content has been replaced 
+ * This method is called instead of the textChanging/textChanged
+ * combination when the entire old content has been replaced
  * (e.g., by a call to StyledTextContent.setText()).
- * 
+ *
  * @param event the text changed event
  */
 public void textSet(TextChangedEvent event);