|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.rendering.collection.LightCollectionRenderer
| Field Summary | |
static String |
BASE_BUNDLE
|
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 |
DEFAULT_PROPERTY_COLUMNS
|
protected int |
linksForPager
|
static String |
NBSP
|
static String |
RES_CONTENTSOF
|
static String |
RES_SORT_ASCENDING
|
static String |
RES_SORT_DESCENDING
|
| 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 | |
LightCollectionRenderer()
|
|
| Method Summary | |
protected void |
createComponentValueMap()
|
String |
createUniqueID(String idpart)
|
protected void |
filterResourceList()
|
Object |
get(String key)
Returns the value to which the specified key is mapped in this parameters set or in the default or in the default parameter set, when not found. |
String |
getAlias()
|
BundleHandler |
getBundleHandler()
|
String |
getColumnSpacing()
|
protected ComponentValueMap |
getComponentValueMap()
|
String |
getConfiguration(String format)
returns the supported parameters and the default values the class uses |
protected int |
getElementsPerPage()
|
IFlavor |
getFlavor()
|
String |
getID()
|
protected int |
getIntValue(IParameterName key,
int defValue)
|
protected int |
getIntValue(String key,
int defValue)
|
protected IRendererStatus |
getIRS()
|
protected LayoutObject |
getLayoutObject()
|
List |
getMultiValueParameter(IParameterName key)
Searches for the parameter with the specified key. |
String |
getParameter(IParameterName key)
Searches for the parameter with the specified key. |
boolean |
getParameter(IParameterName key,
boolean defaultValue)
Searches for the parameter with the specified key. |
int |
getParameter(IParameterName key,
int defaultValue)
Searches for the parameter with the specified key. |
String |
getParameter(IParameterName key,
String defaultValue)
Searches for the parameter with the specified key. |
TextViewDesign |
getParameter(IParameterName key,
TextViewDesign defaultValue)
Searches for the parameter with the specified key. |
IParameters |
getParameters()
returns all parameters used in this layout object. |
IParameters |
getParameters(IParameterName[] keys)
|
ICollection |
getParentCollection()
|
IPropertyNameList |
getPropertyNames()
|
protected IProxy |
getProxy()
|
protected IResourceRenderer |
getRenderer(IResource res)
|
IResourceContext |
getResourceContext()
|
protected IResourceList |
getResourceList()
|
protected com.sapportals.wcm.rendering.collection.LightCollectionRenderer.RenderInformationCollector |
getRIC()
|
String |
getRowSpacing()
|
IResourceList |
getSelectedResources()
|
int |
getStartRow()
|
IParameterName[] |
getSupportedParameters()
returns all parameters which are used in this layout object. |
protected ITypedResourceList |
getTypedResourceList()
|
protected ICollectionRenderer |
initNewInstance(ICollectionRenderer cr)
|
boolean |
is508enabled()
|
boolean |
isExactlyValue(IParameterName key,
Object checkValue)
Checks if an entry in the set exists for the specified key, which has the specified value. |
boolean |
isNoOtherValue(IParameterName key,
Object checkValue)
Checks for a key if no other value than the specified value is set. |
boolean |
isVisible()
|
IRenderingEvent |
onEvent(Event event)
|
IParameterNameSet |
parameterNames()
Returns an enumeration of all the keys in this parameter set, including the keys in the default parameter set and all included paramters. |
Set |
parameters()
Returns a Set view of the parameters contained in this parameters set. |
void |
readInputData(DynPage page)
reads out the input of the modifiable Components rendered by
the implementing class. |
void |
refresh()
asks the implementing class to refresh its list of IResource objects.
|
void |
removeParameter(IParameterName key)
removes the parameter specified from the paramters map. |
Component |
renderAll()
|
protected Component |
renderBreadcrumb()
|
protected Component |
renderDecorations(Component comp)
|
Component |
renderFolderTitle()
|
Component |
renderItemSelectionMode(IResource res)
|
protected Component |
renderPager(boolean hasMore,
int pageInterval,
int linkCount)
creates a new instance of a Pager and returns its results of the
render method. |
protected Component |
renderSearchHeader()
|
protected Component |
renderUI()
|
void |
resetSelection()
clears the list of selected resources |
void |
set508enabled(boolean value)
|
void |
setAlias(String alias)
|
void |
setFlavor(IFlavor impFlavor)
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 |
Boolean |
setParameter(IParameterName key,
boolean value)
Calls the map.put(key, value) method. |
Integer |
setParameter(IParameterName key,
int value)
Calls the map.put(key, value) method. |
Object |
setParameter(IParameterName key,
Object value)
|
String |
setParameter(IParameterName key,
String value)
Calls the map.put(key, value) method. |
TextViewDesign |
setParameter(IParameterName key,
TextViewDesign value)
Calls the map.put(key, value) method. |
void |
setParameters(IParameters parameters)
is called from the factory after initializing this layout object. |
void |
setParentCollection(ICollection parent)
is called from the factory after instantiating a new collection renderer to set the collection which has to be rendered. |
void |
setPropertyNames(IPropertyNameList nameList)
|
void |
setProxy(IProxy proxy)
it is the renderers responsibility to make itself known to the proxy. |
void |
setResourceContext(IResourceContext context)
sets the context-attribute for the renderer. |
void |
setSortDefinition(SortDefinition sd)
sets the sort-definition attribute for the implementing class. |
void |
setStartRow(int value)
|
void |
setSupportedParameters(IParameterName[] impKeys)
|
void |
setTypedResourceList(ITypedResourceList typedresourcelist)
is called from the factory after instantiating a new collection renderer to set the resourceList which has to be rendered. |
protected void |
sortResourceList(IPropertyNameList list,
SortDefinition sd)
|
protected void |
writeDebugInformation()
|
| 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.base.ILayoutObject |
getNewInstance |
| Field Detail |
public static final String NBSP
public static final String RES_SORT_ASCENDING
public static final String RES_SORT_DESCENDING
public static final String RES_CONTENTSOF
public static final String BASE_BUNDLE
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
protected int linksForPager
| Constructor Detail |
public LightCollectionRenderer()
| Method Detail |
protected com.sapportals.wcm.rendering.collection.LightCollectionRenderer.RenderInformationCollector getRIC()
protected final ICollectionRenderer initNewInstance(ICollectionRenderer cr)
public final String getAlias()
getAlias in interface ILayoutObjectpublic final void setAlias(String alias)
setAlias in interface ILayoutObjectpublic final void setFlavor(IFlavor impFlavor)
ILayoutObjectControl or ILayoutController ,
asking for special instances of the IResourceRenderer used by the implementing class
setFlavor in interface ILayoutObjectpublic final IFlavor getFlavor()
getFlavor in interface ILayoutObjectpublic boolean is508enabled()
is508enabled in interface ILayoutObjectpublic void set508enabled(boolean value)
public final void setSupportedParameters(IParameterName[] impKeys)
public IParameterName[] getSupportedParameters()
ILayoutObject
getSupportedParameters in interface ILayoutObjectILayoutObject.setParameters(com.sapportals.wcm.repository.service.layout.customizing.IParameters)public final String getConfiguration(String format)
ILayoutObject
getConfiguration in interface ILayoutObjectpublic String getParameter(IParameterName key)
IParametersnull if the
parameter is not found.
getParameter in interface ILayoutObjectnull. Note: a
returned null does not indicate, that the ILayoutObject
does not support this parameter!public IParameters getParameters()
ILayoutObject
getParameters in interface ILayoutObject
public String setParameter(IParameterName key,
String value)
IParameters map.put(key, value) method. This method is parrallel to the String
getParameter(IParameterName key) method.
setParameter in interface ILayoutObjectkey - - the key of the parametervalue - - 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 instancepublic void setParameters(IParameters parameters)
ILayoutObject 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
setParameters in interface ILayoutObjectparameters - - 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
getSupportedParameterspublic final void setProxy(IProxy proxy)
IRendererStatus
object within the proxy. When problems with persistence (lost selected resources
or exception when reading out the user input) occur, this method and getIRS()
should be closely evaluated.
setProxy in interface ILayoutObjectproxy - The new proxy valueprotected final IProxy getProxy()
public final boolean isExactlyValue(IParameterName key,
Object checkValue)
IParameters Object get(Object key) method an true is returned
when a value is found which equals the specified value.
isExactlyValue in interface IParameterskey - the paramters key to searchcheckValue - the value to compare with
get(Object key)
public final boolean isNoOtherValue(IParameterName key,
Object checkValue)
IParameters Object get(Object key) method an true is returned
when no value is not found or the found value equals the specified value.
isNoOtherValue in interface IParameterskey - the paramters key to searchcheckValue - the value to compare with
get(Object key)
public final TextViewDesign getParameter(IParameterName key,
TextViewDesign defaultValue)
IParameters TextViewDesign . If the stored String
can not be converted into a TextViewDesign null is returned.
getParameter in interface IParameterskey - the parameters key.defaultValue - a default value.
public final String getParameter(IParameterName key,
String defaultValue)
IParameters
getParameter in interface IParameterskey - the parameters key.defaultValue -
public final int getParameter(IParameterName key,
int defaultValue)
IParameters int if possible.
getParameter in interface IParameterskey - the parameters key.defaultValue - a default value.
public final boolean getParameter(IParameterName key,
boolean defaultValue)
IParameters boolean . The boolean returned
represents the value true if the parameters value is equal, ignoring case, to the string "true"
.
Example: Boolean.valueOf("True") returns true .
Example: Boolean.valueOf("yes") returns false .
getParameter in interface IParameterskey - the parameters key.defaultValue - a default value.
public final List getMultiValueParameter(IParameterName key)
IParametersnull if the
parameter is not found.
The parameter is returned as java.util.List , even if it is
a single Value Parameter. The class of the returned objects in the list
can be asked via
key.getMetaDate().getParameterClass()
getMultiValueParameter in interface IParameterskey - the parameters key.
public IParameters getParameters(IParameterName[] keys)
getParameters in interface IParameterspublic final Set parameters()
IParameters entrySet()
this set is not backed up by the map, but it contains all paramters accessible via this Paramters
map, this means, all paramters contained in the map, in the default map and in all included parameter sets.
parameters in interface IParameterspublic final IParameterNameSet parameterNames()
IParameters
parameterNames in interface IParametersEnumerationpublic final Object get(String key)
IParameters
get in interface IParameterskey - a key of the parameter.
null if the key is not mapped
to any value in this parameters set or in the default.#put(Object, Object)public void removeParameter(IParameterName key)
IParameters
removeParameter in interface IParameters
public final Boolean setParameter(IParameterName key,
boolean value)
IParameters map.put(key, value) method. This method is parrallel to the String
getParameter(IParameterName key) method. Here an int can be provided. The value will be
stored as String .
setParameter in interface IParameterskey - The key for the new Parametervalue - The value for the new Parameter
public final Integer setParameter(IParameterName key,
int value)
IParameters map.put(key, value) method. This method is parrallel to the String
getParameter(IParameterName key) method. Here an int can be provided. The value will be
stored as String .
setParameter in interface IParameterskey - The key for the new Parametervalue - The value for the new Parameter
public final TextViewDesign setParameter(IParameterName key,
TextViewDesign value)
IParameters map.put(key, value) method. This method is parrallel to the String
getParameter(IParameterName key) method. Here an TextViewDesign can be provided. The value
will be stored as String .
setParameter in interface IParameterskey - The key for the new Parametervalue - The value for the new Parameter
public final Object setParameter(IParameterName key,
Object value)
setParameter in interface IParameters
protected final int getIntValue(String key,
int defValue)
protected final int getIntValue(IParameterName key,
int defValue)
public final void setStartRow(int value)
throws WcmException
WcmException
public final int getStartRow()
throws WcmException
WcmExceptionpublic final IPropertyNameList getPropertyNames()
public void setPropertyNames(IPropertyNameList nameList)
protected LayoutObject getLayoutObject()
public String getColumnSpacing()
public String getRowSpacing()
protected final Component renderPager(boolean hasMore,
int pageInterval,
int linkCount)
throws WcmException
Pager and returns its results of the
render method. The current IProxy object of the renderer
is used as target for any Events created by the pager. The pager
class is used again in the onEvent method of the renderer.
hasMore - Description of the ParameterpageInterval - Description of the ParameterlinkCount - Description of the Parameter
WcmException - Description of the Exception
protected final Component renderSearchHeader()
throws WcmException
WcmException
public Component renderFolderTitle()
throws WcmException
WcmException
protected final Component renderBreadcrumb()
throws WcmException
WcmException - Description of the Exception
public final Component renderItemSelectionMode(IResource res)
throws WcmException
WcmExceptionprotected final void writeDebugInformation()
public void setParentCollection(ICollection parent)
ICollectionRenderersetTypedResourceList(ITypedResourceList resourcelist)
method is called, i.e. when a search result has to be rendered.
setParentCollection in interface ICollectionRendererparent - the collection to render (and whose chidren to render)public final void setTypedResourceList(ITypedResourceList typedresourcelist)
ICollectionRenderersetParentCollection(ICollection collection)
method is called, i.e. when a folder has to be rendered
setTypedResourceList in interface ICollectionRenderertypedresourcelist - the resourcelist to render (and whose members to render)
protected final IResourceRenderer getRenderer(IResource res)
throws WcmException
WcmExceptionpublic ICollection getParentCollection()
protected ITypedResourceList getTypedResourceList()
public Component renderAll()
throws WcmException
renderAll in interface ICollectionRendererWcmException
protected Component renderDecorations(Component comp)
throws WcmException
WcmException
protected void createComponentValueMap()
throws WcmException
WcmException
protected ComponentValueMap getComponentValueMap()
throws WcmException
WcmExceptionprotected int getElementsPerPage()
protected Component renderUI()
throws WcmException
WcmException
protected final void filterResourceList()
throws WcmException
WcmExceptionpublic 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 ICollectionRenderer
protected IRendererStatus getIRS()
throws WcmException
WcmExceptionpublic String createUniqueID(String idpart)
createUniqueID in interface com.sapportals.wcm.control.base.IUniqueIDSupplier
public void readInputData(DynPage page)
throws WcmException
ICollectionRendererComponents rendered by
the implementing class.
readInputData in interface ICollectionRendererWcmExceptionpublic String getID()
getID in interface ICollectionRendererIProxy's method register. This ID will be stable
over http-requests.public void setResourceContext(IResourceContext context)
ICollectionRenderernull
setResourceContext in interface ICollectionRendererpublic IResourceContext getResourceContext()
getResourceContext in interface ICollectionRenderernullpublic BundleHandler getBundleHandler()
public IRenderingEvent onEvent(Event event)
throws WcmException
onEvent in interface IDelegatedReceiverWcmExceptionpublic void setSortDefinition(SortDefinition sd)
ICollectionRenderer
setSortDefinition in interface ICollectionRendererpublic final IResourceList getSelectedResources()
getSelectedResources in interface IResourceListProvidernullpublic void resetSelection()
IResourceListProvider
resetSelection in interface IResourceListProvider
protected IResourceList getResourceList()
throws WcmException
WcmException
protected final void sortResourceList(IPropertyNameList list,
SortDefinition sd)
throws WcmException
WcmExceptionpublic boolean isVisible()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||