Packages
 In this topic

*Constructors

*Methods

*Fields

 

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

 


Class UIItemEvent

public class UIItemEvent extends UIEvent
{
  // Fields
  public static final int DESELECTED;
  public static final int ITEM_STATE_CHANGED;
  public static final int SELECTED;

  // Constructors
  public UIItemEvent(IUIComponent source, int id, Object item,
        int stateChange);

  // Methods
  public Object getItem();
  public IUIComponent getItemSelectable();
  public int getStateChange();
  public String paramString();
}

This class generates an event when an item is selected or cleared.

EventObject
  |
  +--UIBaseEvent
    |
    +--UIEvent
      |
      +--UIItemEvent

Constructors

UIItemEvent

public UIItemEvent(IUIComponent source, int id, Object item,
        int stateChange);

Creates a ItemSelectEvent object with the specified IUIComponent source, type, item, and item select state.

ParameterDescription
source The IUIComponent object where the event originated.
id The event type.
item The item where the event occurred.
stateChange The state change type that caused the event.

Methods

getItem

public Object getItem();

Retrieves the object where the event occurred.

Return Value:

Returns the object where the event occurred.

getItemSelectable

public IUIComponent getItemSelectable();

Retrieves the IUIComponent object where the event originated.

Return Value:

Returns the component where the event originated.

getStateChange

public int getStateChange();

Retrieves the state change type that generated the event.

Return Value:

Returns the state change. This may be either SELECTED or DESELECTED.

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

DESELECTED
The item cleared state change type.
ITEM_STATE_CHANGED
The item state changed event type.
SELECTED
The item selected state change type.

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