|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.rendering.resource.ResourceNavigationRenderer
This class can be used to take care of the complete rendering of a resource.
The class uses the LayoutObject, set in the constructor to
retrieve all parametrization from the calling class. It then returns a Component
that is ready-to-use.
| Field Summary | |
static String |
BLANK
|
static String |
NBSP
|
static String |
START_URI
|
| Constructor Summary | |
ResourceNavigationRenderer(LayoutObject layoutObject,
IProxy proxy)
Sets the two member variables of the renderer with the values of the given parameters. |
|
| Method Summary | |
protected boolean |
isPreviewEnabled(IResource resource)
checks, if the current ui implements functionality to preview a resource. |
Component |
renderContentLink(IResource resource)
creates a link to show the content of the given resource. |
Component |
renderContentLink(IResource resource,
Component comp)
creates a link to show the content of the given resource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String NBSP
public static final String BLANK
public static final String START_URI
| Constructor Detail |
public ResourceNavigationRenderer(LayoutObject layoutObject,
IProxy proxy)
layoutObject - a layoutObject that holds all the parametrization to
create the correct rendering. Must not be null.proxy - the proxy that is used as the target control, when the
commands that are included in the returned Component
trigger Events.| Method Detail |
public Component renderContentLink(IResource resource,
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.
resource - Description of the paramcomp - Description of the param
WdfException - Exception raised in failure situation
WcmException
public Component renderContentLink(IResource resource)
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.
resource - Description of the param
WdfException - Exception raised in failure situation
WcmExceptionprotected boolean isPreviewEnabled(IResource resource)
ILayoutController
resource - Description of the param
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||