|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
API of component usages. A component usage provides access to the interfaces of an embedded component and manages the lifecycle of an embedded component instance.
| Method Summary | |
void |
addEventHandler(IWDEventInfo event,
IWDEventHandlerInfo eventHandler,
IWDController controller)
Subscribe the specified event handler to the specified event. |
void |
createComponent()
Creates a component instance for this component usage. |
void |
createComponent(java.lang.String componentName)
Creates a component instance for this component usage. |
void |
createComponent(java.lang.String componentName,
java.lang.String deployableObjectName)
Creates a component instance for this component usage. |
IWDComponentUsage |
createComponentUsageOfSameType(java.lang.String name)
Creates a component usage with the given name which has the same component interface type assigned as this component usage. |
void |
deleteComponent()
Deletes the component instance associated with this component usage. |
void |
enterReferencingMode(IWDComponentUsage componentUsage)
Component usage does not manage its own component instance from now on. |
void |
enterReferencingModeUnsafe(IWDComponentUsage componentUsage)
Deprecated. This API may be withdrawn with the first new NetWeaver release in 2006. Use enterReferencingMode(IWDComponentUsage) instead. |
IWDComponentUsageInfo |
getComponentUsageInfo()
Returns the metadata describing this component usage. |
IWDExternalControllerInterface |
getConfigurationController()
Get the configuration controller of the component instance. |
IWDExternalControllerInterface |
getInterfaceController()
Get the interface controller of the component instance. |
boolean |
hasActiveComponent()
Returns true iff this component usage has an existing component instance. |
boolean |
isReferenced()
Returns true if this component usage is referenced to by other component usages. |
boolean |
isReferencing()
Returns true iff this component usage is in referencing mode. |
void |
leaveReferencingMode()
Restores the lifecycle manage of the component usage back to itself. |
void |
removeEventHandler(IWDEventInfo event,
IWDEventHandlerInfo eventHandler,
IWDController controller)
Unsubscribe the specified event handler from the specified event. |
| Method Detail |
public IWDComponentUsageInfo getComponentUsageInfo()
public void createComponent()
public void createComponent(java.lang.String componentName)
componentName - The fully qualified name of the Component
Implementation to use
public void createComponent(java.lang.String componentName,
java.lang.String deployableObjectName)
componentName - The fully qualified name of the Component
Implementation to usedeployableObjectName - Name of the deployable object which contains
the Component implementation to usepublic void deleteComponent()
public boolean hasActiveComponent()
public IWDExternalControllerInterface getInterfaceController()
public IWDExternalControllerInterface getConfigurationController()
public void enterReferencingMode(IWDComponentUsage componentUsage)
componentUsage.
Note: Accessing a visual interface via a component usage in referecing mode
ist not supported. Reverse context mapping via a component usage in
referencing mode is not supported. Nevertheless, the component's visual
interface and reverse context mapping can be used by the component usage
which refers to the component instnce without being in referencing mode.
Precondition: isReferencing() == true || hasActiveComponent() == false
Precondition: The referenced component usage and this component usage must
refer to comatible types. This condition is met if referencedUsage - component usage this component usage will refer topublic void enterReferencingModeUnsafe(IWDComponentUsage componentUsage)
enterReferencingMode(IWDComponentUsage) instead.
public void leaveReferencingMode()
public boolean isReferencing()
enterReferencingMode(IWDComponentUsage)public boolean isReferenced()
enterReferencingMode(IWDComponentUsage)public IWDComponentUsage createComponentUsageOfSameType(java.lang.String name)
name - the name of the component usage to create
public void addEventHandler(IWDEventInfo event,
IWDEventHandlerInfo eventHandler,
IWDController controller)
event - Repository object of the event to subscribe toeventHandler - Repository object of the event handlercontroller - Controller which owns the event handler
public void removeEventHandler(IWDEventInfo event,
IWDEventHandlerInfo eventHandler,
IWDController controller)
addEventHandler(IWDEventInfo, IWDEventHandlerInfo, IWDController)
.event - Repository object of the event to unsubscribe fromeventHandler - Repository object of the event handlercontroller - Controller which owns the event handler
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||