|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| 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
public abstract class WcmBaseControl
Base Class to create reusable controls with WCM.
All internally handled actions should be .setOnClick(ControlEventDispatcher.DISPATCH_EVENT);
The control IDs have to be generated using: ControlEventDispatcher.dispatchableControlID()
Classes deriving from this class need to implement a default constructor in order to be dynamically
Instantiated for events.
| Field Summary | |
|---|---|
static String |
BLANK_LINK_TARGET
Deprecated. constant for links that open a new browser window |
static int |
CELL_PADDING_STANDARD
Deprecated. constants to ensure consisting layout over all WCM-Controls, should be used instead of setting own Spacing, Padding etc. in inherited controls |
static int |
CELL_SPACING_STANDARD
Deprecated. |
static com.sapportals.htmlb.enums.TextViewDesign |
CONTROL_HEADER_STANDARD
Deprecated. |
protected String |
DETAILS_CONFIG_FILE
Deprecated. |
static String |
NONE
Deprecated. Constants used by controls that show an explanation text. |
protected static String |
RES_BUTTON_ADD
Deprecated. |
protected static String |
RES_BUTTON_APPLY
Deprecated. |
protected static String |
RES_BUTTON_BACK
Deprecated. |
protected static String |
RES_BUTTON_CANCEL
Deprecated. |
protected static String |
RES_BUTTON_CLOSE
Deprecated. |
protected static String |
RES_BUTTON_LOAD
Deprecated. |
protected static String |
RES_BUTTON_MORE
Deprecated. |
protected static String |
RES_BUTTON_OK
Deprecated. flag to check, if 508rendering (for handicapped people) is needed or not |
protected static String |
RES_BUTTON_REMOVE
Deprecated. |
protected static String |
RES_BUTTON_SAVE
Deprecated. |
protected static String |
RES_BUTTON_SELECT
Deprecated. |
protected static String |
RES_BUTTON_UPDATE
Deprecated. |
protected IResourceContext |
resourceContext
Deprecated. Current resource context which is initially set by a pagelet and is restored by the dispatch framework. |
static String |
SUMMARY
Deprecated. |
| Fields inherited from class com.sapportals.wdf.stack.Control |
|---|
id |
| Constructor Summary | |
|---|---|
WcmBaseControl()
Deprecated. |
|
| Method Summary | |
|---|---|
String |
getBaseBundleString(String baseName,
String key)
Deprecated. As of NetWeaver 7.1 |
String |
getBaseBundleString(String baseName,
String key,
Object obj)
Deprecated. As of NetWeaver 7.1 |
protected String |
getBaseBundleString(String baseName,
String key,
Object[] objs)
Deprecated. As of NetWeaver 7.1 |
String |
getBaseBundleString(String baseName,
String key,
Object obj1,
Object obj2)
Deprecated. As of NetWeaver 7.1 |
protected String |
getBundleString(String key)
Deprecated. As of NetWeaver 7.1 |
protected String |
getBundleString(String key,
Object obj)
Deprecated. As of NetWeaver 7.1 |
protected String |
getBundleString(String key,
Object[] objs)
Deprecated. As of NetWeaver 7.1 |
protected String |
getBundleString(String key,
Object obj1,
Object obj2)
Deprecated. As of NetWeaver 7.1 |
protected com.sapportals.htmlb.Component |
getBusinessCardLink(String userId,
String linkName,
String displayName,
String targetName)
Deprecated. As of NetWeaver 7.1 |
protected com.sapportals.htmlb.Image |
getImage(String fileName,
String alternateText,
String tooltip)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.wdf.ParameterConfiguration |
getParameterConfiguration()
Deprecated. As of NetWeaver 7.1 |
IResourceContext |
getResourceContext()
Deprecated. As of NetWeaver 7.1 |
protected IUriReference |
getServicePageUri(String uri,
String startPage)
Deprecated. As of NetWeaver 7.1 |
protected void |
handleException(Exception e)
Deprecated. As of NetWeaver 7.1 |
boolean |
isSection508Rendering()
Deprecated. As of NetWeaver 7.1 |
boolean |
isTestMode()
Deprecated. As of NetWeaver 7.1 |
boolean |
isVisible()
Deprecated. As of NetWeaver 7.1 |
protected void |
readInputData()
Deprecated. As of NetWeaver 7.1 |
void |
setControlContext(com.sapportals.wdf.stack.ControlContext controlContext)
Deprecated. As of NetWeaver 7.1 |
void |
setResourceContext(IResourceContext resourceContext)
Deprecated. As of NetWeaver 7.1 |
void |
setTestMode(boolean testMode)
Deprecated. As of NetWeaver 7.1 |
void |
setVisible(boolean visible)
Deprecated. As of NetWeaver 7.1 |
| Methods inherited from class com.sapportals.wdf.stack.Control |
|---|
create, create, createNestedControls, createUnequivocallyComponentId, dispatchHtmlbEvent, dispatchWdfEvent, getControlContext, getDynPage, getID, getParent, getPersistenceComponentManager, getRootControl, getStackId, initialize, initializeImpl, isInitialized, register, render, renderPersistentProperties, resetNestedControls, restorePersistentProperties, restoreProperties, setID, setInitialized, setParent, setStackId, triggerInput |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String DETAILS_CONFIG_FILE
protected static final String RES_BUTTON_OK
protected static final String RES_BUTTON_CANCEL
protected static final String RES_BUTTON_BACK
protected static final String RES_BUTTON_APPLY
protected static final String RES_BUTTON_REMOVE
protected static final String RES_BUTTON_ADD
protected static final String RES_BUTTON_SAVE
protected static final String RES_BUTTON_LOAD
protected static final String RES_BUTTON_SELECT
protected static final String RES_BUTTON_UPDATE
protected static final String RES_BUTTON_MORE
protected static final String RES_BUTTON_CLOSE
public static final int CELL_PADDING_STANDARD
public static final int CELL_SPACING_STANDARD
public static final com.sapportals.htmlb.enums.TextViewDesign CONTROL_HEADER_STANDARD
public static final String BLANK_LINK_TARGET
public static final String NONE
public static final String SUMMARY
protected IResourceContext resourceContext
| Constructor Detail |
|---|
public WcmBaseControl()
| Method Detail |
|---|
public void setResourceContext(IResourceContext resourceContext)
public IResourceContext getResourceContext()
public void setControlContext(com.sapportals.wdf.stack.ControlContext controlContext)
setControlContext in class com.sapportals.wdf.stack.Control
protected String getBaseBundleString(String baseName,
String key,
Object[] objs)
throws MissingResourceException
baseName - base name of property file (null: current class name)key - A resource bundle key that must exist in either the optional or default bundle.objs - An object array containing objects to be replaced in the bundle (@see java.text.MessageFormat)
MissingResourceException - This is thrown if a key was not found in both resource files.
protected String getBundleString(String key,
Object[] objs)
throws MissingResourceException
key - A resource bundle key that must exist in either the optional or default bundle.objs - An object array containing objects to be replaced in the bundle (@see java.text.MessageFormat)
MissingResourceException - This is thrown if a key was not found in both resource files.
public String getBaseBundleString(String baseName,
String key)
throws MissingResourceException
baseName - base name of property file (null: current class name)key - A resource bundle key that must exist in either the optional or default bundle.
MissingResourceException - This is thrown if a key was not found in both resource files.getBaseBundleString(String baseName, String key, Object[] objs)
protected String getBundleString(String key)
throws MissingResourceException
key - A resource bundle key that must exist in either the optional or default bundle.
MissingResourceException - This is thrown if a key was not found in both resource files.getBaseBundleString(String baseName, String key, Object[] objs)
public String getBaseBundleString(String baseName,
String key,
Object obj)
throws MissingResourceException
baseName - base name of property file (null: current class name)key - A resource bundle key that must exist in either the optional or default bundle.obj - An object that will be replaced at each occurrence of "{1 [, MissingResourceException - This is thrown if a key was not found in both resource files.
protected String getBundleString(String key,
Object obj)
throws MissingResourceException
key - A resource bundle key that must exist in either the optional or default bundle.obj - An object that will be replaced at each occurrence of "{1 [, MissingResourceException - This is thrown if a key was not found in both resource files.
public String getBaseBundleString(String baseName,
String key,
Object obj1,
Object obj2)
throws MissingResourceException
baseName - base name of property file (null: current class name)key - A resource bundle key that must exist in either the optional or default bundle.obj1 - An object that will be replaced at each occurrence of "{1 [, obj2 - An object that will be replaced at each occurrence of "{2 [, MissingResourceException - This is thrown if a key was not found in both resource files.
protected String getBundleString(String key,
Object obj1,
Object obj2)
throws MissingResourceException
key - A resource bundle key that must exist in either the optional or default bundle.obj1 - An object that will be replaced at each occurrence of "{1 [, obj2 - An object that will be replaced at each occurrence of "{2 [, MissingResourceException - This is thrown if a key was not found in both resource files.public void setVisible(boolean visible)
public boolean isVisible()
public boolean isSection508Rendering()
public void setTestMode(boolean testMode)
public boolean isTestMode()
protected void handleException(Exception e)
throws com.sapportals.wdf.WdfException
com.sapportals.wdf.WdfException
protected void readInputData()
throws com.sapportals.wdf.WdfException
readInputData in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException
protected com.sapportals.htmlb.Image getImage(String fileName,
String alternateText,
String tooltip)
throws WcmException
fileName - the name of the imagefile (wihout path)alternateText - an alternative text to display when image not availabletooltip - the string used for displaying in the tooltip
Image object
WcmException - if URL generator could not be retrieved
protected com.sapportals.htmlb.Component getBusinessCardLink(String userId,
String linkName,
String displayName,
String targetName)
throws WcmException
Link referring to the business card of the
specified user. If the business card could not be retrieved,
a TextView component showing displayName will
be returned instead.
userId - the identifier of the user in questionlinkName - the internal name of the Link object to be createddisplayName - the name used for displaying the Link objecttargetName - the target used for the Link object
(not used anymore, the link will always create a new window)
Link object pointing to the
user's business card or a TextView object
if business card not available
WcmException - if URL generator could not be retrieved
protected IUriReference getServicePageUri(String uri,
String startPage)
throws com.sapportals.wdf.WdfException
startPage handling the specified resource at uri.
uri - the RID of the resource in questionstartPage - the page to be started
com.sapportals.wdf.WdfException - on errorIURLGeneratorService.getServicePageUri(java.util.List)
public com.sapportals.wdf.ParameterConfiguration getParameterConfiguration()
throws com.sapportals.wdf.WdfException
com.sapportals.wdf.WdfException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[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 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||