ContainerEventpublic final class ContainerEvent extends EventObject General event for notifying listeners of significant changes on a Container. |
Fields Summary |
---|
private Container | containerThe Container on which this event occurred. | private Object | dataThe event data associated with this event. | private String | typeThe event type this instance represents. |
Constructors Summary |
---|
public ContainerEvent(Container container, String type, Object data)Construct a new ContainerEvent with the specified parameters.
super(container);
this.container = container;
this.type = type;
this.data = data;
|
Methods Summary |
---|
public Container | getContainer()Return the Container on which this event occurred.
return (this.container);
| public java.lang.Object | getData()Return the event data of this event.
return (this.data);
| public java.lang.String | getType()Return the event type of this event.
return (this.type);
| public java.lang.String | toString()Return a string representation of this event.
return ("ContainerEvent['" + getContainer() + "','" +
getType() + "','" + getData() + "']");
|
|