|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is used to render a single IResource and its
Properties. It is usually instantiated by the ResourceRendererFactory
. The interface has two kind of methods: either set/get methods to access the
member variables of the classes or methods that return an htmlb Component
- the actual rendering. Check also the ILayoutObject that
implements the functionality to communicate with the configuration of the
rendering framework.
| Field Summary | |
static int |
LINK_CONTENT
|
static int |
LINK_CONTENT_ONLY_FOLDERS
|
static int |
LINK_DETAILS
|
static int |
LINK_OFF
|
| Fields inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject |
DEF_VALUE, KEY, LINE_BREAK |
| Method Summary | |
java.util.Map |
getPropertyBag()
|
ResourceStateType |
getResourceState()
|
com.sapportals.htmlb.Component |
render()
renders the current IResource depending on the configuration
available for this resource and on the implementation of the rendering
class. |
com.sapportals.htmlb.Component |
render(IProperty property)
Deprecated. since EP6, SP2_CP |
com.sapportals.htmlb.Component |
render(IProperty property,
int linktype)
Deprecated. since EP6, SP2_CP |
com.sapportals.htmlb.Component |
render(IProperty property,
java.lang.String target)
Deprecated. since EP6, SP2_CP |
com.sapportals.htmlb.Component |
render(java.lang.String displayname,
int linktype)
Deprecated. since EP6, SP2_CP. Instead of this method, use |
com.sapportals.htmlb.Component |
renderAction()
Deprecated. since EP6, SP2_CP |
com.sapportals.htmlb.Component |
renderIcon()
Deprecated. since EP6, SP2_CP |
com.sapportals.htmlb.Component |
renderIconContentlink()
Deprecated. since EP6, SP2_CP |
com.sapportals.htmlb.Component |
renderImage()
Deprecated. since EP6, SP2_CP |
com.sapportals.htmlb.Component |
renderImageContentlink()
Deprecated. since EP6, SP2_CP |
com.sapportals.htmlb.Component |
renderMetaProperty(IMetaName metaName,
boolean hasContentLink)
renders the given metaName of the current IResource |
void |
setPropertyBag(java.util.Map propertyBag)
Set a property bag for the resource. |
void |
setPropertyNameList(IPropertyNameList propnamelist)
|
void |
setResource(IResource resource)
the resource to work with. |
void |
setResourceState(ResourceStateType type)
flag to tell the resource renderer that its IResource is in a
certain state. |
| Methods inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject |
getAlias, getConfiguration, getFlavor, getNewInstance, getParameter, getParameters, getSupportedParameters, is508enabled, setAlias, setFlavor, setParameter, setParameters, setProxy |
| Field Detail |
public static final int LINK_CONTENT_ONLY_FOLDERS
public static final int LINK_CONTENT
public static final int LINK_DETAILS
public static final int LINK_OFF
| Method Detail |
public void setPropertyNameList(IPropertyNameList propnamelist)
propnamelist - The new propertyNameList valuepublic void setResource(IResource resource)
nullresource - The new resource value
public com.sapportals.htmlb.Component render()
throws WcmException
IResource depending on the configuration
available for this resource and on the implementation of the rendering
class. This might lead to very different layouts and available
functionality. If a calling class (e.g. an ICollectionRenderer
requires a more uniform rendering, it can call the different render-methods
that allow the rendering of single attributes of the current IResource
.nullWcmException - Description of the Exception
public com.sapportals.htmlb.Component render(IProperty property)
throws WcmException
property - Description of the ParameterWcmException - Description of the Exception
public com.sapportals.htmlb.Component render(IProperty property,
int linktype)
throws WcmException
IResource.property - the property to renderlinktype - Description of the ParameterIResource as
clickable link. Must not return null.WcmException - Description of the Exception
public com.sapportals.htmlb.Component render(java.lang.String displayname,
int linktype)
throws WcmException
displayname - the name to render. If the value is null
or "".equals(displayname) or " ".equals(displayname
, the link will be rendered, but is not accesible, as html cannot
render empty Strings or Strings containing only " ".linktype - Description of the ParameterComponent. Must not
return nullWcmException - Description of the Exception
public com.sapportals.htmlb.Component render(IProperty property,
java.lang.String target)
throws WcmException
IResource as a link
to the given target.property - the property to rendertarget - Description of the ParameterWcmException - Description of the Exception
public com.sapportals.htmlb.Component renderMetaProperty(IMetaName metaName,
boolean hasContentLink)
throws WcmException
IResourcemetaName - Description of the ParameterhasContentLink - Description of the ParameterComponent. Must not
return null- Throws:
WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderIcon()
throws WcmException
WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderAction()
throws WcmException
IResourceWcmException - Description of the Exception
public com.sapportals.htmlb.Component renderIconContentlink()
throws WcmException
IResource
. Link behavior can vary for resources, links and foldersWcmException - Description of the Exception
public com.sapportals.htmlb.Component renderImage()
throws WcmException
WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderImageContentlink()
throws WcmException
IResource
. Link behavior can vary for resources, links and foldersWcmException - Description of the Exceptionpublic void setResourceState(ResourceStateType type)
IResource is in a
certain state. The renderer can decide, if the resource is displayed
differently, depending on parameters given and the paramters that are
supported by this renderertype - The new resourceState valuepublic ResourceStateType getResourceState()
IResource member variable of the
renderer.public java.util.Map getPropertyBag()
null if the specified resource is not contained in the list or no
property bag is associated with the resource.
public void setPropertyBag(java.util.Map propertyBag)
throws WcmException
propertyBag - Properties to store.WcmException - If the specified resource is not contained in the list.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||