To convert from AWT to AFC, instances of java.awt.event.TextEvent should be transformed into instances of com.ms.ui.event.UITextEvent.
TextEvent extends AWTEvent: be sure to see its changes.
This is the set of changes you need to make to port all TextEvent methods to UITextEvent methods. Any method not listed here or below does not need to be changed.
AWT Code | AFC Code | Comments |
TextEvent(Object, int) | UITextEvent(IUIComponent, int) | In AFC, an IUIComponent is the source of a UITextEvent. |
Some constants in java.awt.event.TextEvent are not directly supported in com.ms.ui.event.UITextEvent. Those constants are listed here.
TEXT_FIRST
TEXT_LAST