com.sapportals.wcm.rendering.readymades

Class MetaPropertyComponent

java.lang.Object
  extended byBaseCompositeComponent
      extended bycom.sapportals.wcm.rendering.readymades.MetaPropertyComponent

public final class MetaPropertyComponent
extends BaseCompositeComponent

Since:
NetWeaver 04, SPS4 renders a metaproperty for a given IResource. Depending on the parameters, a contentlink for the resource can be rendered within for this property.
See Also:
Serialized Form

Constructor Summary
MetaPropertyComponent()
          must not be used!
MetaPropertyComponent(IResource resource, IProxy proxy, IMetaName metaName, boolean hasContentLink, IParameters parameters, ResourceStateType state)
          this constructor must be used when creating the component for rendering.
 
Method Summary
protected  Component buildContent()
           
protected  void initFromPageContextImpl(IPageContext pc, String baseId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaPropertyComponent

public MetaPropertyComponent()
must not be used! Only needed for htmlb-Framework generic calls. Usage will lead to a runtime exception in the buildContent()-method


MetaPropertyComponent

public MetaPropertyComponent(IResource resource,
                             IProxy proxy,
                             IMetaName metaName,
                             boolean hasContentLink,
                             IParameters parameters,
                             ResourceStateType state)
this constructor must be used when creating the component for rendering.

Parameters:
resource - the resource to render the property for. Must not be null.
proxy - the current proxy of the rendering process. Must not be null.
metaName - the metaName of the property to render. Must not be null.
hasContentLink - flag, stating if a link to the content of the resource should be rendered.
parameters - the parameters defining how the property should be rendered exactly. Must not be null.
state - the state of the resource. Might be null
Method Detail

buildContent

protected Component buildContent()

initFromPageContextImpl

protected void initFromPageContextImpl(IPageContext pc,
                                       String baseId)


Copyright 2006 SAP AG Complete Copyright Notice