|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.control.util.AbstractPropertyRenderer
public abstract class AbstractPropertyRenderer
| Field Summary | |
|---|---|
static String |
CID_PROPERTY_NAME
Deprecated. |
static String |
CID_PROPERTY_ROW
Deprecated. |
static String |
CID_PROPERTY_TIME_VALUE
Deprecated. |
static String |
CID_PROPERTY_VALUE
Deprecated. |
static String |
CM_DESCRIPTION
Deprecated. |
static String |
CM_RND_EXPLORER_URL
Deprecated. |
static String |
CM_RND_EXTERNAL_LINK
Deprecated. |
static String |
CM_RND_PATH
Deprecated. |
static String |
CM_RND_TARGET_URL
Deprecated. |
static String |
CM_RND_TARGET_URL_COPY
Deprecated. |
static String |
CM_RND_WEBDAV_URL
Deprecated. |
static String |
CM_RND_WEBDAV_URL_COPY
Deprecated. |
protected IMetaName |
currentMetaName
Deprecated. |
static String |
DATE_FORMAT
Deprecated. |
static String |
DEFAULT_DATE_FORMAT
Deprecated. |
static String |
DEFAULT_DATE_TIME_FORMAT
Deprecated. |
static String |
DEFAULT_TIME_FORMAT
Deprecated. |
protected PropertyDisplayMode |
displayMode
Deprecated. If no display mode is set, the default display mode is undefined. |
static String |
EVENT_ADD_NEW_VALUE
Deprecated. |
static String |
EVENT_EDIT_HTML
Deprecated. |
protected com.sapportals.htmlb.LabeledComponent |
labeledComponent
Deprecated. |
static String |
METATAG_NO_LABEL
Deprecated. |
static String |
RENDER_HTML
Deprecated. |
static String |
RES_ADD_NEW_VALUE
Deprecated. |
static String |
RES_EDIT_HTML
Deprecated. |
| Constructor Summary | |
|---|---|
AbstractPropertyRenderer()
Deprecated. As of NetWeaver 7.1 |
|
| Method Summary | |
|---|---|
static ResourceBundles |
getBundle(String fileName)
Deprecated. As of NetWeaver 7.1 |
IMetaName |
getCurrentMetaName()
Deprecated. Retrieve the current IMetaName |
com.sapportals.htmlb.LabeledComponent |
getLabeledComponent()
Deprecated. As of NetWeaver 7.1 |
IPropertyMap |
getProperties(IMetaName metaName,
IMetaContext rendererContext,
com.sapportals.htmlb.page.DynPage dynPage)
Deprecated. As of NetWeaver 7.1 |
IProperty |
getProperty(com.sapportals.htmlb.page.DynPage dynPage)
Deprecated. As of NetWeaver 7.1 |
String |
getPropertyTooltip(IMetaName metaName)
Deprecated. As of NetWeaver 7.1 |
protected PropertyType |
getPropertyType(IMetaName metaName)
Deprecated. As of NetWeaver 7.1 |
IResourceContext |
getResourceContext()
Deprecated. As of NetWeaver 7.1 |
boolean |
is508Required()
Deprecated. As of NetWeaver 7.1 |
protected Boolean |
isEditable(IMetaName metaName,
IMetaContext rendererContext)
Deprecated. As of NetWeaver 7.1 |
protected Boolean |
isEditable(IMetaName metaName,
IMetaContext rendererContext,
boolean ignoreVirtual)
Deprecated. As of NetWeaver 7.1 |
String[] |
processEvent(IMetaName metaName,
com.sapportals.htmlb.event.Event event,
IMetaContext rendererContext,
com.sapportals.htmlb.page.DynPage dynPage)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderMetaNameLabel(IMetaName metaName,
IMetaContext rendererContext)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderMetaProperty(IMetaName metaName,
IMetaContext rendererContext)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderProperty(IProperty property,
IResource resource,
int maxLength)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderProperty(IProperty property,
IResource resource,
int maxLength,
com.sapportals.wdf.stack.Control ctrl)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderSpacing()
Deprecated. As of NetWeaver 7.1 |
void |
set508Required(boolean active)
Deprecated. As of NetWeaver 7.1 |
void |
setCurrentMetaName(IMetaName metaName)
Deprecated. Set the IMetaName |
void |
setDisplayMode(PropertyDisplayMode displayMode)
Deprecated. As of NetWeaver 7.1 |
void |
setResourceContext(IResourceContext context)
Deprecated. As of NetWeaver 7.1 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EVENT_ADD_NEW_VALUE
public static final String EVENT_EDIT_HTML
public static final String RES_ADD_NEW_VALUE
public static final String RES_EDIT_HTML
public static final String RENDER_HTML
public static final String CM_RND_PATH
public static final String CM_RND_TARGET_URL
public static final String CM_RND_EXPLORER_URL
public static final String CM_RND_WEBDAV_URL
public static final String CM_RND_WEBDAV_URL_COPY
public static final String CM_RND_TARGET_URL_COPY
public static final String CM_RND_EXTERNAL_LINK
public static final String CM_DESCRIPTION
public static final String DATE_FORMAT
public static final String DEFAULT_DATE_TIME_FORMAT
public static final String DEFAULT_TIME_FORMAT
public static final String DEFAULT_DATE_FORMAT
public static final String CID_PROPERTY_VALUE
public static final String CID_PROPERTY_TIME_VALUE
public static final String CID_PROPERTY_NAME
public static final String CID_PROPERTY_ROW
public static final String METATAG_NO_LABEL
protected com.sapportals.htmlb.LabeledComponent labeledComponent
protected IMetaName currentMetaName
protected PropertyDisplayMode displayMode
| Constructor Detail |
|---|
public AbstractPropertyRenderer()
| Method Detail |
|---|
public com.sapportals.htmlb.Component renderProperty(IProperty property,
IResource resource,
int maxLength)
throws WcmException
renderProperty in interface IPropertyRendererproperty - to berenderedresource - to which the property belongsmaxLength - Description of the Parameter
WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderProperty(IProperty property,
IResource resource,
int maxLength,
com.sapportals.wdf.stack.Control ctrl)
throws WcmException
renderProperty in interface IPropertyRendererproperty - to berenderedresource - to which the property belongsctrl - can be used for callback actionsmaxLength - Description of the Parameter
WcmException - Description of the Exceptionpublic void setDisplayMode(PropertyDisplayMode displayMode)
setDisplayMode in interface IPropertyRendererdisplayMode - current display mode
public IProperty getProperty(com.sapportals.htmlb.page.DynPage dynPage)
throws WcmException
getProperty in interface IPropertyRendererdynPage - response page
WcmException - Description of the Exception
public com.sapportals.htmlb.Component renderMetaNameLabel(IMetaName metaName,
IMetaContext rendererContext)
IStructuredPropertyRendererComponent for the label for a given IMetaName and a given IMetaContext
null as returned component is accepted, if no label is whished.
renderMetaNameLabel in interface IStructuredPropertyRenderermetaName - the given IMetaName for which the component will be renderedrendererContext - the given IMetaContext for which the component will be rendered
- Returns:
- a htmlb
Component which will rendered in in UI dialog public String getPropertyTooltip(IMetaName metaName)
public com.sapportals.htmlb.Component renderSpacing()
public com.sapportals.htmlb.Component renderMetaProperty(IMetaName metaName,
IMetaContext rendererContext)
throws WcmException
renderMetaProperty in interface IStructuredPropertyRendererrendererContext - Description of the ParametermetaName - Description of the Parameter
WcmException - Description of the Exception
protected Boolean isEditable(IMetaName metaName,
IMetaContext rendererContext)
throws WcmException
metaName - rendererContext -
WcmException
protected Boolean isEditable(IMetaName metaName,
IMetaContext rendererContext,
boolean ignoreVirtual)
throws WcmException
metaName - rendererContext - ignoreVirtual - - if the metaName.isVistual() method is ignored or not
WcmExceptionpublic IResourceContext getResourceContext()
null
public void setResourceContext(IResourceContext context)
public String[] processEvent(IMetaName metaName,
com.sapportals.htmlb.event.Event event,
IMetaContext rendererContext,
com.sapportals.htmlb.page.DynPage dynPage)
throws WcmException
IStructuredPropertyRendererEvent should be decode using rendererContext.getRendererProxy().decodeValues(event);
If the ArrayList is not empty then the first value from it is the action as String.
If the action is known by the renderer then the logic should be implemented
If something fails then one or more error messages should be returns as String array
processEvent in interface IStructuredPropertyRenderermetaName - the given IMetaName for which the renderer is calledevent - the Event which has encoded the action and other value which will
be process by the rendererrendererContext - context information for the rendererdynPage - htmlb dynpage that contains the response document
- Returns:
- localized error messages or
null
- Throws:
WcmException
public IPropertyMap getProperties(IMetaName metaName,
IMetaContext rendererContext,
com.sapportals.htmlb.page.DynPage dynPage)
throws WcmException
IStructuredPropertyRendererComponent
from the DynPage, the the input value, and validate and create a IProperty for this
IMetaName. If the input value is invalid then it will created a IProperty with empty value
like it follows : IPropertyMap and it will be shown as invalid input.
The returned IPropertyMap could have one or more IProperty according
with the property renderer logic.
getProperties in interface IStructuredPropertyRenderermetaName - the given IMetaName for which the property will be createdrendererContext - - contains the rendering information: which IResourceContext,
IResource or PropertyDisplayModedynPage - htmlb dynpage that contains the response document
null is accepted
WcmExceptionprotected PropertyType getPropertyType(IMetaName metaName)
metaName - Description of the param
public static ResourceBundles getBundle(String fileName)
throws MissingResourceException
fileName - Description of the Parameter
MissingResourceException - The default resource bundle must be available!public com.sapportals.htmlb.LabeledComponent getLabeledComponent()
IAccessibilityRendererLabeledComponent which it'll be attached to the
property Label component in 508 mode by rendering
the Property Structure
getLabeledComponent in interface IAccessibilityRendererpublic boolean is508Required()
IAccessibilityRenderer
is508Required in interface IAccessibilityRendererpublic void set508Required(boolean active)
true if the 508 mode is enabled
false otherwise
set508Required in interface IAccessibilityRendererpublic IMetaName getCurrentMetaName()
IRenderMetaNameIMetaName
getCurrentMetaName in interface IRenderMetaNamepublic void setCurrentMetaName(IMetaName metaName)
IRenderMetaNameIMetaName
setCurrentMetaName in interface IRenderMetaName| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||