|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wdf.stack.Control
com.sapportals.wcm.control.base.WcmBaseControl
com.sapportals.wcm.rendering.collection.AbstractCollectionRenderer
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.
| Nested Class Summary | |
static class |
AbstractCollectionRenderer.Persistence
|
| 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 |
| 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 |
public static final String RES_SORT_ASCENDING
public static final String RES_SORT_DESCENDING
public static final String RES_CONTENTSOF
public static final String RES_FILESOF
public static final String RES_FOLDERSOF
public static final String RES_SORTBY
public static final String RES_SORTDESCENDING
public static final String RES_SORTASCENDING
public static final String RES_SELECTRESOURCE
public static final String RES_SELECTIONLOST
public static final String RES_EDIT
public static final String BASE_BUNDLE
public static final String ON_SELECT_SORT
public static final String ON_TOGGLE_SORT
public static final String ON_SELECT_FILTER
public static final String ON_TOGGLE_FILTER
public static final String ON_NAVIGATE
public static final String COMMA
public static final String PIXEL
public static final String NBSP
public static final String BLANK
public static final String CM_RND_ACTION
public static final String CM_RND_DISPLAYNAME
public static final String CM_RND_ICON
public static final String CM_RND_IMAGE
public static final String CM_RND_DESCRIPTION
public static final String CM_RND_LOCK
public static final String CM_RND_CHILDCOUNT
public static final String CM_RND_CHILDCOUNT_WITH_BRACKETS
public static final String CM_RND_CHILDCOUNT_BOTH
public static final String CM_RND_CHILDCOUNT_SUM
public static final String CM_RND_CHILDCOUNT_FOLDERS
public static final String CM_RND_CHILDCOUNT_FILES
public static final String CM_RND_CHILDCOUNT_PROPERTY_NAME
public static final String CM_RND_CHILDCOUNT_WITH_BRACKETS_PROPERTY_NAME
public static final String DEFAULT_PROPERTY_COLUMNS
public static final String DEFAULT_SORT_PROPERTY
public static final String NO_SORT_PROPERTY
public static final String DEFAULT_SORT_ORDER
public static final int MANUAL_SORT_ORDER
| Constructor Detail |
public AbstractCollectionRenderer()
| Method Detail |
protected LayoutObject getLayoutObject()
public final void setProxy(IProxy proxy)
setProxy in interface ILayoutObjectproxy - The new proxy valueprotected final IProxy getProxy()
public final void setFlavor(IFlavor impFlavor)
setFlavor in interface ILayoutObjectimpFlavor - The new flavor valuepublic final IFlavor getFlavor()
getFlavor in interface ILayoutObjectpublic final void setSortOrder(int sortOrder)
sortOrder - The new sortOrder valuepublic final int getSortOrder()
public final boolean is508enabled()
is508enabled in interface ILayoutObjectprotected final void set508enabled(boolean imp508)
public final boolean getSelectedElementsExist()
public final void setSelectedElementsExist(boolean flag)
flag - The new selectedElementsExist valuepublic final String getConfiguration(String format)
getConfiguration in interface ILayoutObjectformat - Description of the param
public void setParentCollection(ICollection parent)
setParentCollection in interface ICollectionRendererparent - The new parentCollection valuepublic final ICollection getParentCollection()
public final void setTypedResourceList(ITypedResourceList typedresourcelist)
setTypedResourceList in interface ICollectionRenderertypedresourcelist - The new typedResourceList valuepublic final IParameterName[] getSupportedParameters()
getSupportedParameters in interface ILayoutObjectILayoutObject.setParameters(com.sapportals.wcm.repository.service.layout.customizing.IParameters)public final void setSupportedParameters(IParameterName[] impKeys)
impKeys - The new supportedParameters valuepublic final void setStartRow(int value)
value - The new startRow valuepublic final int getStartRow()
public final void setSortField(String sortField)
sortField - The new sortField valuepublic final String getSortField()
public final IParameters getParameters()
getParameters in interface ILayoutObjectpublic IParameters getParameters(IParameterName[] keys)
getParameters in interface IParameterskeys - Description of the param
public final void resetSelection()
resetSelection in interface IResourceListProviderpublic final void setParameters(IParameters parameters)
setParameters in interface ILayoutObjectparameters - The new parameters valuepublic final void setColumnsList(IPropertyColumn[] list)
list - The new columnsList valuepublic IPropertyColumn[] getColumnsList()
public static Component renderEmptyTextView()
protected Component renderInfoNoResourcesAvailable()
throws WdfException
WdfException
public final Component renderBreadcrumb()
throws WdfException
WdfException - Exception raised in failure situation
public final Component renderSorter()
throws WdfException
WdfException - Exception raised in failure situation
public Component renderFilter()
throws WdfException
WdfException - Exception raised in failure situation
public final Component renderPager(boolean hasMore,
int pageInterval,
int linkCount)
throws WdfException
hasMore - Description of the parampageInterval - Description of the paramlinkCount - Description of the param
WdfException - Exception raised in failure situationpublic final WdfEvent onSelectSort(Event event)
event - Description of the param
public final WdfEvent onSort(Event event)
event - Description of the param
public final WdfEvent onToggleSort(Event event)
event - Description of the param
public WdfEvent onSelectFilter(Event event)
event - Description of the param
public WdfEvent onToggleFilter(Event event)
event - Description of the param
public final WdfEvent onNavigate(Event event)
event - Description of the param
protected HashMap getPropertyMap()
protected final void initialize()
public final void persistSelectedResourcesMap()
public final Checkbox renderCheckbox(IResource res)
throws WdfException
res - Description of the param
WdfException - Exception raised in failure situation
public final Checkbox renderCheckbox(IResource res,
String selectionmode)
throws WdfException
res - Description of the paramselectionmode - Description of the param
WdfException - Exception raised in failure situation
public final Component renderItemSelectionMode(IResource res)
throws WdfException
res - Description of the param
WdfException - Exception raised in failure situation
public Component renderFolderTitle()
throws WcmException,
WdfException
WcmException - Exception raised in failure situation
WdfException - Exception raised in failure situationpublic final IResourceList getSelectedResources()
getSelectedResources in interface IResourceListProvider
protected void readInputData()
throws WdfException
WdfExceptionpublic void setUserDefinedFilterID(String value)
value - The new userDefinedFilterID valuepublic String getUserDefinedFilterID()
public final void setResourceList(IResourceList list)
list - The new resourceList valuepublic final IResourceList getResourceList()
public final Component render()
throws WdfException
WdfException - Exception raised in failure situation
public Component renderAll()
throws WcmException
renderAll in interface ICollectionRendererWcmException
public Component renderAction(IResource res,
IParameterName parameterName)
throws WdfException
res - Description of the paramparameterName - Description of the param
WdfException - Exception raised in failure situation
public abstract Component renderUI()
throws WdfException
WdfException - Exception raised in failure situationpublic final IPropertyNameList getPropertyNames()
public void setPropertyNames(IPropertyNameList nameList)
nameList - The new propertyNames value
public final void readCheckBoxes()
throws WdfException,
WcmException
WdfException - Exception raised in failure situation
WcmException - Exception raised in failure situation
protected final void filterResourceList()
throws WcmException
WcmExceptionprotected IPropertyName getSortPropertyName()
protected final void sortResourceList()
throws WcmException
WcmException
protected final IResourceRenderer getRenderer(IResource res)
throws WcmException
WcmException
protected final int getIntValue(String key,
int defValue)
protected final int getIntValue(IParameterName key,
int defValue)
protected final void writeDebugInformation()
public final String setParameter(IParameterName key,
String value)
setParameter in interface ILayoutObjectkey - The new parameter valuevalue - The new parameter value
public final Integer setParameter(IParameterName key,
int value)
setParameter in interface IParameterskey - The new parameter valuevalue - The new parameter value
public final TextViewDesign setParameter(IParameterName key,
TextViewDesign value)
setParameter in interface IParameterskey - The new parameter valuevalue - The new parameter value
public final Boolean setParameter(IParameterName key,
boolean value)
setParameter in interface IParameterskey - The new parameter valuevalue - The new parameter value
public final Object get(String key)
get in interface IParameterskey - Description of the param
#put(Object, Object)public final IParameterNameSet parameterNames()
parameterNames in interface IParametersEnumerationpublic final Set parameters()
parameters in interface IParameters
public final Object setParameter(IParameterName key,
Object value)
setParameter in interface IParameterskey - The new parameter valuevalue - The new parameter value
public final List getMultiValueParameter(IParameterName key)
getMultiValueParameter in interface IParameterskey - Description of the param
public final String getParameter(IParameterName key)
getParameter in interface ILayoutObjectkey - Description of the param
public final String getParameter(IParameterName key,
String defaultValue)
getParameter in interface IParameterskey - Description of the paramdefaultValue - Description of the param
public final int getParameter(IParameterName key,
int defaultValue)
getParameter in interface IParameterskey - Description of the paramdefaultValue - Description of the param
public final boolean getParameter(IParameterName key,
boolean defaultValue)
getParameter in interface IParameterskey - Description of the paramdefaultValue - Description of the param
public final TextViewDesign getParameter(IParameterName key,
TextViewDesign defaultValue)
getParameter in interface IParameterskey - Description of the paramdefaultValue - Description of the param
public final boolean isNoOtherValue(IParameterName key,
Object checkValue)
isNoOtherValue in interface IParameterskey - Description of the paramcheckValue - Description of the param
get(Object key)
public final boolean isExactlyValue(IParameterName key,
Object checkValue)
isExactlyValue in interface IParameterskey - Description of the paramcheckValue - Description of the param
get(Object key)public void removeParameter(IParameterName key)
removeParameter in interface IParameterskey - Description of the param
public void receive(WdfEvent cflEvent)
throws WdfException
cflEvent - Description of the param
WdfException - Exception raised in failure situationprotected int getMaxLength(String[] defaultModifiers)
public Component renderPropertyColumn(IResource resource,
IPropertyColumn propertyColumn,
boolean useSecondaryStyle)
throws WdfException
resource - Description of the parampropertyColumn - Description of the paramuseSecondaryStyle - Description of the Parameter
WdfException - Exception raised in failure situation
public Component renderPropertyColumn(IResourceRenderer renderer,
IResource resource,
IPropertyColumn propertyColumn,
boolean useSecondaryStyle)
throws WdfException
resource - Description of the parampropertyColumn - Description of the paramuseSecondaryStyle - Description of the Parameterrenderer - Description of the param
WdfException - Exception raised in failure situation
public Component renderMetaProperty(IResourceRenderer renderer,
IMetaName metaName,
boolean hasContentLink,
boolean useSecondaryStyle)
throws WdfException
metaName - Description of the paramhasContentLink - Description of the paramuseSecondaryStyle - Description of the Parameterrenderer - Description of the param
WdfException - Exception raised in failure situationpublic String getColumnSpacing()
public boolean modifierListContains(IPropertyColumn propertyColumn,
String propertyModifierName)
throws WdfException
propertyColumn - Description of the parampropertyModifierName - Description of the param
WdfException - Exception raised in failure situationpublic String getRowSpacing()
public IPropertyConfigurationService getPropertyConfigurationService()
public final String getAlias()
getAlias in interface ILayoutObjectpublic final void setAlias(String alias)
setAlias in interface ILayoutObjectalias - The new alias valueprotected final ICollectionRenderer initNewInstance(ICollectionRenderer cr)
cr - Description of the Parameter
protected void checkReadPermission()
public void refresh()
ICollectionRendererIResource 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.
refresh in interface ICollectionRendererpublic final String getSelectedResourcesMapID()
public final void setSelectedResourcesMapID(String id)
public final void setColumnsListID(String value)
public final String getColumnsListID()
public final void setResourceListID(String value)
public final String getResourceListID()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||