|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.sapportals.wcm.rendering.uicommand.UICommandRenderer
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.
| Constructor Summary | |
UICommandRenderer(ILayoutObject layoutObject,
IProxy proxy)
Sets the two member variables of the renderer with the values of the given parameters. |
|
UICommandRenderer(com.sapportals.wcm.repository.service.layout.customizing.IParameters parameters,
IProxy proxy)
|
|
UICommandRenderer(LayoutObject layoutObject,
IProxy proxy)
Sets the two member variables of the renderer with the values of the given parameters. |
|
| Method Summary | |
static com.sapportals.htmlb.Component |
getCommandIconComponent(IUIBaseCommand command,
IResource resource)
|
com.sapportals.htmlb.Component |
renderAction(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
renders the IUIGroupCommand defined for the given resource. |
com.sapportals.htmlb.Component |
renderAsIcon(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
renders the IUIGroupCommand defined for the given resource as
a hover menu, opening from an icon. |
com.sapportals.htmlb.Component |
renderAsLink(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
renders the IUIGroupCommand defined for the given resource as
a list of links. |
com.sapportals.htmlb.Component |
renderCollectionAction(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
renders the IUIGroupCommand defined for the given resource. |
com.sapportals.htmlb.Component |
renderCommandContentLink(IResource resource,
java.lang.String commandAlias,
com.sapportals.htmlb.Component comp)
Renders the command contentLink modifier for a given command alias and a given comp If commandAlias is null or the resource is null then it returns the given Component |
com.sapportals.htmlb.Component |
renderMassAction(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
renders the IUIGroupCommand defined for the given resource. |
| Constructor Detail |
public UICommandRenderer(com.sapportals.wcm.repository.service.layout.customizing.IParameters parameters,
IProxy proxy)
public UICommandRenderer(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.
public UICommandRenderer(ILayoutObject 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 com.sapportals.htmlb.Component renderMassAction(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
throws WcmException
IUIGroupCommand defined for the given resource.res - the resource IUIGroupCommand is
needed for.parameterName - the parameterName that specifies, which parameter
holds the information which groupcommand to renderComponent that holds the defined
IUIGroupCommand and its children as Components. This
method checks first, if the parameter with key IResourceRendererParameterNameConst.COLLECTION_ACTIONSTYLE
is set. If it is not set, the default IParameterNameConst.ACTIONSTYLE_HOVER
is used. If that parameter holds an invalid value, an empty TextView
is returned.WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderCollectionAction(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
throws WcmException
IUIGroupCommand defined for the given resource.res - the resource IUIGroupCommand is
needed for.parameterName - the parameterName that specifies, which parameter
holds the information which groupcommand to renderComponent that holds the defined
IUIGroupCommand and its children as Components. This
method checks first, if the parameter with key IResourceRendererParameterNameConst.COLLECTION_ACTIONSTYLE
is set. If it is not set, the default IParameterNameConst.ACTIONSTYLE_HOVER
is used. If that parameter holds an invalid value, an empty TextView
is returned.WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderAction(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
throws WcmException
IUIGroupCommand defined for the given resource.res - the resource IUIGroupCommand is
needed for.parameterName - the parameterName that specifies, which parameter
holds the information which groupcommand to renderComponent that holds the defined
IUIGroupCommand and its children as Components. This
method checks first, if the parameter with key IResourceRendererParameterNameConst.ITEMACTIONSTYLE
is set. If not, the key ICollectionRendererParameterNameConst.COLLECTION_ACTIONSTYLE
is read out. If it is not set either, the default IParameterNameConst.ACTIONSTYLE_HOVER
is used. If that parameter holds an invalid value, an empty TextView
is returned.WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderAsLink(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
throws WcmException
IUIGroupCommand defined for the given resource as
a list of links.res - the resource IUIGroupCommand is
needed for.parameterName - the parameterName that specifies, which parameter
holds the information which groupcommand to renderComponent that holds the defined
IUIGroupCommand and its children as Components. If the
configuration is invalid, an empty TextView /code> is returned- Throws:
WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderAsIcon(IResource res,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName parameterName)
throws WcmException
IUIGroupCommand defined for the given resource as
a hover menu, opening from an icon.res - the resource IUIGroupCommand is
needed for.parameterName - the parameterName that specifies, which parameter
holds the information which groupcommand to renderComponent that holds the defined
IUIGroupCommand and its children as Components. If the
configuration is invalid, an empty TextView /code> is returned- Throws:
WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderCommandContentLink(IResource resource,
java.lang.String commandAlias,
com.sapportals.htmlb.Component comp)
public static final com.sapportals.htmlb.Component getCommandIconComponent(IUIBaseCommand command,
IResource resource)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||