/* The format is based on 1.5 release behavior
* which can be revealed by the following code:
*
* ContainerEvent e = new ContainerEvent(new Panel(),
* ContainerEvent.COMPONENT_ADDED,
* new Button("Button"));
* System.out.println(e);
*/
String idString = null;
switch (id) {
case COMPONENT_ADDED:
idString = "COMPONENT_ADDED"; //$NON-NLS-1$
break;
case COMPONENT_REMOVED:
idString = "COMPONENT_REMOVED"; //$NON-NLS-1$
break;
default:
idString = "unknown type"; //$NON-NLS-1$
}
return (idString + ",child=" + child.getName()); //$NON-NLS-1$