|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.sapportals.wcm.rendering.resource.AbstractResourceRenderer
| Field Summary | |
static java.lang.String |
BLANK
|
static java.lang.String |
CM_RND_ACTION
|
static java.lang.String |
CM_RND_CHILDCOUNT
|
static java.lang.String |
CM_RND_CHILDCOUNT_WITH_BRACKETS
|
static java.lang.String |
CM_RND_COLLABORATION_STATUS
|
static java.lang.String |
CM_RND_CONTENT_LINK
|
static java.lang.String |
CM_RND_DESCRIPTION
|
static java.lang.String |
CM_RND_DISPLAYNAME
|
static java.lang.String |
CM_RND_ICON
|
static java.lang.String |
CM_RND_IMAGE
|
static java.lang.String |
CM_RND_LOCK
|
static java.lang.String |
CM_RND_SUBSCRIPTION
|
static java.lang.String |
COMMA
|
static java.lang.String |
DEFAULT_VISIBLE_PROPERTIES
|
static java.lang.String |
NBSP
|
| Fields inherited from interface com.sapportals.wcm.rendering.resource.IResourceRenderer |
LINK_CONTENT, LINK_CONTENT_ONLY_FOLDERS, LINK_DETAILS, LINK_OFF |
| Fields inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject |
DEF_VALUE, KEY, LINE_BREAK |
| Constructor Summary | |
AbstractResourceRenderer()
Constructor for the AbstractResourceRenderer object |
|
AbstractResourceRenderer(IProxy proxy,
IResource res)
Constructor for the AbstractResourceRenderer object |
|
| Method Summary | |
java.lang.String |
getAlias()
implementation of the ILayoutObject-interface ************ |
protected java.lang.String |
getCustomImage(IPropertyName propertyName)
returns the complete path to access the custom image-file specified for the current IResource of the renderer. |
protected java.lang.String |
getDefaultIcon()
|
IProperty |
getProperty(IPropertyName name)
Gets the property attribute of the AbstractResourceRenderer object |
java.util.Map |
getPropertyBag()
|
java.util.List |
getPropertyListByMetaName(IMetaName metaName)
Gets the propertyListByMetaName attribute of the AbstractResourceRenderer object |
protected IPropertyNameList |
getPropertyNameList()
|
protected IResource |
getResource()
|
ResourceStateType |
getResourceState()
Gets the resourceState attribute of the AbstractResourceRenderer object |
protected com.sapportals.wcm.control.util.property.IPropertyColumn[] |
getVisibleProperties()
|
protected void |
initialize()
This method is called by the constructor. |
protected IResourceRenderer |
initNewInstance(IResourceRenderer rr)
|
protected boolean |
isPreviewEnabled()
checks, if the current ui implements functionality to preview a resource. |
protected boolean |
isVisible()
|
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,
int linktype)
Description of the Method |
com.sapportals.htmlb.Component |
render(IProperty property,
java.lang.String target)
Description of the Method |
com.sapportals.htmlb.Component |
render(java.lang.String displayname,
int linktype)
Description of the Method |
com.sapportals.htmlb.Component |
renderAction()
Description of the Method |
protected com.sapportals.htmlb.Component |
renderContentLink(com.sapportals.htmlb.Component comp)
creates a link to show the content of the given resource. |
protected com.sapportals.htmlb.Component |
renderContentLink(IResource resource,
com.sapportals.htmlb.Component comp)
creates a link to show the content of the given resource. |
protected com.sapportals.htmlb.Component |
renderDetailsLink(IResource resource,
com.sapportals.htmlb.Component comp)
|
static com.sapportals.htmlb.Component |
renderEmptyTextView()
can be used by methods that cannot render their result (e.g. because of exceptions or missing/invalid parameters) and cannot return null . |
com.sapportals.htmlb.Component |
renderIcon()
Description of the Method |
com.sapportals.htmlb.Component |
renderIconContentlink()
Description of the Method |
com.sapportals.htmlb.Component |
renderImage()
Description of the Method |
com.sapportals.htmlb.Component |
renderImageContentlink()
Description of the Method |
com.sapportals.htmlb.Component |
renderMetaProperty(IMetaName metaName,
boolean hasContentLink)
Description of the Method |
void |
setAlias(java.lang.String alias)
Sets the alias attribute of the AbstractResourceRenderer object |
void |
setPropertyBag(java.util.Map propertyBag)
Set a property bag for the resource. |
void |
setPropertyNameList(IPropertyNameList propnamelist)
Sets the propertyNameList attribute of the AbstractResourceRenderer object |
void |
setResource(IResource resource)
Sets the resource attribute of the AbstractResourceRenderer object |
void |
setResourceState(ResourceStateType type)
implementation of the IResourceRenderer-interface ************* |
protected void |
writeDebugInformation()
|
| Methods inherited from interface com.sapportals.wcm.rendering.resource.IResourceRenderer |
render |
| Methods inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject |
getConfiguration, getFlavor, getNewInstance, getParameter, getParameters, getSupportedParameters, is508enabled, setFlavor, setParameter, setParameters, setProxy |
| Field Detail |
public static final java.lang.String NBSP
public static final java.lang.String BLANK
public static final java.lang.String COMMA
public static final java.lang.String CM_RND_ACTION
public static final java.lang.String CM_RND_DISPLAYNAME
public static final java.lang.String CM_RND_ICON
public static final java.lang.String CM_RND_IMAGE
public static final java.lang.String CM_RND_DESCRIPTION
public static final java.lang.String CM_RND_LOCK
public static final java.lang.String CM_RND_CHILDCOUNT
public static final java.lang.String CM_RND_CHILDCOUNT_WITH_BRACKETS
public static final java.lang.String CM_RND_COLLABORATION_STATUS
public static final java.lang.String CM_RND_CONTENT_LINK
public static final java.lang.String CM_RND_SUBSCRIPTION
public static final java.lang.String DEFAULT_VISIBLE_PROPERTIES
| Constructor Detail |
public AbstractResourceRenderer(IProxy proxy,
IResource res)
proxy - Description of the paramres - Description of the parampublic AbstractResourceRenderer()
| Method Detail |
protected final IResourceRenderer initNewInstance(IResourceRenderer rr)
public final java.lang.String getAlias()
getAlias in interface ILayoutObjectpublic final void setAlias(java.lang.String alias)
setAlias in interface ILayoutObjectalias - The new alias valuepublic final void setResourceState(ResourceStateType type)
setResourceState in interface IResourceRenderertype - The new resourceState valuepublic final ResourceStateType getResourceState()
getResourceState in interface IResourceRendererpublic final void setResource(IResource resource)
setResource in interface IResourceRendererresource - The new resource value
public com.sapportals.htmlb.Component render()
throws WcmException
IResourceRendererIResource 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
.render in interface IResourceRendererWcmException - Description of the Exception
public com.sapportals.htmlb.Component render(IProperty property,
int linktype)
throws WcmException
render in interface IResourceRendererproperty - Description of the paramlinktype - Description of the paramWcmException - Description of the Exception
public com.sapportals.htmlb.Component render(java.lang.String displayname,
int linktype)
throws WcmException
render in interface IResourceRendererdisplayname - Description of the paramlinktype - Description of the paramWcmException - Description of the Exception
public com.sapportals.htmlb.Component render(IProperty property,
java.lang.String target)
throws WcmException
render in interface IResourceRendererproperty - Description of the paramtarget - Description of the paramWcmException - Description of the Exception
public com.sapportals.htmlb.Component renderAction()
throws WcmException
renderAction in interface IResourceRendererWcmException - Description of the Exception
public com.sapportals.htmlb.Component renderIcon()
throws WcmException
renderIcon in interface IResourceRendererWcmException - Description of the Exception
public com.sapportals.htmlb.Component renderIconContentlink()
throws WcmException
renderIconContentlink in interface IResourceRendererWcmException - Description of the Exception
public com.sapportals.htmlb.Component renderImage()
throws WcmException
renderImage in interface IResourceRendererWcmException - Description of the Exception
public com.sapportals.htmlb.Component renderImageContentlink()
throws WcmException
renderImageContentlink in interface IResourceRendererWcmException - Description of the Exceptionpublic final void setPropertyNameList(IPropertyNameList propnamelist)
setPropertyNameList in interface IResourceRendererpropnamelist - The new propertyNameList valueprotected void initialize()
render methods. If this method is not overwritten by the extending
class, no parameters will be passed to this class and its behavior remains unchanged
regardless of settings done for this resource (e.g. in iView settings)protected final IResource getResource()
protected final IPropertyNameList getPropertyNameList()
protected final java.lang.String getDefaultIcon()
throws WcmException
WcmException - Description of the ExceptionWdfException, - that holds the WcmException thrown in
the called framework methods.
protected com.sapportals.htmlb.Component renderContentLink(IResource resource,
com.sapportals.htmlb.Component comp)
throws WcmException
ICollection, the link will navigate into the contents of this
collection. If a preview control is available, the link will trigger an eent
to display the contents in this control. Otherwise, the resource will be displayed
in a new browser window. If a WcmException is thrown while execution,
the given Component will be returned without a link.comp - Description of the paramresource - Description of the paramWcmException - Description of the Exception
protected com.sapportals.htmlb.Component renderContentLink(com.sapportals.htmlb.Component comp)
throws WcmException
ICollection, the link will navigate into the contents of this
collection. If a preview control is available, the link will trigger an eent
to display the contents in this control. Otherwise, the resource will be displayed
in a new browser window. If a WcmException is thrown while execution,
the given Component will be returned without a link.comp - Description of the paramWcmException - Description of the Exception
protected com.sapportals.htmlb.Component renderDetailsLink(IResource resource,
com.sapportals.htmlb.Component comp)
throws WcmException
resource - Description of the paramcomp - Description of the paramIResource
. This link will open a new browser-window. It uses the RendererResourceLink
to calculate the link-referenceWcmException - Description of the Exceptionpublic static com.sapportals.htmlb.Component renderEmptyTextView()
null .protected final boolean isVisible()
protected final java.lang.String getCustomImage(IPropertyName propertyName)
throws WcmException
IResource of the renderer. If none is specified or if an
exception occurs, the method returns null. If an exception occurs,
the default-icon is returned. The caught exception WcmException
is self-logging, so no logging is needed. Please note, that a user with missing
permissions will not be able to retrieve the custom image and therefore the
default image is returned, although a custom image is defined for the resource.propertyName - Description of the paramWcmException - Description of the ExceptionWdfException - If also the default icon is not availableprotected final com.sapportals.wcm.control.util.property.IPropertyColumn[] getVisibleProperties()
IPropertyColumn[] that is created out of the information
from the IParameters set for this renderer. Might return nullprotected boolean isPreviewEnabled()
ILayoutControllerprotected final void writeDebugInformation()
public com.sapportals.htmlb.Component renderMetaProperty(IMetaName metaName,
boolean hasContentLink)
throws WcmException
renderMetaProperty in interface IResourceRenderermetaName - Description of the paramhasContentLink - Description of the paramWcmException - Description of the Exception
public IProperty getProperty(IPropertyName name)
throws WcmException
name - Description of the paramWcmException - Exception raised in failure situation
public java.util.List getPropertyListByMetaName(IMetaName metaName)
throws WcmException
metaName - Description of the paramWcmException - Exception raised in failure situationpublic java.util.Map getPropertyBag()
getPropertyBag in interface IResourceRenderernull 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
setPropertyBag in interface IResourceRendererpropertyBag - 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 | |||||||||