public interface IUIComponent
Modifier and Type | Interface and Description |
---|---|
static class |
IUIComponent.ComponentType
Maintains the component types.
|
static class |
IUIComponent.ForceReloadType |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
RELOAD_INSTANCEID
Constant to identify the reload template id.
|
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
void |
abortComponent()
Aborts the rendering
|
void |
addAdditionalBundles(java.lang.String aOnlyOnceName,
java.lang.String... bundles) |
void |
addAdditionalFragment(java.lang.String aOnlyOnceName,
java.lang.String htmlFragment) |
void |
addAdditionalScripts(java.lang.String aOnlyOnceName,
java.lang.String... scripts) |
void |
addDependentBundles(java.lang.String... bundles) |
void |
addDependentScripts(java.lang.String... scripts) |
void |
addDynamicProperties(java.util.Map<java.lang.String,java.lang.String> dynamicProperties)
Adds given dynamic properties map to existing dynamic properties map
|
void |
addDynamicProperty(java.lang.String name,
java.lang.String value)
Adds a dynamic property to the existing map of dynamic properties
|
void |
addPreLoadScript(java.lang.String aHtmlFragment,
java.lang.String aOnlyOnceName)
API to add component specific scripts
|
boolean |
addPropertyToMetadata(java.lang.String name,
java.lang.String value)
Used to add properties after invoking beginComponent.
|
java.lang.String |
beginComponent(java.lang.String name) |
java.lang.String |
beginComponent(java.lang.String name,
ClipboardPage metaPage,
java.util.Map configMap)
Starts the component rendering
|
java.lang.String |
beginComponent(java.lang.String name,
ClipboardPage metaPage,
java.lang.String componentUniqueId,
java.util.Map configMap)
Starts the component rendering
|
void |
beginComponent(java.lang.String name,
IUIComponentMetadata metadata)
Starts the component rendering
|
void |
beginComponent(java.lang.String name,
IUIComponentMetadata metadata,
java.util.Map configMap) |
void |
disablePlaceholder() |
void |
endComponent()
Ends the rendering.
|
void |
endComponent(java.util.Map configMap) |
void |
forceReload()
set default force reload type to full reload
|
void |
forceReload(StringMap criteria)
Reloads the current component if criteria does not match
|
void |
forceReloadChildren(StringMap criteria)
Reloads the children components if criteria does not match
|
java.lang.String |
getChildRefPath()
Returns the childRefPath
|
java.lang.String |
getComponentUniqueId()
Gets the component unique id.
|
java.util.Map |
getConfigMap()
Gets the component config map.
|
java.lang.String |
getContextPageRef()
Returns the context page reference of current component.
|
StringMap |
getDefaultPropertyValueMap()
Returns the Map of key value pair to avoid the defaults to be register with
change tracker.
|
java.util.Map<java.lang.String,java.lang.String> |
getDynamicProperties() |
StringMap |
getForceReloadCriteria() |
IUIComponent.ForceReloadType |
getForceReloadType()
returns the status of force reload
|
java.lang.String |
getLocation() |
IUIComponentMetadata |
getMetadata()
returns the metadata associated to this component.
|
ClipboardPage |
getMetaPage()
Gets the Component meta page.
|
java.lang.String |
getName()
Gets the component name.
|
java.lang.String |
getSectionContextHash()
Returns the unique hash bound to the section context.
|
java.lang.String[] |
getTrackedProperties()
Returns the all properties marked for registering with change tracker.
|
java.lang.String |
getUniqueHash()
Returns the unique hash bound to the component.
|
boolean |
isActionable()
Determines whether component can be refreshable or
reloaded independently.
|
boolean |
isAtomic()
Check whether the component is atom or not.
|
boolean |
isCircularReference() |
boolean |
isCurrentRootsRequire()
Determines whether component should hold the current roots.
|
boolean |
isPlaceholderEnabled() |
boolean |
isRootMarkerRequire()
Decides whether to create a root marker of templates.
|
boolean |
isTemplate()
Determines whether component is template or not.
|
boolean |
isUIComponentRendered() |
void |
markAsAtomic()
Makes the component atom unit so that component can be pushed
to stream store.
|
void |
markAsCircularReference() |
void |
resetMetadata(IUIComponentMetadata metadata) |
void |
setChildPathReference(java.lang.String childPathRef)
holds the value to insert the next child apart from pyTemplates
e.q, pySection.pySectionBody(1).
|
void |
setDefaultPropertyValueMap(StringMap nonTrackedProperties)
While registering with change tracker default properties will be ignored
if value matches to the tracked properties.
|
void |
setSectionContextHash(java.lang.String uniqueHash) |
void |
setTrackedProperties(java.lang.String[] trackedProperties)
Pass the list of component specific absolute property references to be registered with the change tracker
e.g.
|
void |
setUIComponentRuntime(com.pega.pegarules.priv.runtime.IUIComponentRuntime uiComponentRuntime) |
void |
setUniqueHash(java.lang.String uniqueHash) |
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
static final java.lang.String RELOAD_INSTANCEID
void beginComponent(java.lang.String name, IUIComponentMetadata metadata)
name
- Component namemetadata
- IUIComponentMetadata of the componentjava.lang.String beginComponent(java.lang.String name, ClipboardPage metaPage, java.util.Map configMap)
name
- Component namemetaPage
- Clipboard Page of the componentconfigMap
- instanceid: Unique instance id
class: html class on the root marker (optional)java.lang.String beginComponent(java.lang.String name, ClipboardPage metaPage, java.lang.String componentUniqueId, java.util.Map configMap)
name
- Component namemetaPage
- Clipboard Page of the componentcomponentUniqueId
- component unique idconfigMap
- instanceid: Unique instance id
class: html class on the root marker (optional)void endComponent()
void abortComponent()
java.lang.String getLocation()
void setTrackedProperties(java.lang.String[] trackedProperties)
trackedProperties
- void setChildPathReference(java.lang.String childPathRef)
childPathRef
- boolean isTemplate()
boolean isCurrentRootsRequire()
boolean isActionable()
java.lang.String getName()
ClipboardPage getMetaPage()
java.lang.String getComponentUniqueId()
java.util.Map getConfigMap()
boolean isRootMarkerRequire()
java.lang.String getChildRefPath()
java.lang.String[] getTrackedProperties()
void addPreLoadScript(java.lang.String aHtmlFragment, java.lang.String aOnlyOnceName)
aHtmlFragment
- - html fragment name which has aOnlyOnceName
- - pega only once name, pass this if html fragment needs to be included only once. If passed null then html fragment is included alwaysvoid addDependentScripts(java.lang.String... scripts)
void addDependentBundles(java.lang.String... bundles)
void addAdditionalScripts(java.lang.String aOnlyOnceName, java.lang.String... scripts)
void addAdditionalBundles(java.lang.String aOnlyOnceName, java.lang.String... bundles)
void addAdditionalFragment(java.lang.String aOnlyOnceName, java.lang.String htmlFragment)
StringMap getDefaultPropertyValueMap()
boolean isUIComponentRendered()
void setDefaultPropertyValueMap(StringMap nonTrackedProperties)
nonTrackedProperties
- StringMap of key value pair.void addDynamicProperty(java.lang.String name, java.lang.String value)
name
- value
- void addDynamicProperties(java.util.Map<java.lang.String,java.lang.String> dynamicProperties)
dynamicProperties
- mapjava.util.Map<java.lang.String,java.lang.String> getDynamicProperties()
void forceReload()
void forceReload(StringMap criteria)
criteria
- void forceReloadChildren(StringMap criteria)
criteria
- IUIComponent.ForceReloadType getForceReloadType()
StringMap getForceReloadCriteria()
void setUIComponentRuntime(com.pega.pegarules.priv.runtime.IUIComponentRuntime uiComponentRuntime)
uiComponentRuntime
- boolean addPropertyToMetadata(java.lang.String name, java.lang.String value)
name
- - name of the propertyvalue
- - value of the propertyIUIComponentMetadata getMetadata()
void markAsAtomic()
boolean isAtomic()
java.lang.String getUniqueHash()
void setUniqueHash(java.lang.String uniqueHash)
uniqueHash
- set the unique hash for this component.java.lang.String getSectionContextHash()
void setSectionContextHash(java.lang.String uniqueHash)
uniqueHash
- set the unique hash for this section context.java.lang.String getContextPageRef()
java.lang.String beginComponent(java.lang.String name)
void endComponent(java.util.Map configMap)
void beginComponent(java.lang.String name, IUIComponentMetadata metadata, java.util.Map configMap)
void resetMetadata(IUIComponentMetadata metadata)
void markAsCircularReference()
boolean isCircularReference()
void disablePlaceholder()
boolean isPlaceholderEnabled()
Copyright © 2018 Pegasystems Inc. All Rights Reserved.