Packages
 In this topic

*Constructors

*Methods

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.ui.event   Previous This
Package
Next

 


Class UIAdjustmentEvent

public class UIAdjustmentEvent extends UIEvent
{
  // Fields
  public static final int ADJUSTMENT_VALUE_CHANGED;
  public static final int BLOCK_DECREMENT;
  public static final int BLOCK_INCREMENT;
  public static final int TRACK;
  public static final int UNIT_DECREMENT;
  public static final int UNIT_INCREMENT;

  // Constructors
  public UIAdjustmentEvent(IUIComponent source, int id, int type,
        int value);

  // Methods
  public int getAdjustmentType();
  public int getValue();
  public String paramString();
}

This class represents the adjustment event emitted by components implementing IUIScroll.

EventObject
  |
  +--UIBaseEvent
    |
    +--UIEvent
      |
      +--UIAdjustmentEvent

Constructors

UIAdjustmentEvent

public UIAdjustmentEvent(IUIComponent source, int id, int type, int value);

Creates a UIAdjustmentEvent object with the specified IUIScroll source, type, and value.

ParameterDescription
source The IUIScroll object where the event originated.
id The event type.
type The adjustment type.
value The current value of the adjustment.

Methods

getAdjustmentType

public int getAdjustmentType();

Retrieves the type of adjustment that caused the value changed event.

Return Value:

Returns one of the following adjustment types.
UNIT_INCREMENT UNIT_DECREMENT BLOCK_INCREMENT BLOCK_DECREMENT TRACK

getValue

public int getValue();

Retrieves the current value in the adjustment event.

Return Value:

Returns the value in the event.

paramString

public String paramString();

This method is used internally by the toString method.

Return Value:

Returns a formatted String object that assists with textual representation of the exception.

Fields

ADJUSTMENT_VALUE_CHANGED
The adjustment value changed event.
BLOCK_DECREMENT
The block decrement adjustment type.
BLOCK_INCREMENT
The block increment adjustment type.
TRACK
The absolute tracking adjustment type.
UNIT_DECREMENT
The unit decrement adjustment type.
UNIT_INCREMENT
The unit increment adjustment type.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.