com.sapportals.wcm.crt.component
Class ComponentEvent
java.lang.Object
com.sapportals.wcm.crt.component.ComponentEvent
- public class ComponentEvent
- extends Object
The event contains the component's URI and java class object. The class
object can be used in event handler code to check for the type of a
component. For example the components interfaces can be queried (instead of
looking up the component first and using instanceof ):
if (ISomeInterface.class.isAssignableFrom(event.getComponentClass())) {
ISomeInterface c = (ISomeInterface)CrtSystem.getInstance().lookupComponentByUri(event.getComponentUri());
}
Copyright (c) SAP AG 2001-2002
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentEvent
public ComponentEvent(ComponentUri uri,
Class componentClass,
ComponentEvent.Type type)
getComponentUri
public ComponentUri getComponentUri()
getComponentClass
public Class getComponentClass()
getType
public ComponentEvent.Type getType()
Copyright 2006 SAP AG Complete Copyright Notice