SAP NetWeaver '04

com.sapportals.wcm.rendering.base
Interface ILayoutObject

[contained in: com.sap.km.cm.ui.flex.par - km.shared.ui.flex.base_api.jar]
All Known Subinterfaces:
ICollectionRenderer, IResourceRenderer
All Known Implementing Classes:
LayoutObject

public interface ILayoutObject


Field Summary
static java.lang.String DEF_VALUE
           
static java.lang.String KEY
           
static java.lang.String LINE_BREAK
           
 
Method Summary
 java.lang.String getAlias()
           
 java.lang.String getConfiguration(java.lang.String format)
          returns the supported parameters and the default values the class uses
 com.sapportals.wcm.repository.service.layout.customizing.flavor.IFlavor getFlavor()
           
 ILayoutObject getNewInstance()
           
 java.lang.String getParameter(com.sapportals.wcm.repository.service.layout.customizing.IParameterName key)
           
 com.sapportals.wcm.repository.service.layout.customizing.IParameters getParameters()
          returns all parameters used in this layout object.
 com.sapportals.wcm.repository.service.layout.customizing.IParameterName[] getSupportedParameters()
          returns all parameters which are used in this layout object.
 boolean is508enabled()
           
 void setAlias(java.lang.String alias)
           
 void setFlavor(com.sapportals.wcm.repository.service.layout.customizing.flavor.IFlavor flavor)
          is called from the factory after instantiating a new layout object to set the flavor information coming from the Control or ILayoutController , asking for special instances of the IResourceRenderer used by the implementing class
 java.lang.String setParameter(com.sapportals.wcm.repository.service.layout.customizing.IParameterName key, java.lang.String value)
           
 void setParameters(com.sapportals.wcm.repository.service.layout.customizing.IParameters parameters)
          is called from the factory after initializing this layout object.
 void setProxy(IProxy proxy)
          is called from the factory after instantiating a new layout object to set the proxy which is needed as possible target for actions.
 

Field Detail

LINE_BREAK

public static final java.lang.String LINE_BREAK

KEY

public static final java.lang.String KEY

DEF_VALUE

public static final java.lang.String DEF_VALUE
Method Detail

getNewInstance

public ILayoutObject getNewInstance()
Returns:
a new instance of the implementing class

setProxy

public void setProxy(IProxy proxy)
is called from the factory after instantiating a new layout object to set the proxy which is needed as possible target for actions. ICollectionRenderer can use IResourceRenderer and IUICommand to render the given resource. These classes need the proxy for the rendering of their links. The implementing class needs the proxy to retrieve these classes using the respecting factory-classes ResourceRendererFactory and UICommandFactory
Parameters:
proxy - the WdfPfoxy that acts as an outer container for the rendering

getSupportedParameters

public com.sapportals.wcm.repository.service.layout.customizing.IParameterName[] getSupportedParameters()
returns all parameters which are used in this layout object. Only parameters listed here will be set from the factory.
Returns:
a collection of all parameters that are used in the instance of the implementing class to modify the rendered output.
See Also:
setParameters(com.sapportals.wcm.repository.service.layout.customizing.IParameters)

getParameters

public com.sapportals.wcm.repository.service.layout.customizing.IParameters getParameters()
returns all parameters used in this layout object.
Returns:
the hashtable of all parameters that are supported and set by the implementing class

setParameters

public void setParameters(com.sapportals.wcm.repository.service.layout.customizing.IParameters parameters)
is called from the factory after initializing this layout object. Only parameters listed in the IParameterName[] getSupportedParameters() are set by the factory. With this method the rendering of the implementing class can be influenced. Classes can - but do not have to - react on the parameters supplied in this method
Parameters:
parameters - - the parameters retrieved from different sources (iView, OTH...) that influence the way the implementing class renders its output. If the parameter is not found in the class' getSupportedParameters, the value will not be set as parameter for this class. If for a certain key, no value is found in the given IParameters, the default value set in the class will not be overwritten. Example: The class returns as supported parameters the keys "A", "B". It has set the default parameters, so we find the key-value pairs: "A" -> a "B" -> b This method is called, with the following hashtable entries: "A" -> aa "C" -> cc After the method is called, the class holds following key-vlaue pairs: "A" -> aa (overwritten by passed hashtable values) "B" -> b (not overwritten, because the hashtable returned null for this key The key-value pair "C" -> cc is not used in the class, because the key was not found in its getSupportedParameters

setParameter

public java.lang.String setParameter(com.sapportals.wcm.repository.service.layout.customizing.IParameterName key,
                                     java.lang.String value)
Parameters:
key - - the key of the parameter
value - - the value of the parameter Overwrites an existing entry of the parameters or adds it, if it is not set. Note: The Layout Object may not act on this parameter. To retrieve a list of supported parameters from an ILayoutObject instance

getParameter

public java.lang.String getParameter(com.sapportals.wcm.repository.service.layout.customizing.IParameterName key)
Returns:
the current entry for the given key or null. Note: a returned null does not indicate, that the ILayoutObject does not support this parameter!

getConfiguration

public java.lang.String getConfiguration(java.lang.String format)
returns the supported parameters and the default values the class uses

is508enabled

public boolean is508enabled()
Returns:
flag, if this class renders its output in a way that is suited for blind people of people with viewing disabilities

setFlavor

public void setFlavor(com.sapportals.wcm.repository.service.layout.customizing.flavor.IFlavor flavor)
is called from the factory after instantiating a new layout object to set the flavor information coming from the Control or ILayoutController , asking for special instances of the IResourceRenderer used by the implementing class

getFlavor

public com.sapportals.wcm.repository.service.layout.customizing.flavor.IFlavor getFlavor()
Returns:
the flavor set for the implementing class

getAlias

public java.lang.String getAlias()

setAlias

public void setAlias(java.lang.String alias)

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.