com.sapportals.wcm.rendering.collection

Class AbstractCollectionRenderer

java.lang.Object
  extended bycom.sapportals.wdf.stack.Control
      extended bycom.sapportals.wcm.control.base.WcmBaseControl
          extended bycom.sapportals.wcm.rendering.collection.AbstractCollectionRenderer
All Implemented Interfaces:
ICollectionRenderer, ICollectionRendererParameterNameConst, IDelegatedReceiver, ILayoutObject, IParameters, IResourceListProvider

public abstract class AbstractCollectionRenderer
extends com.sapportals.wcm.control.base.WcmBaseControl
implements ICollectionRenderer, ICollectionRendererParameterNameConst, IResourceListProvider, IParameters

This abstract class can be used when implementing new CollectionRenderer-Classes It provides persistence of selections (when mass actions are enabled), takes care of ResourceProperties, offers method to create sorting box in Control Persistence is realized by using IUMPrincipal.setTransientAttribute . This can lead to errounous behavior when the user hasn't worked for some time in the browser and the cache has expired.

See Also:
Serialized Form

Nested Class Summary
static class AbstractCollectionRenderer.Persistence
           
 
Field Summary
static String BASE_BUNDLE
           
static String BLANK
           
static String CM_RND_ACTION
           
static String CM_RND_CHILDCOUNT
           
static String CM_RND_CHILDCOUNT_BOTH
           
static String CM_RND_CHILDCOUNT_FILES
           
static String CM_RND_CHILDCOUNT_FOLDERS
           
static String CM_RND_CHILDCOUNT_PROPERTY_NAME
           
static String CM_RND_CHILDCOUNT_SUM
           
static String CM_RND_CHILDCOUNT_WITH_BRACKETS
           
static String CM_RND_CHILDCOUNT_WITH_BRACKETS_PROPERTY_NAME
           
static String CM_RND_DESCRIPTION
           
static String CM_RND_DISPLAYNAME
           
static String CM_RND_ICON
           
static String CM_RND_IMAGE
           
static String CM_RND_LOCK
           
static String COMMA
           
static String DEFAULT_PROPERTY_COLUMNS
           
static String DEFAULT_SORT_ORDER
           
static String DEFAULT_SORT_PROPERTY
           
static int MANUAL_SORT_ORDER
           
static String NBSP
           
static String NO_SORT_PROPERTY
           
static String ON_NAVIGATE
           
static String ON_SELECT_FILTER
           
static String ON_SELECT_SORT
           
static String ON_TOGGLE_FILTER
           
static String ON_TOGGLE_SORT
           
static String PIXEL
           
static String RES_CONTENTSOF
           
static String RES_EDIT
           
static String RES_FILESOF
           
static String RES_FOLDERSOF
           
static String RES_SELECTIONLOST
           
static String RES_SELECTRESOURCE
           
static String RES_SORT_ASCENDING
           
static String RES_SORT_DESCENDING
           
static String RES_SORTASCENDING
           
static String RES_SORTBY
           
static String RES_SORTDESCENDING
           
 
Fields inherited from class com.sapportals.wcm.control.base.WcmBaseControl
BLANK_LINK_TARGET, CELL_PADDING_STANDARD, CELL_SPACING_STANDARD, CONTROL_HEADER_STANDARD, DETAILS_CONFIG_FILE, NONE, RES_BUTTON_ADD, RES_BUTTON_APPLY, RES_BUTTON_BACK, RES_BUTTON_CANCEL, RES_BUTTON_CLOSE, RES_BUTTON_LOAD, RES_BUTTON_MORE, RES_BUTTON_OK, RES_BUTTON_REMOVE, RES_BUTTON_SAVE, RES_BUTTON_SELECT, RES_BUTTON_UPDATE, resourceContext, SUMMARY
 
Fields inherited from interface com.sapportals.wcm.rendering.collection.ICollectionRenderer
ORDERED_COLLECTION, SORTED, UNSORTED
 
Fields inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject
DEF_VALUE, KEY, LINE_BREAK
 
