public class DemoPropertiesControl extends WcmResourceControl implements com.sapportals.wdf.event.WdfEventReceiver
Created November 1, 2002
WcmResourceControl.ResourceNotFoundException
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 |
---|
DemoPropertiesControl()
Constructor
|
DemoPropertiesControl(String controlID)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
createNestedControls()
Register PropertiesControl as pluggin
|
static String |
getContentProperties(List pp,
String title)
Just create a content using properties.
|
boolean |
getNewResourceFlag()
Gets the newResourceFlag attribute of the ResourceUploadControl object
|
String |
getNr2Value() |
String |
getResourceType()
Gets the resourceTypes attribute of the ResourcePropertiesControl object
|
String |
getStartUri()
Retrieve the startURI
|
com.sapportals.wdf.event.WdfEvent |
onCancel(com.sapportals.htmlb.event.Event event)
When "Cancel" button is selected, then this method is called
|
com.sapportals.wdf.event.WdfEvent |
onCount10(com.sapportals.htmlb.event.Event event)
Create a new resource
|
com.sapportals.wdf.event.WdfEvent |
onCount20(com.sapportals.htmlb.event.Event event)
When "Count Sum = N2+10" button is selected, then this method is called
|
com.sapportals.wdf.event.WdfEvent |
onSum10(com.sapportals.htmlb.event.Event event)
Save properties for the current resource
|
com.sapportals.wdf.event.WdfEvent |
onSum20(com.sapportals.htmlb.event.Event event)
When "Sum= Nr1 + Nr2 + 20" button is selected, then this method is called
|
protected void |
readInputData()
read the value fron Nr2 field
|
void |
receive(com.sapportals.wdf.event.WdfEvent cflEvent)
Reacts on CflResourceEvents and resets the present resource of the
control.
|
com.sapportals.htmlb.Component |
render()
Build the UI for this control
|
void |
setNewResourceFlag(boolean flag)
Sets the newResourceFlag attribute of the ResourceUploadControl object
|
void |
setNr2Value(String flag) |
void |
setResourceType(String newResourceTypes)
Sets the resourceTypes attribute of the ResourcePropertiesControl object
|
void |
setStartUri(String startUri)
Set the startURI with a new value
|
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, createUnequivocallyComponentId, dispatchHtmlbEvent, dispatchWdfEvent, getControlContext, getDynPage, getID, getParent, getPersistenceComponentManager, getRootControl, getStackId, initialize, initializeImpl, isInitialized, register, renderPersistentProperties, resetNestedControls, restorePersistentProperties, restoreProperties, setID, setInitialized, setParent, setStackId, triggerInput
public DemoPropertiesControl()
public DemoPropertiesControl(String controlID)
controlID
- controlIDpublic void setNr2Value(String flag)
public String getNr2Value()
public void setResourceType(String newResourceTypes)
newResourceTypes
- The new resourceTypes valuepublic String getResourceType()
public String getStartUri()
public void setStartUri(String startUri)
startUri
- - new vakue of the startUripublic void setNewResourceFlag(boolean flag)
flag
- The new newResourceFlag valuepublic boolean getNewResourceFlag()
protected void createNestedControls() throws com.sapportals.wdf.WdfException
createNestedControls
in class com.sapportals.wdf.stack.Control
com.sapportals.wdf.WdfException
- Exception raised in failure situationpublic com.sapportals.htmlb.Component render() throws com.sapportals.wdf.WdfException
render
in class com.sapportals.wdf.stack.Control
com.sapportals.wdf.WdfException
- Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onSum10(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onSum20(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- Exception raised in failure situation
Save properties for the current resourcepublic com.sapportals.wdf.event.WdfEvent onCount10(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onCount20(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onCancel(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- Exception raised in failure situationpublic 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
- eventcom.sapportals.wdf.WdfException
- Exception raised in failure situationprotected void readInputData() throws com.sapportals.wdf.WdfException
readInputData
in class WcmBaseControl
com.sapportals.wdf.WdfException
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