|
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.wdf.stack.Control
com.sapportals.wcm.control.base.WcmBaseControl
com.sapportals.wcm.control.base.WcmResourceControl
com.sapportals.wcm.control.edit.ResourcePropertiesControl
public class ResourcePropertiesControl
Composite control which is responsible to render Copyright (c) SAP Portals Europe GmbH 2001
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sapportals.wcm.control.base.WcmResourceControl |
|---|
WcmResourceControl.ResourceNotFoundException |
| Field Summary | |
|---|---|
protected static String |
EVENT_ON_TOGGLE_TABSTRIP
|
boolean |
newCollection
|
boolean |
propertiesForUpload
|
String |
resourceMimetype
|
String[] |
resourceTypes
|
| Fields inherited from class com.sapportals.wcm.control.base.WcmResourceControl |
|---|
START_PAGE_BROWSE, START_PAGE_DETAILS, uri |
| Fields inherited from class com.sapportals.wcm.control.base.WcmBaseControl |
|---|
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 |
| Fields inherited from class com.sapportals.wdf.stack.Control |
|---|
id |
| Constructor Summary | |
|---|---|
ResourcePropertiesControl()
|
|
| Method Summary | |
|---|---|
boolean |
canSave()
Workaround for composite control usage. |
com.sapportals.wdf.event.WdfEvent |
checkMandatoryProperties()
Description of the Method |
void |
create(com.sapportals.wdf.stack.ControlContext cc)
Description of the Method |
protected void |
createNestedControls()
Register composite parts |
List |
getAllProperties()
Retrieves all properties created for the resource |
boolean |
getDebug()
Gets the debug attribute of the ResourcePropertyControl object |
com.sapportals.htmlb.Component |
getExternalComponent()
Gets the externalComponent attribute of the ResourcePropertiesControl object |
boolean |
getHideIdFlag()
Gets the hideIdFlag attribute of the ResourcePropertiesControl object |
boolean |
getIdMandatoryFlag()
Gets the idMandatoryFlag attribute of the ResourcePropertiesControl object |
String |
getName()
Gets the name attribute of the ResourcePropertiesControl object |
boolean |
getNameDisableFlag()
Gets the nameDisableFlag attribute of the ResourcePropertiesControl object |
boolean |
getNameInvalidFlag()
Gets the nameInvalidFlag attribute of the ResourcePropertiesControl object |
boolean |
getNewCollection()
Gets the newCollection attribute of the ResourcePropertiesControl object |
boolean |
getNewResourceFlag()
Gets the newResourceFlag attribute of the ResourcePropertiesControl object |
String |
getPersistsPropertiesKey()
Gets the persistsPropertiesKey attribute of the ResourcePropertiesControl object |
boolean |
getPropertiesForUpload()
Gets the propertiesForUpload attribute of the ResourcePropertiesControl object |
IProperty |
getProperty(IPropertyName propertyName)
Retrieve a property from the property list |
IPropertyMap |
getPropertyMap()
Retrieve all properties created for the resource |
String |
getResourceMimetype()
Gets the resourceMimetype attribute of the ResourcePropertiesControl object |
String[] |
getResourceTypes()
Gets the resourceTypes attribute of the ResourcePropertiesControl object |
int |
getSelectedTab()
Gets the selectedTab attribute of the ResourcePropertiesControl object |
boolean |
getSendBackEvent()
Gets the sendBackEvent attribute of the ResourcePropertiesControl object |
boolean |
getShowProperties()
Gets the showProperties attribute of the ResourcePropertiesControl object |
boolean |
getShowPropertiesLink()
Gets the showPropertiesLink attribute of the ResourcePropertiesControl object |
boolean |
getShowSaveButton()
Get the ShowSaveButton attribute of the ResourceCustomPropertyControl2 object. |
boolean |
getUiDetailsHeader()
Gets the uiDetailsHeader attribute of the ResourcePropertiesControl object |
boolean |
getUpdateProperties()
Gets the updateProperties attribute of the ResourcePropertiesControl object |
protected void |
initialize()
Initialize control by making a copy of data from resource. |
protected boolean |
isAccessibleImpl()
|
com.sapportals.wdf.event.WdfEvent |
onAddNewValue(com.sapportals.htmlb.event.Event event)
Adds a new empty component for a multi-valued property |
com.sapportals.wdf.event.WdfEvent |
onCancel(com.sapportals.htmlb.event.Event event)
Description of the Method |
com.sapportals.wdf.event.WdfEvent |
onEditHtml(com.sapportals.htmlb.event.Event event)
Renders the Html editor for a HTML metyproperty type |
com.sapportals.wdf.event.WdfEvent |
onSaveProperties(com.sapportals.htmlb.event.Event event)
Description of the Method |
com.sapportals.wdf.event.WdfEvent |
onSetProperties(com.sapportals.htmlb.event.Event event)
Description of the Method |
void |
onToggleTabStrip(com.sapportals.htmlb.event.Event event)
Changes the group tab |
com.sapportals.wdf.event.WdfEvent |
processCommandException(Command command)
Description of the Method |
protected void |
readInputData()
|
void |
receive(com.sapportals.wdf.event.WdfEvent wdfEvent)
Description of the Method |
com.sapportals.htmlb.Component |
render()
Return the GridLayout that contains all the controls sub controls. |
com.sapportals.htmlb.Component |
renderBaseProperties(boolean isResourceLockedByOther)
Render ID, Name & Description fields |
protected com.sapportals.htmlb.Component |
renderCustomProperties()
Render Custom group |
com.sapportals.htmlb.Component |
renderPersistentProperties()
Renders local properties map as hidden InputField. |
com.sapportals.htmlb.Component |
renderPropertiesTabs()
Renders the group tabs |
void |
restorePersistentProperties(com.sapportals.htmlb.page.DynPage page)
Restores local properties map as hidden InputField. |
com.sapportals.wdf.event.WdfEvent |
saveAllProperties(com.sapportals.htmlb.event.Event event)
Description of the Method |
void |
setDebug(boolean debug)
Sets the debug attribute of the ResourcePropertyControl object |
void |
setEmptyProperties()
Empty the properties list |
void |
setExternalComponent(com.sapportals.htmlb.Component uiDetails)
Sets the externalComponent attribute of the ResourcePropertiesControl object |
void |
setHideIdFlag(boolean flag)
Sets the hideIdFlag attribute of the ResourcePropertiesControl object |
void |
setIdMandatoryFlag(boolean flag)
Sets the idMandatoryFlag attribute of the ResourcePropertiesControl object |
void |
setName(String displayName)
Sets the name attribute of the ResourcePropertiesControl object |
void |
setNameDisableFlag(boolean flag)
Sets the nameDisableFlag attribute of the ResourcePropertiesControl object |
void |
setNameInvalidFlag(boolean flag)
Sets the nameInvalidFlag attribute of the ResourcePropertiesControl object |
void |
setNewCollection(boolean flag)
Sets the newCollection attribute of the ResourcePropertiesControl object |
void |
setNewResourceFlag(boolean flag)
Sets the newResourceFlag attribute of the ResourcePropertiesControl object |
void |
setPersistsPropertiesKey(String persistsPropertiesKeyValue)
Sets the persistsPropertiesKey attribute of the ResourcePropertiesControl object |
void |
setPropertiesForUpload(boolean flag)
Sets the propertiesForUpload attribute of the ResourcePropertiesControl object |
void |
setResourceMimetype(String mimetype)
Sets the resourceMimetype attribute of the ResourcePropertiesControl object |
void |
setResourceTypes(String[] newResourceTypes)
Sets the resourceTypes attribute of the ResourcePropertiesControl object |
void |
setSelectedTab(int flag)
Sets the selectedTab attribute of the ResourcePropertiesControl object |
void |
setSendBackEvent(boolean flag)
Sets the sendBackEvent attribute of the ResourcePropertiesControl object |
void |
setShowProperties(boolean flag)
Sets the showProperties attribute of the ResourcePropertiesControl object |
void |
setShowPropertiesLink(boolean flag)
Sets the showPropertiesLink attribute of the ResourcePropertiesControl object |
void |
setShowSaveButton(boolean showSaveButton)
Set the ShowSaveButton attribute of the ResourceCustomPropertyControl2 object. |
void |
setUiDetailsHeader(boolean uiDetails)
Sets the uiDetailsHeader attribute of the ResourcePropertiesControl object |
void |
setUpdateProperties(boolean flag)
Sets the updateProperties attribute of the ResourcePropertiesControl object |
void |
setUri(String uri)
Sets the uri attribute of the ResourcePropertiesControl object |
| Methods inherited from class com.sapportals.wcm.control.base.WcmResourceControl |
|---|
checkArchivingStauts, getAOStates, getDetailsPageUri, getResource, getResourceLink, getResourceList, getSafeResource, getUri, setResource |
| Methods inherited from class com.sapportals.wcm.control.base.WcmBaseControl |
|---|
getBaseBundleString, getBaseBundleString, getBaseBundleString, getBaseBundleString, getBundleString, getBundleString, getBundleString, getBundleString, getBusinessCardLink, getImage, getParameterConfiguration, getResourceContext, getServicePageUri, handleException, isSection508Rendering, isTestMode, isVisible, setControlContext, setResourceContext, setTestMode, setVisible |
| Methods inherited from class com.sapportals.wdf.stack.Control |
|---|
create, createUnequivocallyComponentId, dispatchHtmlbEvent, dispatchWdfEvent, getControlContext, getDynPage, getID, getParent, getPersistenceComponentManager, getRootControl, getStackId, initializeImpl, isInitialized, register, resetNestedControls, 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 static final String EVENT_ON_TOGGLE_TABSTRIP
public boolean newCollection
public String resourceMimetype
public String[] resourceTypes
public boolean propertiesForUpload
| Constructor Detail |
|---|
public ResourcePropertiesControl()
| Method Detail |
|---|
public void setUri(String uri)
setUri in class WcmResourceControluri - The new uri valuepublic void setDebug(boolean debug)
debug - The new debug valuepublic boolean getDebug()
public void setShowProperties(boolean flag)
flag - The new showProperties valuepublic boolean getShowProperties()
public void setShowPropertiesLink(boolean flag)
flag - The new showPropertiesLink valuepublic boolean getShowPropertiesLink()
public void setPersistsPropertiesKey(String persistsPropertiesKeyValue)
persistsPropertiesKeyValue - The new persistsPropertiesKey valuepublic String getPersistsPropertiesKey()
public void setSendBackEvent(boolean flag)
flag - The new sendBackEvent valuepublic boolean getSendBackEvent()
public void setUpdateProperties(boolean flag)
flag - The new updateProperties valuepublic boolean getUpdateProperties()
public void setNameInvalidFlag(boolean flag)
flag - The new nameInvalidFlag valuepublic boolean getNameInvalidFlag()
public void setIdMandatoryFlag(boolean flag)
flag - The new idMandatoryFlag valuepublic boolean getIdMandatoryFlag()
public void setHideIdFlag(boolean flag)
flag - The new hideIdFlag valuepublic boolean getHideIdFlag()
public void setNameDisableFlag(boolean flag)
flag - The new nameDisableFlag valuepublic boolean getNameDisableFlag()
public void setShowSaveButton(boolean showSaveButton)
showSaveButton - The new ShowSaveButton valuepublic boolean getShowSaveButton()
public void setNewResourceFlag(boolean flag)
flag - The new newResourceFlag valuepublic boolean getNewResourceFlag()
public void setNewCollection(boolean flag)
flag - The new newCollection valuepublic boolean getNewCollection()
public void setResourceMimetype(String mimetype)
mimetype - The new resourceMimetype valuepublic String getResourceMimetype()
public void setResourceTypes(String[] newResourceTypes)
newResourceTypes - The new resourceTypes valuepublic String[] getResourceTypes()
public void setPropertiesForUpload(boolean flag)
flag - The new propertiesForUpload valuepublic boolean getPropertiesForUpload()
public void setSelectedTab(int flag)
flag - The new selectedTab valuepublic int getSelectedTab()
public void setUiDetailsHeader(boolean uiDetails)
uiDetails - The new uiDetailsHeader valuepublic boolean getUiDetailsHeader()
public void setExternalComponent(com.sapportals.htmlb.Component uiDetails)
uiDetails - The new externalComponent valuepublic com.sapportals.htmlb.Component getExternalComponent()
public void setName(String displayName)
displayName - The new name valuepublic String getName()
public boolean canSave()
throws WcmException,
com.sapportals.wdf.WdfException
WcmException - Exception raised in failure situation
com.sapportals.wdf.WdfException - Exception raised in failure situation
protected void createNestedControls()
throws com.sapportals.wdf.WdfException
createNestedControls in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException - Exception raised in failure situation
public void create(com.sapportals.wdf.stack.ControlContext cc)
throws com.sapportals.wdf.WdfException
create in class com.sapportals.wdf.stack.Controlcc - Description of the param
com.sapportals.wdf.WdfException - Exception raised in failure situation
public com.sapportals.htmlb.Component render()
throws com.sapportals.wdf.WdfException
render in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException - Exception raised in failure situation
<{WcmException}>
public com.sapportals.htmlb.Component renderBaseProperties(boolean isResourceLockedByOther)
throws WcmException
isResourceLockedByOther - Description of the param
WcmException - Exception raised in failure situation
public void receive(com.sapportals.wdf.event.WdfEvent wdfEvent)
throws com.sapportals.wdf.WdfException
receive in interface com.sapportals.wdf.event.WdfEventReceiverreceive in class WcmResourceControlwdfEvent - Description of the param
com.sapportals.wdf.WdfException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent onSetProperties(com.sapportals.htmlb.event.Event event)
throws WcmException
event - Description of the param
WcmException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent onSaveProperties(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the param
com.sapportals.wdf.WdfException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent saveAllProperties(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the param
com.sapportals.wdf.WdfException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent onCancel(com.sapportals.htmlb.event.Event event)
throws ResourceException
event - Description of the param
ResourceException - Exception raised in failure situation
public void onToggleTabStrip(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the param
com.sapportals.wdf.WdfException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent onAddNewValue(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the param
com.sapportals.wdf.WdfException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent onEditHtml(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the param
com.sapportals.wdf.WdfException - Exception raised in failure situation
public com.sapportals.htmlb.Component renderPropertiesTabs()
throws WcmException
WcmException - Exception raised in failure situation
protected com.sapportals.htmlb.Component renderCustomProperties()
throws WcmException
WcmException - Exception raised in failure situation
protected void readInputData()
throws com.sapportals.wdf.WdfException
readInputData in class WcmBaseControlcom.sapportals.wdf.WdfException
protected void initialize()
throws com.sapportals.wdf.WdfException
initialize in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException
public 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 components
com.sapportals.wdf.WdfException
public com.sapportals.htmlb.Component renderPersistentProperties()
throws com.sapportals.wdf.WdfException
renderPersistentProperties in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException
protected boolean isAccessibleImpl()
throws WcmException
WcmExceptionpublic List getAllProperties()
public IProperty getProperty(IPropertyName propertyName)
propertyName - Description of the Parameter
public void setEmptyProperties()
public com.sapportals.wdf.event.WdfEvent checkMandatoryProperties()
public IPropertyMap getPropertyMap()
public com.sapportals.wdf.event.WdfEvent processCommandException(Command command)
command - Description of the param
| 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 | |||||||||