Fields inherited from interface com.sapportals.wcm.repository.service.layout.customizing.ICollectionRendererParameterNameConst
BACKGROUNDIMAGEPATH, BACKGROUNDIMAGESTYLE, BACKGROUNDIMAGESTYLE_MULTIPLE, BACKGROUNDIMAGESTYLE_SINGLE, BREADCRUMBSTYLE, BREADCRUMBSTYLE_BACK, BREADCRUMBSTYLE_DRPODOWN, BREADCRUMBSTYLE_HORIZONTAL, BREADCRUMBSTYLE_OFF, BREADCRUMBSTYLE_VERTICAL, BREADCRUMBVISIBILITYSTYLE, BREADCRUMBVISIBILITYSTYLE_DISABLEROOT, BREADCRUMBVISIBILITYSTYLE_INVISIBLE, BREADCRUMBVISIBILITYSTYLE_INVISIBLEROOT, BREADCRUMBVISIBILITYSTYLE_NOICON, BREADCRUMBVISIBILITYSTYLE_STANDARD, COLLECTION_ACTIONSTYLE, COLLECTION_ACTIONSTYLE_BUTTON, COLLECTION_ACTIONSTYLE_HOVER, COLLECTION_ACTIONSTYLE_LINK, COLLECTION_ACTIONSTYLE_MENU, COLLECTION_ACTIONSTYLE_OFF, COLLECTION_ACTIONSTYLE_SMALLBUTTON, COLLECTION_ACTIONSTYLE_TOOLBAR_BUTTON, COLUMNS, COLUMNSPACING, COLUMNSPACINGSTYLE, COLUMNSPACINGSTYLE_FIXED, COLUMNSPACINGSTYLE_MINIMUM, COMPONENTS, EMPTY_COLLECTION_FILE, EMPTY_COLLECTION_KEY, EMPTY_COLLECTION_STYLE, EMPTY_COLLECTION_STYLE_MESSAGE, EMPTY_COLLECTION_STYLE_OFF, EMPTY_COLLECTION_STYLE_TEXT, FILESELECTIONMODE_MULTIPLE, FILESELECTIONMODE_SINGLE, FILTEREXTENSION, FILTERMIMETYPE, FILTERRESOURCETYPE, FOLDERSELECTIONMODE_MULTIPLE, FOLDERSELECTIONMODE_SINGLE, GRIDORDERSTYLE, GRIDORDERSTYLE_COLUMN_MAJOR, GRIDORDERSTYLE_ROW_MAJOR, GROUP_STYLE, GROUP_STYLE_OFF, GROUP_STYLE_PRIMARYCOLOR, GROUP_STYLE_SAPCOLOR, GROUP_STYLE_SECONDARYBOX, GROUP_STYLE_SECONDARYBOXCOLOR, GROUP_STYLE_SECONDARYCOLOR, HEADER_TEXT_STYLE, HTML_FILENAME, IMAGEMAP, ITEMSELECTIONMODE, ITEMSELECTIONMODE_MULTIPLE, ITEMSELECTIONMODE_OFF, ITEMSELECTIONMODE_SINGLE, LINKSSTYLE, LINKSSTYLE_ALL, LINKSSTYLE_EXTERNAL, LINKSSTYLE_INTERNAL, LINKSSTYLE_OFF, LINKSSTYLE_VISIBLE, MASSACTIONSTYLE, MASSACTIONSTYLE_BUTTON, MASSACTIONSTYLE_HOVER, MASSACTIONSTYLE_ICON, MASSACTIONSTYLE_LINK, MASSACTIONSTYLE_MENU, MASSACTIONSTYLE_OFF, MASSACTIONSTYLE_SMALLBUTTON, MASSACTIONSTYLE_TOOLBAR_BUTTON, MASSACTIONSTYLE_VERTICAL_LINK, MAX_NUM_OF_TABS, NO_OF_CHILD_FOR_NODE, NO_TAB_CONTENT, OPEN_NODES_STYLE, OPEN_NODES_STYLE_All, OPEN_NODES_STYLE_LAST_SELECTED, OPENTARGETTYPE, OPENTARGETTYPE_FIXED, OPENTARGETTYPE_NEW, OPENTARGETTYPE_OFF, OPENTARGETTYPE_SELF, PAGER_LINK_COUNT, PROPERTY_COLUMN_HEADER_STYLE, PROPERTY_COLUMN_HEADER_STYLE_LIST, PROPERTY_COLUMN_HEADER_STYLE_MENUE, PROPERTY_COLUMN_HEADER_STYLE_OFF, PROPERTY_COLUMN_HEADER_STYLE_TABLE, PROPERTY_COLUMN_HEADER_STYLE_TRANSPARENT, PROPERTYCOLUMNS, RESIZEHEIGHTSTYLE, RESIZEHEIGHTSTYLE_COMPACT, RESIZEHEIGHTSTYLE_OFF, RESIZEHEIGHTSTYLE_STRETCH, RESIZEWIDHTSTYLE, RESIZEWIDHTSTYLE_COMPACT, RESIZEWIDHTSTYLE_OFF, RESIZEWIDHTSTYLE_STRETCH, RESOURCE_LIST_FILTER, RESOURCE_LIST_FILTER_DEFAULT, ROWBACKGROUNDSTYLE, ROWS, ROWSPACING, ROWSPACINGSTYLE, ROWSPACINGSTYLE_ALTERNATING, ROWSPACINGSTYLE_BACKGROUND, ROWSPACINGSTYLE_COLUMNALTERNATING, ROWSPACINGSTYLE_COLUMNSEPARATED, ROWSPACINGSTYLE_FIXED, ROWSPACINGSTYLE_LINESEPARATED, ROWSPACINGSTYLE_MINIMUM, ROWSPACINGSTYLE_ROWALTERNATING, ROWSPACINGSTYLE_TRANSPARENT, SHOW_HIDDEN, SHOW_TREE_ROOT_NODE, SHOWFILESSTYLE, SHOWFILESSTYLE_ALL, SHOWFILESSTYLE_NOLINK, SHOWFILESSTYLE_OFF, SHOWFILESTYLE_ONLYLINK, SHOWFOLDERSSTYLE, SHOWFOLDERSSTYLE_ALL, SHOWFOLDERSSTYLE_NOLINK, SHOWFOLDERSSTYLE_OFF, SHOWFOLDERSSTYLE_ONLYLINK, SHOWFOLDERTITLE, SHOWUSERID, SHOWUSERNAME, SORT_ENABLED, SORT_ORDER, SORT_ORDER_ASCENDING, SORT_ORDER_DESCENDING, SORT_PROPERTY, TAB_BODY_FLAVOR, TAB_STYLE_SAFE, UI_COLL_RENDERER, UI_GROUP_COLLECTION, UI_GROUP_MASS, USE_SCROLL_CONTAINER, VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_BASELINE, VERTICAL_ALIGNMENT_BOTTOM, VERTICAL_ALIGNMENT_MIDDLE, VERTICAL_ALIGNMENT_TOP
 
Constructor Summary
AbstractCollectionRenderer()
          Constructor for the AbstractCollectionRenderer object
 
Method Summary
protected  void checkReadPermission()
           
protected  void filterResourceList()
           
 Object get(String key)
          Description of the Method
 String getAlias()
          implementation of the ILayoutObject-interface ************
 IPropertyColumn[] getColumnsList()
          Gets the columnsList attribute of the AbstractCollectionRenderer object
 String getColumnsListID()
           
 String getColumnSpacing()
          Gets the columnSpacing attribute of the AbstractCollectionRenderer object
 String getConfiguration(String format)
          Gets the configuration attribute of the AbstractCollectionRenderer object
 IFlavor getFlavor()
          Gets the flavor attribute of the AbstractCollectionRenderer object
protected  int getIntValue(IParameterName key, int defValue)
           
protected  int getIntValue(String key, int defValue)
           
protected  LayoutObject getLayoutObject()
           
protected  int getMaxLength(String[] defaultModifiers)
           
 List getMultiValueParameter(IParameterName key)
          Gets the multiValueParameter attribute of the AbstractCollectionRenderer object
 String getParameter(IParameterName key)
          Gets the parameter attribute of the AbstractCollectionRenderer object
 boolean getParameter(IParameterName key, boolean defaultValue)
          Gets the parameter attribute of the AbstractCollectionRenderer object
 int getParameter(IParameterName key, int defaultValue)
          Gets the parameter attribute of the AbstractCollectionRenderer object
 String getParameter(IParameterName key, String defaultValue)
          Gets the parameter attribute of the AbstractCollectionRenderer object
 TextViewDesign getParameter(IParameterName key, TextViewDesign defaultValue)
          Gets the parameter attribute of the AbstractCollectionRenderer object
 IParameters getParameters()
          Gets the parameters attribute of the AbstractCollectionRenderer object
 IParameters getParameters(IParameterName[] keys)
          Gets the parameters attribute of the AbstractCollectionRenderer object
 ICollection getParentCollection()
          Gets the parentCollection attribute of the AbstractCollectionRenderer object
 IPropertyConfigurationService getPropertyConfigurationService()
          Gets the propertyConfigurationService attribute of the AbstractCollectionRenderer object
protected  HashMap getPropertyMap()
           
 IPropertyNameList getPropertyNames()
          Gets the propertyNames attribute of the AbstractCollectionRenderer object
protected  IProxy getProxy()
           
protected  IResourceRenderer getRenderer(IResource res)
           
 IResourceList getResourceList()
          Gets the resourceList attribute of the AbstractCollectionRenderer object
 String getResourceListID()
           
 String getRowSpacing()
          Gets the rowSpacing attribute of the AbstractCollectionRenderer object
 boolean getSelectedElementsExist()
          Gets the selectedElementsExist attribute of the AbstractCollectionRenderer object
 IResourceList getSelectedResources()
          Gets the selectedResources attribute of the AbstractCollectionRenderer object
 String getSelectedResourcesMapID()
           
 String getSortField()
          Gets the sortField attribute of the AbstractCollectionRenderer object
 int getSortOrder()
          Gets the sortOrder attribute of the AbstractCollectionRenderer object
protected  IPropertyName getSortPropertyName()
           
 int getStartRow()
          Gets the startRow attribute of the AbstractCollectionRenderer object
 IParameterName[] getSupportedParameters()
          Gets the supportedParameters attribute of the AbstractCollectionRenderer object
 String getUserDefinedFilterID()
          Gets the userDefinedFilterID attribute of the AbstractCollectionRenderer object
protected  void initialize()
           
protected  ICollectionRenderer initNewInstance(ICollectionRenderer cr)
          end of implementation of the ILayoutObject-interface **********
 boolean is508enabled()
          Description of the Method
 boolean isExactlyValue(IParameterName key, Object checkValue)
          Gets the exactlyValue attribute of the AbstractCollectionRenderer object
 boolean isNoOtherValue(IParameterName key, Object checkValue)
          Gets the noOtherValue attribute of the AbstractCollectionRenderer object
 boolean modifierListContains(IPropertyColumn propertyColumn, String propertyModifierName)
          Description of the Method
 WdfEvent onNavigate(Event event)
          Description of the Method
 WdfEvent onSelectFilter(Event event)
          Description of the Method
 WdfEvent onSelectSort(Event event)
          Description of the Method
 WdfEvent onSort(Event event)
          Description of the Method
 WdfEvent onToggleFilter(Event event)
          Description of the Method
 WdfEvent onToggleSort(Event event)
          Description of the Method
 IParameterNameSet parameterNames()
          Description of the Method
 Set parameters()
          Description of the Method
 void persistSelectedResourcesMap()
          Description of the Method
 void readCheckBoxes()
          Description of the Method
protected  void readInputData()
           
 void receive(WdfEvent cflEvent)
          CflEventReceiver
 void refresh()
          asks the implementing class to refresh its list of IResource objects.
 void removeParameter(IParameterName key)
          Description of the Method
 Component render()
          Description of the Method
 Component renderAction(IResource res, IParameterName parameterName)
          Description of the Method
 Component renderAll()
           
 Component renderBreadcrumb()
          Description of the Method
 Checkbox renderCheckbox(IResource res)
          Description of the Method
 Checkbox renderCheckbox(IResource res, String selectionmode)
          Description of the Method
static Component renderEmptyTextView()
          Description of the Method
 Component renderFilter()
          Description of the Method
 Component renderFolderTitle()
          Description of the Method
protected  Component renderInfoNoResourcesAvailable()
           
 Component renderItemSelectionMode(IResource res)
          Description of the Method
 Component renderMetaProperty(IResourceRenderer renderer, IMetaName metaName, boolean hasContentLink, boolean useSecondaryStyle)
          Description of the Method
 Component renderPager(boolean hasMore, int pageInterval, int linkCount)
          Description of the Method
 Component renderPropertyColumn(IResource resource, IPropertyColumn propertyColumn, boolean useSecondaryStyle)
          Description of the Method
 Component renderPropertyColumn(IResourceRenderer renderer, IResource resource, IPropertyColumn propertyColumn, boolean useSecondaryStyle)
          Description of the Method
 Component renderSorter()
          Description of the Method
abstract  Component renderUI()
          Description of the Method
 void resetSelection()
          Description of the Method
protected  void set508enabled(boolean imp508)
           
 void setAlias(String alias)
          Sets the alias attribute of the AbstractCollectionRenderer object
 void setColumnsList(IPropertyColumn[] list)
          Sets the columnsList attribute of the AbstractCollectionRenderer object
 void setColumnsListID(String value)
           
 void setFlavor(IFlavor impFlavor)
          Sets the flavor attribute of the AbstractCollectionRenderer object
 Boolean setParameter(IParameterName key, boolean value)
          Sets the parameter attribute of the AbstractCollectionRenderer object
 Integer setParameter(IParameterName key, int value)
          Sets the parameter attribute of the AbstractCollectionRenderer object
 Object setParameter(IParameterName key, Object value)
          Sets the parameter attribute of the AbstractCollectionRenderer object
 String setParameter(IParameterName key, String value)
          Sets the parameter attribute of the AbstractCollectionRenderer object
 TextViewDesign setParameter(IParameterName key, TextViewDesign value)
          Sets the parameter attribute of the AbstractCollectionRenderer object
 void setParameters(IParameters parameters)
          Sets the parameters attribute of the AbstractCollectionRenderer object
 void setParentCollection(ICollection parent)
          Sets the parentCollection attribute of the AbstractCollectionRenderer object
 void setPropertyNames(IPropertyNameList nameList)
          Sets the propertyNames attribute of the AbstractCollectionRenderer object
 void setProxy(IProxy proxy)
          Sets the proxy attribute of the AbstractCollectionRenderer object
 void setResourceList(IResourceList list)
          Sets the resourceList attribute of the AbstractCollectionRenderer object
 void setResourceListID(String value)
           
 void setSelectedElementsExist(boolean flag)
          Sets the selectedElementsExist attribute of the AbstractCollectionRenderer object
 void setSelectedResourcesMapID(String id)
           
 void setSortField(String sortField)
          Sets the sortField attribute of the AbstractCollectionRenderer object
 void setSortOrder(int sortOrder)
          Sets the sortOrder attribute of the AbstractCollectionRenderer object
 void setStartRow(int value)
          Sets the startRow attribute of the AbstractCollectionRenderer object
 void setSupportedParameters(IParameterName[] impKeys)
          Sets the supportedParameters attribute of the AbstractCollectionRenderer object
 void setTypedResourceList(ITypedResourceList typedresourcelist)
          Sets the typedResourceList attribute of the AbstractCollectionRenderer object
 void setUserDefinedFilterID(String value)
          Sets the userDefinedFilterID attribute of the AbstractCollectionRenderer object
protected  void sortResourceList()
           
protected  void writeDebugInformation()
           
 
Methods inherited from class com.sapportals.wcm.control.base.WcmBaseControl
getBaseBundleString, getBaseBundleString, getBaseBundleString, getBaseBundleString, getBundleString, getBundleString, getBundleString, getBundleString, getBusinessCardLink, getImage, getParameterConfiguration, getResourceContext, getServicePageUri, handleException, isSection508Rendering, isTestMode, isVisible, setControlContext, setResourceContext, setTestMode, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sapportals.wcm.rendering.collection.ICollectionRenderer
getID, getResourceContext, readInputData, setResourceContext, setSortDefinition
 
Methods inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject
getNewInstance
 
Methods inherited from interface com.sapportals.wcm.rendering.base.IDelegatedReceiver
onEvent
 
Methods inherited from interface com.sapportals.wcm.rendering.base.IResourceListProvider
getID
 

Field Detail

RES_SORT_ASCENDING

public static final String RES_SORT_ASCENDING
See Also:
Constant Field Values

RES_SORT_DESCENDING

public static final String RES_SORT_DESCENDING
See Also:
Constant Field Values

RES_CONTENTSOF

public static final String RES_CONTENTSOF
See Also:
Constant Field Values

RES_FILESOF

public static final String RES_FILESOF
See Also:
Constant Field Values

RES_FOLDERSOF

public static final String RES_FOLDERSOF
See Also:
Constant Field Values

RES_SORTBY

public static final String RES_SORTBY
See Also:
Constant Field Values

RES_SORTDESCENDING

public static final String RES_SORTDESCENDING
See Also:
Constant Field Values

RES_SORTASCENDING

public static final String RES_SORTASCENDING
See Also:
Constant Field Values

RES_SELECTRESOURCE

public static final String RES_SELECTRESOURCE
See Also:
Constant Field Values

RES_SELECTIONLOST

public static final String RES_SELECTIONLOST
See Also:
Constant Field Values

RES_EDIT

public static final String RES_EDIT
See Also:
Constant Field Values

BASE_BUNDLE

public static final String BASE_BUNDLE
See Also:
Constant Field Values

ON_SELECT_SORT

public static final String ON_SELECT_SORT
See Also:
Constant Field Values

ON_TOGGLE_SORT

public static final String ON_TOGGLE_SORT
See Also:
Constant Field Values

ON_SELECT_FILTER

public static final String ON_SELECT_FILTER
See Also:
Constant Field Values

ON_TOGGLE_FILTER

public static final String ON_TOGGLE_FILTER
See Also:
Constant Field Values

ON_NAVIGATE

public static final String ON_NAVIGATE
See Also:
Constant Field Values

COMMA

public static final String COMMA
See Also:
Constant Field Values

PIXEL

public static final String PIXEL
See Also:
Constant Field Values

NBSP

public static final String NBSP
See Also:
Constant Field Values

BLANK

public static final String BLANK
See Also:
Constant Field Values

CM_RND_ACTION

public static final String CM_RND_ACTION
See Also:
Constant Field Values

CM_RND_DISPLAYNAME

public static final String CM_RND_DISPLAYNAME
See Also:
Constant Field Values

CM_RND_ICON

public static final String CM_RND_ICON
See Also:
Constant Field Values

CM_RND_IMAGE

public static final String CM_RND_IMAGE
See Also:
Constant Field Values

CM_RND_DESCRIPTION

public static final String CM_RND_DESCRIPTION
See Also:
Constant Field Values

CM_RND_LOCK

public static final String CM_RND_LOCK
See Also:
Constant Field Values

CM_RND_CHILDCOUNT

public static final String CM_RND_CHILDCOUNT
See Also:
Constant Field Values

CM_RND_CHILDCOUNT_WITH_BRACKETS

public static final String CM_RND_CHILDCOUNT_WITH_BRACKETS
See Also:
Constant Field Values

CM_RND_CHILDCOUNT_BOTH

public static final String CM_RND_CHILDCOUNT_BOTH
See Also:
Constant Field Values

CM_RND_CHILDCOUNT_SUM

public static final String CM_RND_CHILDCOUNT_SUM
See Also:
Constant Field Values

CM_RND_CHILDCOUNT_FOLDERS

public static final String CM_RND_CHILDCOUNT_FOLDERS
See Also:
Constant Field Values

CM_RND_CHILDCOUNT_FILES

public static final String CM_RND_CHILDCOUNT_FILES
See Also:
Constant Field Values

CM_RND_CHILDCOUNT_PROPERTY_NAME

public static final String CM_RND_CHILDCOUNT_PROPERTY_NAME
See Also:
Constant Field Values

CM_RND_CHILDCOUNT_WITH_BRACKETS_PROPERTY_NAME

public static final String CM_RND_CHILDCOUNT_WITH_BRACKETS_PROPERTY_NAME
See Also:
Constant Field Values

DEFAULT_PROPERTY_COLUMNS

public static final String DEFAULT_PROPERTY_COLUMNS
See Also:
Constant Field Values

DEFAULT_SORT_PROPERTY

public static final String DEFAULT_SORT_PROPERTY
See Also:
Constant Field Values

NO_SORT_PROPERTY

public static final String NO_SORT_PROPERTY
See Also:
Constant Field Values

DEFAULT_SORT_ORDER

public static final String DEFAULT_SORT_ORDER
See Also:
Constant Field Values

MANUAL_SORT_ORDER

public static final int MANUAL_SORT_ORDER
See Also:
Constant Field Values
Constructor Detail

AbstractCollectionRenderer

public AbstractCollectionRenderer()
Constructor for the AbstractCollectionRenderer object

Method Detail

getLayoutObject

protected LayoutObject getLayoutObject()

setProxy

public final void setProxy(IProxy proxy)
Sets the proxy attribute of the AbstractCollectionRenderer object

Specified by:
setProxy in interface ILayoutObject
Parameters:
proxy - The new proxy value

getProxy

protected final IProxy getProxy()

setFlavor

public final void setFlavor(IFlavor impFlavor)
Sets the flavor attribute of the AbstractCollectionRenderer object

Specified by:
setFlavor in interface ILayoutObject
Parameters:
impFlavor - The new flavor value

getFlavor

public final IFlavor getFlavor()
Gets the flavor attribute of the AbstractCollectionRenderer object

Specified by:
getFlavor in interface ILayoutObject
Returns:
The flavor value

setSortOrder

public final void setSortOrder(int sortOrder)
Sets the sortOrder attribute of the AbstractCollectionRenderer object

Parameters:
sortOrder - The new sortOrder value

getSortOrder

public final int getSortOrder()
Gets the sortOrder attribute of the AbstractCollectionRenderer object

Returns:
The sortOrder value

is508enabled

public final boolean is508enabled()
Description of the Method

Specified by:
is508enabled in interface ILayoutObject
Returns:
Description of the Return Value

set508enabled

protected final void set508enabled(boolean imp508)

getSelectedElementsExist

public final boolean getSelectedElementsExist()
Gets the selectedElementsExist attribute of the AbstractCollectionRenderer object

Returns:
The selectedElementsExist value

setSelectedElementsExist

public final void setSelectedElementsExist(boolean flag)
Sets the selectedElementsExist attribute of the AbstractCollectionRenderer object

Parameters:
flag - The new selectedElementsExist value

getConfiguration

public final String getConfiguration(String format)
Gets the configuration attribute of the AbstractCollectionRenderer object

Specified by:
getConfiguration in interface ILayoutObject
Parameters:
format - Description of the param
Returns:
The configuration value

setParentCollection

public void setParentCollection(ICollection parent)
Sets the parentCollection attribute of the AbstractCollectionRenderer object

Specified by:
setParentCollection in interface ICollectionRenderer
Parameters:
parent - The new parentCollection value

getParentCollection

public final ICollection getParentCollection()
Gets the parentCollection attribute of the AbstractCollectionRenderer object

Returns:
The parentCollection value

setTypedResourceList

public final void setTypedResourceList(ITypedResourceList typedresourcelist)
Sets the typedResourceList attribute of the AbstractCollectionRenderer object

Specified by:
setTypedResourceList in interface ICollectionRenderer
Parameters:
typedresourcelist - The new typedResourceList value

getSupportedParameters

public final IParameterName[] getSupportedParameters()
Gets the supportedParameters attribute of the AbstractCollectionRenderer object

Specified by:
getSupportedParameters in interface ILayoutObject
Returns:
The supportedParameters value
See Also:
ILayoutObject.setParameters(com.sapportals.wcm.repository.service.layout.customizing.IParameters)

setSupportedParameters

public final void setSupportedParameters(IParameterName[] impKeys)
Sets the supportedParameters attribute of the AbstractCollectionRenderer object

Parameters:
impKeys - The new supportedParameters value

setStartRow

public final void setStartRow(int value)
Sets the startRow attribute of the AbstractCollectionRenderer object

Parameters:
value - The new startRow value

getStartRow

public final int getStartRow()
Gets the startRow attribute of the AbstractCollectionRenderer object

Returns:
The startRow value

setSortField

public final void setSortField(String sortField)
Sets the sortField attribute of the AbstractCollectionRenderer object

Parameters:
sortField - The new sortField value

getSortField

public final String getSortField()
Gets the sortField attribute of the AbstractCollectionRenderer object

Returns:
The sortField value

getParameters

public final IParameters getParameters()
Gets the parameters attribute of the AbstractCollectionRenderer object

Specified by:
getParameters in interface ILayoutObject
Returns:
The parameters value

getParameters

public IParameters getParameters(IParameterName[] keys)
Gets the parameters attribute of the AbstractCollectionRenderer object

Specified by:
getParameters in interface IParameters
Parameters:
keys - Description of the param
Returns:
The parameters value

resetSelection

public final void resetSelection()
Description of the Method

Specified by:
resetSelection in interface IResourceListProvider

setParameters

public final void setParameters(IParameters parameters)
Sets the parameters attribute of the AbstractCollectionRenderer object

Specified by:
setParameters in interface ILayoutObject
Parameters:
parameters - The new parameters value

setColumnsList

public final void setColumnsList(IPropertyColumn[] list)
Sets the columnsList attribute of the AbstractCollectionRenderer object

Parameters:
list - The new columnsList value

getColumnsList

public IPropertyColumn[] getColumnsList()
Gets the columnsList attribute of the AbstractCollectionRenderer object

Returns:
The columnsList value

renderEmptyTextView

public static Component renderEmptyTextView()
Description of the Method

Returns:
Description of the Return Value

renderInfoNoResourcesAvailable

protected Component renderInfoNoResourcesAvailable()
                                            throws WdfException
Throws:
WdfException

renderBreadcrumb

public final Component renderBreadcrumb()
                                 throws WdfException
Description of the Method

Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderSorter

public final Component renderSorter()
                             throws WdfException
Description of the Method

Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderFilter

public Component renderFilter()
                       throws WdfException
Description of the Method

Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderPager

public final Component renderPager(boolean hasMore,
                                   int pageInterval,
                                   int linkCount)
                            throws WdfException
Description of the Method

Parameters:
hasMore - Description of the param
pageInterval - Description of the param
linkCount - Description of the param
Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

onSelectSort

public final WdfEvent onSelectSort(Event event)
Description of the Method

Parameters:
event - Description of the param
Returns:
Description of the Return Value

onSort

public final WdfEvent onSort(Event event)
Description of the Method

Parameters:
event - Description of the param
Returns:
Description of the Return Value

onToggleSort

public final WdfEvent onToggleSort(Event event)
Description of the Method

Parameters:
event - Description of the param
Returns:
Description of the Return Value

onSelectFilter

public WdfEvent onSelectFilter(Event event)
Description of the Method

Parameters:
event - Description of the param
Returns:
Description of the Return Value

onToggleFilter

public WdfEvent onToggleFilter(Event event)
Description of the Method

Parameters:
event - Description of the param
Returns:
Description of the Return Value

onNavigate

public final WdfEvent onNavigate(Event event)
Description of the Method

Parameters:
event - Description of the param
Returns:
Description of the Return Value

getPropertyMap

protected HashMap getPropertyMap()

initialize

protected final void initialize()

persistSelectedResourcesMap

public final void persistSelectedResourcesMap()
Description of the Method


renderCheckbox

public final Checkbox renderCheckbox(IResource res)
                              throws WdfException
Description of the Method

Parameters:
res - Description of the param
Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderCheckbox

public final Checkbox renderCheckbox(IResource res,
                                     String selectionmode)
                              throws WdfException
Description of the Method

Parameters:
res - Description of the param
selectionmode - Description of the param
Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderItemSelectionMode

public final Component renderItemSelectionMode(IResource res)
                                        throws WdfException
Description of the Method

Parameters:
res - Description of the param
Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderFolderTitle

public Component renderFolderTitle()
                            throws WcmException,
                                   WdfException
Description of the Method

Returns:
Description of the Return Value
Throws:
WcmException - Exception raised in failure situation
WdfException - Exception raised in failure situation

getSelectedResources

public final IResourceList getSelectedResources()
Gets the selectedResources attribute of the AbstractCollectionRenderer object

Specified by:
getSelectedResources in interface IResourceListProvider
Returns:
The selectedResources value

readInputData

protected void readInputData()
                      throws WdfException
Throws:
WdfException

setUserDefinedFilterID

public void setUserDefinedFilterID(String value)
Sets the userDefinedFilterID attribute of the AbstractCollectionRenderer object

Parameters:
value - The new userDefinedFilterID value

getUserDefinedFilterID

public String getUserDefinedFilterID()
Gets the userDefinedFilterID attribute of the AbstractCollectionRenderer object

Returns:
The userDefinedFilterID value

setResourceList

public final void setResourceList(IResourceList list)
Sets the resourceList attribute of the AbstractCollectionRenderer object

Parameters:
list - The new resourceList value

getResourceList

public final IResourceList getResourceList()
Gets the resourceList attribute of the AbstractCollectionRenderer object

Returns:
The resourceList value

render

public final Component render()
                       throws WdfException
Description of the Method

Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderAll

public Component renderAll()
                    throws WcmException
Specified by:
renderAll in interface ICollectionRenderer
Returns:
Component an htmlb-Component that will be displayed. The calling class can include this component in another htmlb-Component.
Throws:
WcmException

renderAction

public Component renderAction(IResource res,
                              IParameterName parameterName)
                       throws WdfException
Description of the Method

Parameters:
res - Description of the param
parameterName - Description of the param
Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderUI

public abstract Component renderUI()
                            throws WdfException
Description of the Method

Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

getPropertyNames

public final IPropertyNameList getPropertyNames()
Gets the propertyNames attribute of the AbstractCollectionRenderer object

Returns:
The propertyNames value

setPropertyNames

public void setPropertyNames(IPropertyNameList nameList)
Sets the propertyNames attribute of the AbstractCollectionRenderer object

Parameters:
nameList - The new propertyNames value

readCheckBoxes

public final void readCheckBoxes()
                          throws WdfException,
                                 WcmException
Description of the Method

Throws:
WdfException - Exception raised in failure situation
WcmException - Exception raised in failure situation

filterResourceList

protected final void filterResourceList()
                                 throws WcmException
Throws:
WcmException

getSortPropertyName

protected IPropertyName getSortPropertyName()

sortResourceList

protected final void sortResourceList()
                               throws WcmException
Throws:
WcmException

getRenderer

protected final IResourceRenderer getRenderer(IResource res)
                                       throws WcmException
Throws:
WcmException

getIntValue

protected final int getIntValue(String key,
                                int defValue)

getIntValue

protected final int getIntValue(IParameterName key,
                                int defValue)

writeDebugInformation

protected final void writeDebugInformation()

setParameter

public final String setParameter(IParameterName key,
                                 String value)
Sets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
setParameter in interface ILayoutObject
Parameters:
key - The new parameter value
value - The new parameter value
Returns:
Description of the Return Value

setParameter

public final Integer setParameter(IParameterName key,
                                  int value)
Sets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
setParameter in interface IParameters
Parameters:
key - The new parameter value
value - The new parameter value
Returns:
Description of the Return Value

setParameter

public final TextViewDesign setParameter(IParameterName key,
                                         TextViewDesign value)
Sets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
setParameter in interface IParameters
Parameters:
key - The new parameter value
value - The new parameter value
Returns:
Description of the Return Value

setParameter

public final Boolean setParameter(IParameterName key,
                                  boolean value)
Sets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
setParameter in interface IParameters
Parameters:
key - The new parameter value
value - The new parameter value
Returns:
Description of the Return Value

get

public final Object get(String key)
Description of the Method

Specified by:
get in interface IParameters
Parameters:
key - Description of the param
Returns:
Description of the Return Value
See Also:
#put(Object, Object)

parameterNames

public final IParameterNameSet parameterNames()
Description of the Method

Specified by:
parameterNames in interface IParameters
Returns:
Description of the Return Value
See Also:
Enumeration

parameters

public final Set parameters()
Description of the Method

Specified by:
parameters in interface IParameters
Returns:
Description of the Return Value

setParameter

public final Object setParameter(IParameterName key,
                                 Object value)
Sets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
setParameter in interface IParameters
Parameters:
key - The new parameter value
value - The new parameter value
Returns:
Description of the Return Value

getMultiValueParameter

public final List getMultiValueParameter(IParameterName key)
Gets the multiValueParameter attribute of the AbstractCollectionRenderer object

Specified by:
getMultiValueParameter in interface IParameters
Parameters:
key - Description of the param
Returns:
The multiValueParameter value

getParameter

public final String getParameter(IParameterName key)
Gets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
getParameter in interface ILayoutObject
Parameters:
key - Description of the param
Returns:
The parameter value

getParameter

public final String getParameter(IParameterName key,
                                 String defaultValue)
Gets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
getParameter in interface IParameters
Parameters:
key - Description of the param
defaultValue - Description of the param
Returns:
The parameter value

getParameter

public final int getParameter(IParameterName key,
                              int defaultValue)
Gets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
getParameter in interface IParameters
Parameters:
key - Description of the param
defaultValue - Description of the param
Returns:
The parameter value

getParameter

public final boolean getParameter(IParameterName key,
                                  boolean defaultValue)
Gets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
getParameter in interface IParameters
Parameters:
key - Description of the param
defaultValue - Description of the param
Returns:
The parameter value

getParameter

public final TextViewDesign getParameter(IParameterName key,
                                         TextViewDesign defaultValue)
Gets the parameter attribute of the AbstractCollectionRenderer object

Specified by:
getParameter in interface IParameters
Parameters:
key - Description of the param
defaultValue - Description of the param
Returns:
The parameter value

isNoOtherValue

public final boolean isNoOtherValue(IParameterName key,
                                    Object checkValue)
Gets the noOtherValue attribute of the AbstractCollectionRenderer object

Specified by:
isNoOtherValue in interface IParameters
Parameters:
key - Description of the param
checkValue - Description of the param
Returns:
The noOtherValue value
See Also:
get(Object key)

isExactlyValue

public final boolean isExactlyValue(IParameterName key,
                                    Object checkValue)
Gets the exactlyValue attribute of the AbstractCollectionRenderer object

Specified by:
isExactlyValue in interface IParameters
Parameters:
key - Description of the param
checkValue - Description of the param
Returns:
The exactlyValue value
See Also:
get(Object key)

removeParameter

public void removeParameter(IParameterName key)
Description of the Method

Specified by:
removeParameter in interface IParameters
Parameters:
key - Description of the param

receive

public void receive(WdfEvent cflEvent)
             throws WdfException
CflEventReceiver

Parameters:
cflEvent - Description of the param
Throws:
WdfException - Exception raised in failure situation

getMaxLength

protected int getMaxLength(String[] defaultModifiers)

renderPropertyColumn

public Component renderPropertyColumn(IResource resource,
                                      IPropertyColumn propertyColumn,
                                      boolean useSecondaryStyle)
                               throws WdfException
Description of the Method

Parameters:
resource - Description of the param
propertyColumn - Description of the param
useSecondaryStyle - Description of the Parameter
Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderPropertyColumn

public Component renderPropertyColumn(IResourceRenderer renderer,
                                      IResource resource,
                                      IPropertyColumn propertyColumn,
                                      boolean useSecondaryStyle)
                               throws WdfException
Description of the Method

Parameters:
resource - Description of the param
propertyColumn - Description of the param
useSecondaryStyle - Description of the Parameter
renderer - Description of the param
Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

renderMetaProperty

public Component renderMetaProperty(IResourceRenderer renderer,
                                    IMetaName metaName,
                                    boolean hasContentLink,
                                    boolean useSecondaryStyle)
                             throws WdfException
Description of the Method

Parameters:
metaName - Description of the param
hasContentLink - Description of the param
useSecondaryStyle - Description of the Parameter
renderer - Description of the param
Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

getColumnSpacing

public String getColumnSpacing()
Gets the columnSpacing attribute of the AbstractCollectionRenderer object

Returns:
The columnSpacing value

modifierListContains

public boolean modifierListContains(IPropertyColumn propertyColumn,
                                    String propertyModifierName)
                             throws WdfException
Description of the Method

Parameters:
propertyColumn - Description of the param
propertyModifierName - Description of the param
Returns:
Description of the Return Value
Throws:
WdfException - Exception raised in failure situation

getRowSpacing

public String getRowSpacing()
Gets the rowSpacing attribute of the AbstractCollectionRenderer object

Returns:
The rowSpacing value

getPropertyConfigurationService

public IPropertyConfigurationService getPropertyConfigurationService()
Gets the propertyConfigurationService attribute of the AbstractCollectionRenderer object

Returns:
The propertyConfigurationService value

getAlias

public final String getAlias()
implementation of the ILayoutObject-interface ************

Specified by:
getAlias in interface ILayoutObject
Returns:
The alias value

setAlias

public final void setAlias(String alias)
Sets the alias attribute of the AbstractCollectionRenderer object

Specified by:
setAlias in interface ILayoutObject
Parameters:
alias - The new alias value

initNewInstance

protected final ICollectionRenderer initNewInstance(ICollectionRenderer cr)
end of implementation of the ILayoutObject-interface **********

Parameters:
cr - Description of the Parameter
Returns:
Description of the Return Value

checkReadPermission

protected void checkReadPermission()

refresh

public void refresh()
Description copied from interface: ICollectionRenderer
asks the implementing class to refresh its list of IResource objects. This is needed, if a list that is displayed by this is modified after this has created its internal representation of these resources. This call is only useful, if the setParentCollection or setTypedResourceList method has been invoked in advance. This method can be very expensive, depending on the size of the resource list and the ordering and filtering calls that have to be carried out. In a standard scenario, this call is not needed, as the IProxyControl will refresh automatically all resource-list representations that use the proxy as persistence-layer. Implementations such as the AbstractCollectionRenderer may not react on this method at all, as they do not persist their resource list representations and therefore always have an up-to-date representation.

Specified by:
refresh in interface ICollectionRenderer

getSelectedResourcesMapID

public final String getSelectedResourcesMapID()

setSelectedResourcesMapID

public final void setSelectedResourcesMapID(String id)

setColumnsListID

public final void setColumnsListID(String value)

getColumnsListID

public final String getColumnsListID()

setResourceListID

public final void setResourceListID(String value)

getResourceListID

public final String getResourceListID()


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. 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.