%ZEN.Mojo.Component.contentProvider
class %ZEN.Mojo.Component.contentProvider extends %ZEN.Component.composite
This class is used internally by InterSystems. You should not make direct use of it within your applications. There is no guarantee made about either the behavior or future operation of this class.
A content provider supplies a given base page with the information needed to
display dynamic content including data and layout documents and client-side behaviors.
Basically this is a composite group containing multiple JSON providers and logic for
client-side caching of the data served by the providers.
The list of provider to create is defined by the providerList.
There is always a pre-defined JSON provider, named "$code" to handle coded values.
In addition to the JSON providers, this component creates an instance of a
%ZEN.Mojo.Component.contentTemplate class. This provides a way to
inject dynamic behavior (i.e. methods) into a page without having to reload the entire page.
Property Inventory
- OnGetCodeTable
- OnGetTemplateList
- currTemplate
- layout
- providerList
- templateClass
- templateClassArray
- templateObjectArray
Method Inventory
- %OnAfterCreateComposite()
- %OnGetProviderList()
- GetJSONCodeTable()
- GetJSONContent()
- GetTemplateList()
- SubmitJSONContent()
- fetchCodeTable()
- getContent()
- getTemplate()
- getTemplateClass()
- getTemplateInfo()
- invalidate()
- loadTemplateNS()
- submitData()
Parameters
Classes outside of the Zen library should not set this, they should use the MODULE instead.
Properties
Methods
Returns:
pList(n) = $LB(name,[class])
which is the name of json provider. key is a key value
force is an optional argument, which if true, forces a server reload of data that comes from a json provider. Otherwise such data is held in a local cache.
Data is obtained as follows:
First, a call is made to the associated template object's getContent() method (if present). This call is passed the which and key arguments. If this call returns a non-null value, then this value is returned. If not, then the local cache is checked (unless force is true). If there is an object in the local cache under the same templateClass, which, and key values, then this value is returned.
Otherwise a request is made via the jsonProvider specified by which. If force is true, the jsonProvider is told to reload its contents from the server. The content object object returned from the json provider is then added to the local cache and this value is returned.
If notify is supplied, then the server update will be performed async (if supported) and notify if a function to call when the update is complete.
If key is supplied, use this to keep a cached version of this template object.
key is a app-defined key value.
data is an object to submit.
notify is a javascript function. If supplied, the data is submitted asynchronously and this function is called when the operation is complete.
Inherited Members
Inherited Properties
- %condition
- %import
- %includeFiles
- %page
- %resource
- align
- aux
- cellAlign
- cellSize
- cellStyle
- cellVAlign
- children
- childrenCreated
- composite
- containerStyle
- disabled
- dragEnabled
- dropEnabled
- enclosingClass
- enclosingStyle
- error
- groupClass
- groupStyle
- height
- hidden
- hint
- hintClass
- hintStyle
- id
- index
- label
- labelClass
- labelDisabledClass
- labelPosition
- labelStyle
- name
- onafterdrag
- onbeforedrag
- onclick
- ondrag
- ondrop
- onhide
- onrefresh
- onshow
- onupdate
- parent
- showLabel
- slice
- title
- tuple
- valign
- visible
- width
- window
Inherited Methods
- %AddChild()
- %AddChildAfter()
- %AddChildBefore()
- %AddToSaveSet()
- %Attr()
- %BindExport()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %CreateComposite()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawComponentHTML()
- %DrawHTML()
- %DrawJSStrings()
- %EnclosingDivId()
- %Eval()
- %EvalC()
- %Extends()
- %ForceClientRender()
- %GetChildById()
- %GetChildIndex()
- %GetEventHandlers()
- %GetPaneContents()
- %GetParameter()
- %GetXMLName()
- %IsA()
- %IsModified()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnDrawEnclosingDiv()
- %OnDrawObjectProperties()
- %OnMutateChildren()
- %OnObjectSynch()
- %OnSubmit()
- %OnZENDeserialize()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueL10N()
- %RemoveChild()
- %RemoveChildren()
- %RemoveFromSaveSet()
- %Self()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- addChild()
- addChildAfter()
- addChildBefore()
- childrenMutated()
- dragFinishHandler()
- dragHandler()
- dragNotifyHandler()
- dragStartHandler()
- dropHandler()
- dropStartHandler()
- exposeComponent()
- findElement()
- fireOnUpdateEvent()
- getChildById()
- getChildIndex()
- getEnclosingDiv()
- getHidden()
- getHintElement()
- getLabelElement()
- getProperty()
- getSettings()
- getType()
- invokeSuper()
- isOfType()
- makeId()
- onCreate()
- onDelete()
- onDisplayHandler()
- onEndModalHandler()
- onPopupAction()
- onRefreshContents()
- onSerialize()
- onStartModalHandler()
- ondisabledHandler()
- onloadHandler()
- onunloadHandler()
- onupdateHandler()
- refreshContents()
- removeChild()
- render()
- renderContents()
- renderSVG()
- setHidden()
- setOverlayMode()
- setProperty()
- setPropertyAll()
- startProgressBar()
- stopProgressBar()