TextEvent to UITextEvent

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.

 

Porting

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.

 

Unsupported Constants

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