WindowEvent to UIWindowEvent

To convert from AWT to AFC, instances of java.awt.event.WindowEvent should be transformed into instances of com.ms.ui.event.UIWindowEvent.

WindowEvent extends AWTEvent: be sure to see its changes.

 

Porting

This is the set of changes you need to make to port all WindowEvent methods to UIWindowEvent methods. Any method not listed here or below does not need to be changed.

 

AWT Code AFC Code Comments
WindowEvent(Object, int) UIWindowEvent(IUIComponent, int) In AFC, an IUIComponent is the source of a UIWindowEvent.

 

Unsupported Constants

Some constants in java.awt.event.WindowEvent are not directly supported in com.ms.ui.event.UIWindowEvent. Those constants are listed here.

WINDOW_FIRST

WINDOW_LAST