Packages
 In this topic

*Constructors

*Methods

*Fields

 

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

 


Class UIContainerEvent

public class UIContainerEvent extends UIEvent
{
  // Fields
  public static final int COMPONENT_ADDED;
  public static final int COMPONENT_REMOVED;

  // Constructors
  public UIContainerEvent(IUIComponent source, int id, IUIComponent
        child);

  // Methods
  public IUIComponent getChild();
  public IUIContainer getContainer();
  public String paramString();
}

This class generates container-level events. These events are provided for notification purposes only.

EventObject
  |
  +--UIBaseEvent
    |
    +--UIEvent
      |
      +--UIContainerEvent

Constructors

UIContainerEvent

public UIContainerEvent(IUIComponent source, int id, IUIComponent child);

Constructs a UIContainerEvent object with the specified source container, type, and child that is being added or removed.

ParameterDescription
source The IUIComponent where the event originated.
id The event type. This may be either COMPONENT_ADDED or COMPONENT_REMOVED.
child The child IUIComponent.

Methods

getChild

public IUIComponent getChild();

Retrieves the child component that was added or removed in this event.

Return Value:

Returns the child IUIComponent.

getContainer

public IUIContainer getContainer();

Retrieves the container where this event originated.

Return Value:

Returns the IUIContainer where the event originated.

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

COMPONENT_ADDED
An event identifier that signifies a component was added to a container.
COMPONENT_REMOVED
An event identifier that signifies a component was removed from a container.

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