com.sapportals.wcm.rendering.collection

Class SelectionHandler

java.lang.Object
  extended bycom.sapportals.wcm.rendering.collection.SelectionHandler

public final class SelectionHandler
extends Object

This class acts as a decorator for an ILightCollectionRenderer and takes care of the rendering and evaluation of selection-boxes for displayed resources. It renders either checkboxes for multiple-selection or a RadioButtonGroup for single selection. The enabling/disabling of selection for certain resources is done using the given parameters for the ILightCollectionRenderer

Since:
EP5 SP6 and EP6 SP1

Field Summary
static String NBSP
           
 
Constructor Summary
SelectionHandler(ICollectionRenderer renderer, IUniqueIDSupplier idsub, IRendererStatus irs)
           
SelectionHandler(ICollectionRenderer renderer, IUniqueIDSupplier idsub, IRendererStatus irs, int numberOfEntries)
           
 
Method Summary
 void readInputData(DynPage page)
           
 Component renderCheckbox(IResource res, String selectionmode)
           
 Component renderItemSelectionMode(IResource res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NBSP

public static final String NBSP
See Also:
Constant Field Values
Constructor Detail

SelectionHandler

public SelectionHandler(ICollectionRenderer renderer,
                        IUniqueIDSupplier idsub,
                        IRendererStatus irs)

SelectionHandler

public SelectionHandler(ICollectionRenderer renderer,
                        IUniqueIDSupplier idsub,
                        IRendererStatus irs,
                        int numberOfEntries)
Method Detail

renderItemSelectionMode

public final Component renderItemSelectionMode(IResource res)
                                        throws WcmException
Throws:
WcmException

renderCheckbox

public final Component renderCheckbox(IResource res,
                                      String selectionmode)
                               throws WcmException
Throws:
WcmException

readInputData

public void readInputData(DynPage page)
                   throws WcmException
Throws:
WcmException


Copyright 2006 SAP AG Complete Copyright Notice