AdjustmentEvent to UIAdjustmentEvent

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

AdjustmentEvent extends AWTEvent: be sure to see its changes.

Purpose and Usage

AFC provides an adapter class UIAdjustmentAdapter for adjustment events.

 

Porting

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

 

AWT Code AFC Code Comments
AdjustmentEvent(Adjustable, int, int, int) UIAdjustmentEvent(IUIComponent, int, int, int) AFC associates an IUIComponent with UIAdjustmentEvents. This implements the IUIScroll interface: see Adjustable for more information.

 

Unsupported Methods

Some methods in java.awt.event.AdjustmentEvent are not directly supported in com.ms.ui.event.UIAdjustmentEvent. Those methods and suggested changes are described here.

 

AWT Code/Suggested AFC Code Comments
ADJUSTMENT_FIRST

(no suggestions)

 
ADJUSTMENT_LAST

(no suggestions)

 
getAdjustable()

getSource()

The source object returned implements the IUIScroll interface: see Adjustable for more information.