com.sapportals.wcm.rendering.layout

Class AbstractLayoutComposer

java.lang.Object
  extended by com.sapportals.wcm.rendering.layout.AbstractLayoutComposer
All Implemented Interfaces:
IExtLayoutController, ILayoutComponent, ILayoutController

Deprecated. As of NetWeaver 7.1

public abstract class AbstractLayoutComposer
extends Object
implements ILayoutController, IExtLayoutController

Since:
NW04, FP This acts as a wrapper to shield implementations of the ILayoutController interface from the classes of the Wdf-package. Extend this class if you need to implement the ILayoutController interface. For the implementation see the java-doc of the two implemented interfaces.

Constructor Summary
AbstractLayoutComposer()
          Deprecated.  
 
Method Summary
 com.sapportals.wdf.stack.Control[] getControls()
          Deprecated. As of NetWeaver 7.1
abstract  ILayoutController getNewInstance()
          Deprecated. As of NetWeaver 7.1
protected  IProxy getProxy()
          Deprecated. As of NetWeaver 7.1
abstract  IResourceListProvider[] getResourceListProvider()
          Deprecated. As of NetWeaver 7.1
abstract  void init()
          Deprecated. As of NetWeaver 7.1
abstract  void readInputData(com.sapportals.htmlb.page.DynPage page)
          Deprecated. As of NetWeaver 7.1
 com.sapportals.htmlb.Component render()
          Deprecated. As of NetWeaver 7.1
protected abstract  com.sapportals.htmlb.Component renderAll()
          Deprecated. As of NetWeaver 7.1
 void setProxy(IProxy proxy)
          Deprecated. As of NetWeaver 7.1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLayoutComposer

public AbstractLayoutComposer()
Deprecated. 
Method Detail

getNewInstance

public abstract ILayoutController getNewInstance()
Deprecated. As of NetWeaver 7.1

Description copied from interface: ILayoutController
returns a new instance of the implementing class. This method is used by the LayoutControllerFactory. The Factory holds one instance of the implementing class and calls its getNewInstance method. This allows the implementing class to set parameters at the newly created instance. It also reduces calls of the Class.forName() to gain performance.

Specified by:
getNewInstance in interface ILayoutController
Returns:
a new instance of the implementing class, never returns null.

getControls

public final com.sapportals.wdf.stack.Control[] getControls()
Deprecated. As of NetWeaver 7.1

Description copied from interface: ILayoutController
returns all conrols that have to be registered with the Wdf-Framework. If a control within the ILayoutController is not returned via this method, it can not use the Wdf-functionalities such as persistence of simple data types or the use of the WdfEventDispatcher to create Link or Button elements.

Specified by:
getControls in interface ILayoutController
Returns:
an array of all controls inside the layoutcontroller that are to be registered with the WDF. The array must not contain null.

render

public final com.sapportals.htmlb.Component render()
                                            throws com.sapportals.wdf.WdfException
Deprecated. As of NetWeaver 7.1

Description copied from interface: ILayoutController
creates and returns the visible components for the user. It is called, when the control that holds this instance (usually the IProxy is rendered by the Wdf-Framework. See the Wdf-Framework for details.

Specified by:
render in interface ILayoutController
Returns:
an htmlb-Component that is to be displayed to the user
Throws:
com.sapportals.wdf.WdfException

renderAll

protected abstract com.sapportals.htmlb.Component renderAll()
                                                     throws WcmException
Deprecated. As of NetWeaver 7.1

this method is called by the method render as defined in the ILayoutController interface. To wrap the WdfException stated in that method, this abstract class requires extending classes to use this method instead.

Returns:
a Component to be rendered, must not be null
Throws:
WcmException - in case of an error

setProxy

public final void setProxy(IProxy proxy)
Deprecated. As of NetWeaver 7.1

Description copied from interface: ILayoutComponent
sets the proxy-attribute for the layout-controller. The proxy has to be passed to classes within the ILayoutController, which want to use the proxy's services.

Specified by:
setProxy in interface ILayoutComponent

getProxy

protected final IProxy getProxy()
Deprecated. As of NetWeaver 7.1


init

public abstract void init()
                   throws WcmException
Deprecated. As of NetWeaver 7.1

Description copied from interface: IExtLayoutController
this method is called by the LayoutControllerFactory when the initialization of the implementing class is finished. At this point of time, it is ok for the implementing class to instantiate its ICollectionRenderer instances and to access fields such as IProxy

Specified by:
init in interface IExtLayoutController
Throws:
WcmException

readInputData

public abstract void readInputData(com.sapportals.htmlb.page.DynPage page)
Deprecated. As of NetWeaver 7.1

Description copied from interface: IExtLayoutController
called by the IProxy that holds an instance of the implementing class after the user has initiated a server roundtrip.

Specified by:
readInputData in interface IExtLayoutController
Parameters:
page - the dynpage to read the user input from, must not be null.

getResourceListProvider

public abstract IResourceListProvider[] getResourceListProvider()
Deprecated. As of NetWeaver 7.1

Specified by:
getResourceListProvider in interface IExtLayoutController
Returns:
a list of classes that implement this interface and are rendered by this class. Might return an empty array, but must not return null.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/nonwduideprecated api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice