public class ResourceCustomPropertyControl2 extends WcmResourceControl implements com.sapportals.wdf.event.WdfEventReceiver
WcmResourceControl.ResourceNotFoundExceptionSTART_PAGE_BROWSE, START_PAGE_DETAILS, uriBLANK_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 |
|---|
ResourceCustomPropertyControl2() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canModify(IProperty property) |
boolean |
canSave()
Workaround for composite control usage.
|
String |
getHidden() |
boolean |
getHideTitle() |
Macro |
getMacroCommand() |
String |
getMaintainable() |
String |
getNewPropertyName() |
String |
getNewPropertyValue() |
boolean |
getNewResourceFlag() |
String |
getProperties() |
boolean |
getShowSaveButton()
Get the ShowSaveButton attribute of the ResourceCustomPropertyControl2
object.
|
boolean |
getUiDetailsHeader() |
boolean |
getUpdateWithoutLocking() |
String |
getUrlProperties() |
protected void |
initialize()
Initialize control.
|
com.sapportals.wdf.event.WdfEvent |
onAddNewProperty(com.sapportals.htmlb.event.Event event)
Adds an empty property.
|
com.sapportals.wdf.event.WdfEvent |
onDeleteSelectedProperties(com.sapportals.htmlb.event.Event event)
Deletes selected properties from list.
|
com.sapportals.wdf.event.WdfEvent |
onSaveAllChanges(com.sapportals.htmlb.event.Event event)
Save all changes to resource.
|
protected void |
readInputData()
Reads data from dynPage.
|
void |
receive(com.sapportals.wdf.event.WdfEvent wdfEvent)
Reacts on CflResourceEvents and resets the present resource of the
control.
|
com.sapportals.htmlb.Component |
render()
Renders control.
|
com.sapportals.htmlb.Component |
renderPersistentProperties()
Renders local properties map as hidden InputField.
|
void |
restorePersistentProperties(com.sapportals.htmlb.page.DynPage page)
Restores local properties map as hidden InputField.
|
LinkedList |
retrieveAllCustomProperties()
Retrieve all custom properties which were created for the resource Used
when the control is used for creating a new resource
|
void |
setEmptyCustomProperties()
Set to empty the list of custom properties Used when the control is used
for creating a new resource
|
void |
setHidden(String properties) |
void |
setHideTitle(boolean hideTitle) |
void |
setMaintainable(String properties) |
void |
setNewPropertyName(String newPropertyName) |
void |
setNewPropertyValue(String newPropertyValue) |
void |
setNewResourceFlag(boolean flag) |
void |
setProperties(String properties) |
void |
setShowSaveButton(boolean showSaveButton)
Set the ShowSaveButton attribute of the ResourceCustomPropertyControl2
object.
|
void |
setUiDetailsHeader(boolean uiDetails) |
void |
setUpdateWithoutLocking(boolean properties) |
void |
setUrlProperties(String properties) |
checkArchivingStauts, getAOStates, getDetailsPageUri, getResource, getResourceLink, getResourceList, getSafeResource, getUri, setResource, setUrigetBaseBundleString, getBaseBundleString, getBaseBundleString, getBaseBundleString, getBundleString, getBundleString, getBundleString, getBundleString, getBusinessCardLink, getImage, getParameterConfiguration, getResourceContext, getServicePageUri, handleException, isSection508Rendering, isTestMode, isVisible, setControlContext, setResourceContext, setTestMode, setVisiblecreate, create, createNestedControls, createUnequivocallyComponentId, dispatchHtmlbEvent, dispatchWdfEvent, getControlContext, getDynPage, getID, getParent, getPersistenceComponentManager, getRootControl, getStackId, initializeImpl, isInitialized, register, resetNestedControls, restoreProperties, setID, setInitialized, setParent, setStackId, triggerInputpublic void setShowSaveButton(boolean showSaveButton)
showSaveButton - The new ShowSaveButton valuepublic boolean getShowSaveButton()
public void setUiDetailsHeader(boolean uiDetails)
public boolean getUiDetailsHeader()
public void setNewResourceFlag(boolean flag)
public boolean getNewResourceFlag()
public void setHideTitle(boolean hideTitle)
public boolean getHideTitle()
public void setUrlProperties(String properties)
public String getUrlProperties()
public void setProperties(String properties)
public String getProperties()
public void setMaintainable(String properties)
public String getMaintainable()
public void setHidden(String properties)
public String getHidden()
public void setUpdateWithoutLocking(boolean properties)
public boolean getUpdateWithoutLocking()
public com.sapportals.wdf.event.WdfEvent onAddNewProperty(com.sapportals.htmlb.event.Event event)
throws WcmResourceControl.ResourceNotFoundException,
WcmException
event - A htmlb event.ResourceNotFoundException - Exception raised in failure situationWcmException - Exception raised in failure situationWcmResourceControl.ResourceNotFoundExceptionpublic void receive(com.sapportals.wdf.event.WdfEvent wdfEvent)
throws com.sapportals.wdf.WdfException
WcmResourceControlreceive in interface com.sapportals.wdf.event.WdfEventReceiverreceive in class WcmResourceControlwdfEvent - the eventcom.sapportals.wdf.WdfException - if an error occurspublic void restorePersistentProperties(com.sapportals.htmlb.page.DynPage page)
throws com.sapportals.wdf.WdfException
restorePersistentProperties in class com.sapportals.wdf.stack.Controlpage - The DynPage to read out componentscom.sapportals.wdf.WdfException - WdfExceptionpublic com.sapportals.htmlb.Component renderPersistentProperties()
throws com.sapportals.wdf.WdfException
renderPersistentProperties in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException - WdfExceptionpublic boolean canSave()
throws com.sapportals.wdf.WdfException
com.sapportals.wdf.WdfException - Exception raised in failure situationprotected void initialize()
throws com.sapportals.wdf.WdfException
initialize in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException - WdfExceptionpublic com.sapportals.htmlb.Component render()
throws com.sapportals.wdf.WdfException
render in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException - WdfException An error happens.public String getNewPropertyName()
public void setNewPropertyName(String newPropertyName)
public String getNewPropertyValue()
public void setNewPropertyValue(String newPropertyValue)
protected void readInputData()
throws com.sapportals.wdf.WdfException
readInputData in class WcmBaseControlcom.sapportals.wdf.WdfException - WdfExceptionpublic com.sapportals.wdf.event.WdfEvent onDeleteSelectedProperties(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - HTMLB eventcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onSaveAllChanges(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - A htmlb event.com.sapportals.wdf.WdfException - An error happens.public Macro getMacroCommand() throws com.sapportals.wdf.WdfException
com.sapportals.wdf.WdfExceptionprotected boolean canModify(IProperty property) throws WcmException
WcmExceptionpublic LinkedList retrieveAllCustomProperties()
public void setEmptyCustomProperties()
| 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 2021 SAP SE Complete Copyright Notice