public class ResourceLinkControl extends WcmResourceControl implements com.sapportals.wdf.event.WdfEventReceiver
WcmResourceControl.ResourceNotFoundException
Modifier and Type | Field and Description |
---|---|
static int |
OPERATION_MODE_ADD |
static int |
OPERATION_MODE_EDIT |
static int |
OPERATION_MODE_EDIT_BUTTON |
static int |
OPERATION_MODE_NEW |
static int |
OPERATION_MODE_NEW_BUTTON |
START_PAGE_BROWSE, START_PAGE_DETAILS, uri
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
Constructor and Description |
---|
ResourceLinkControl() |
ResourceLinkControl(String controlID) |
Modifier and Type | Method and Description |
---|---|
com.sapportals.wcm.control.event.CflStatusInfoEvent |
checkLinkTarget()
Returns a StatusInfoEvent with an error message in case of the target is
not valid.
|
LinkType |
getExternalLinkType() |
int |
getLinkType() |
int |
getOperationMode() |
boolean |
getShowInsert() |
String |
getStartUri() |
String |
getTargetName() |
String |
getTargetUri() |
boolean |
isInitTargetParameter() |
boolean |
isStandalone() |
com.sapportals.wdf.event.WdfEvent |
onBrowse(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onBrowseTargetUri(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onCancel(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onInsertLink(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onLinkTypeClick(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onSaveLink(com.sapportals.htmlb.event.Event event) |
protected void |
readInputData() |
void |
receive(com.sapportals.wdf.event.WdfEvent cflEvent)
Reacts on CflResourceEvents and resets the present resource of the
control.
|
com.sapportals.htmlb.Component |
render() |
com.sapportals.htmlb.Label |
renderLabel(com.sapportals.htmlb.Component comp,
String text,
boolean required) |
void |
setInitTargetParameter(boolean initialize) |
void |
setLinkType(int linkType) |
void |
setOperationMode(int opMode) |
void |
setShowInsert(boolean mode) |
void |
setStandalone(boolean isStandalone) |
void |
setStartUri(String startUri) |
void |
setTargetName(String targetName) |
void |
setTargetUri(String targetUri) |
checkArchivingStauts, getAOStates, getDetailsPageUri, getResource, getResourceLink, getResourceList, getSafeResource, getUri, setResource, setUri
getBaseBundleString, getBaseBundleString, getBaseBundleString, getBaseBundleString, getBundleString, getBundleString, getBundleString, getBundleString, getBusinessCardLink, getImage, getParameterConfiguration, getResourceContext, getServicePageUri, handleException, isSection508Rendering, isTestMode, isVisible, setControlContext, setResourceContext, setTestMode, setVisible
create, create, createNestedControls, createUnequivocallyComponentId, dispatchHtmlbEvent, dispatchWdfEvent, getControlContext, getDynPage, getID, getParent, getPersistenceComponentManager, getRootControl, getStackId, initialize, initializeImpl, isInitialized, register, renderPersistentProperties, resetNestedControls, restorePersistentProperties, restoreProperties, setID, setInitialized, setParent, setStackId, triggerInput
public static final int OPERATION_MODE_ADD
public static final int OPERATION_MODE_EDIT
public static final int OPERATION_MODE_NEW
public static final int OPERATION_MODE_EDIT_BUTTON
public static final int OPERATION_MODE_NEW_BUTTON
public ResourceLinkControl()
public ResourceLinkControl(String controlID)
public void setShowInsert(boolean mode)
public boolean getShowInsert()
public void setOperationMode(int opMode)
public int getOperationMode()
public void setTargetUri(String targetUri)
public String getTargetUri()
public void setTargetName(String targetName)
public String getTargetName()
public void setLinkType(int linkType)
public int getLinkType()
public void setStandalone(boolean isStandalone)
public boolean isStandalone()
public void setInitTargetParameter(boolean initialize)
public boolean isInitTargetParameter()
public LinkType getExternalLinkType()
public String getStartUri()
public void setStartUri(String startUri)
public com.sapportals.htmlb.Component render() throws com.sapportals.wdf.WdfException
render
in class com.sapportals.wdf.stack.Control
com.sapportals.wdf.WdfException
public com.sapportals.wdf.event.WdfEvent onCancel(com.sapportals.htmlb.event.Event event)
public com.sapportals.wdf.event.WdfEvent onLinkTypeClick(com.sapportals.htmlb.event.Event event) throws WcmException
WcmException
public com.sapportals.wdf.event.WdfEvent onBrowse(com.sapportals.htmlb.event.Event event) throws WcmException
WcmException
public com.sapportals.wdf.event.WdfEvent onBrowseTargetUri(com.sapportals.htmlb.event.Event event) throws WcmException
WcmException
public com.sapportals.wcm.control.event.CflStatusInfoEvent checkLinkTarget() throws WcmException
WcmException
- WcmExceptionpublic com.sapportals.wdf.event.WdfEvent onSaveLink(com.sapportals.htmlb.event.Event event) throws WcmException
WcmException
public com.sapportals.wdf.event.WdfEvent onInsertLink(com.sapportals.htmlb.event.Event event) throws WcmException
WcmException
public void receive(com.sapportals.wdf.event.WdfEvent cflEvent) throws com.sapportals.wdf.WdfException
WcmResourceControl
receive
in interface com.sapportals.wdf.event.WdfEventReceiver
receive
in class WcmResourceControl
cflEvent
- the eventcom.sapportals.wdf.WdfException
- if an error occursprotected void readInputData() throws com.sapportals.wdf.WdfException
readInputData
in class WcmBaseControl
com.sapportals.wdf.WdfException
public com.sapportals.htmlb.Label renderLabel(com.sapportals.htmlb.Component comp, String text, boolean required) throws WcmException
WcmException
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
|
Copyright 2018 SAP AG Complete Copyright Notice