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
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.
public IUIComponent getChild();
Retrieves the child component that was added or removed in this event.
Return Value:
Returns the child IUIComponent.
public IUIContainer getContainer();
Retrieves the container where this event originated.
Return Value:
Returns the IUIContainer where the event originated.
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.
- 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.