ZMbasics.Tutorial1.HomePage
class ZMbasics.Tutorial1.HomePage extends %ZEN.Mojo.basePage
Sample Zen Mojo tutorial page, with one <mojo:documentView>, which is a general container.To specify the appearance of the <mojo:documentView>, this sample uses the ongetlayout callback attribute. This returns a JSON string that describes the contents of the component, in terms of a set of layout objects defined by the plugins used in this &;lt;documentView. This callback is defined as follows:
ongetlayout="return zenPage.getContent('mainViewLayout',key,criteria);"
The method getContent() is a built-in page method that you can use to retrieve a content object, in this case a layout graph. This method:
- Calls the onGetContent() method of the associated template class. If that method returns content for the given key, ZM uses that content.
- Otherwise, ZM calls the %OnGetJSONContent() method of the same template class (not demonstrated here).
Within <mojo:documentView>, the developerMode="true" option adds a toggle button that you can use to see the JSON data and layout strings available to the component.
This ZM page class uses the template class ZMbasics.Tutorial1.Template.
Next tutorial in the series: ZMbasics.Tutorial2.HomePage.
Method Inventory
Parameters
Methods
Inherited Members
Inherited Properties
- %appSettings
- %condition
- %import
- %includeFiles
- %page
- %resource
- align
- aux
- backgroundTimerInterval
- cellAlign
- cellSize
- cellStyle
- cellVAlign
- children
- composite
- containerStyle
- cssLevel
- currMode
- disabled
- dragAndDrop
- dragEnabled
- dropEnabled
- embedded
- enclosingClass
- enclosingStyle
- error
- groupClass
- groupStyle
- height
- hidden
- hint
- hintClass
- hintStyle
- id
- index
- label
- labelClass
- labelDisabledClass
- labelPosition
- labelStyle
- layout
- linkList
- name
- onafterdrag
- onbeforedrag
- onclick
- ondrag
- ondrop
- onhide
- onrefresh
- onshow
- onupdate
- parent
- remoteBrokerAddress
- remoteNamespace
- showLabel
- slice
- templateDispatchBaseNamespace
- templateDispatchMode
- title
- tuple
- useSVG
- useSoftModals
- valign
- visible
- width
- window
- zenMojoVersion
- zenPersistentPopup
Inherited Methods
- %AddChild()
- %AddChildAfter()
- %AddChildBefore()
- %AddComponent()
- %AddImportedComponents()
- %AddToSaveSet()
- %ApplyURLParms()
- %Attr()
- %BindExport()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawAutoLogout()
- %DrawClassDefinitions()
- %DrawComponentHTML()
- %DrawHTML()
- %DrawHTMLPage()
- %DrawJSStrings()
- %DrawObjectDefinitions()
- %EnclosingDivId()
- %EndBackgroundMethod()
- %EndScript()
- %Eval()
- %EvalC()
- %Extends()
- %ForceClientRender()
- %GetChildIndex()
- %GetComponent()
- %GetComponentById()
- %GetComponentByName()
- %GetEventHandlers()
- %GetLinks()
- %GetMojoJSStrings()
- %GetPageName()
- %GetParameter()
- %GetTemplateClassByName()
- %GetValueById()
- %GetValueByName()
- %GetXMLName()
- %IsA()
- %IsModified()
- %Link()
- %LinkCSS()
- %LinkScript()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnAfterCreatePage()
- %OnBeforeCreatePage()
- %OnCreateApplication()
- %OnCreatePage()
- %OnDetermineCSSLevel()
- %OnDrawEnclosingDiv()
- %OnDrawHTMLBody()
- %OnDrawHTMLHead()
- %OnDrawHTMLMeta()
- %OnDrawObjectProperties()
- %OnFinishBackgroundTask()
- %OnGetSubtemplateList()
- %OnGetSubtemplateMeta()
- %OnGetTemplateList()
- %OnGetTemplateMeta()
- %OnMonitorBackgroundTask()
- %OnMutateChildren()
- %OnObjectSynch()
- %OnPreHTTP()
- %OnSubmit()
- %OnUseSoftModals()
- %OnZENDeserialize()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueL10N()
- %RemoveChild()
- %RemoveChildren()
- %RemoveComponent()
- %RemoveFromSaveSet()
- %RunBackgroundMethod()
- %Self()
- %SerializeObject()
- %SetBackgroundMethodStatus()
- %SetErrorById()
- %SetErrorByName()
- %SetModified()
- %SetValueById()
- %SetValueByName()
- %SetValuesByName()
- %StartScript()
- %ValidateObject()
- %ZENVersion()
- ConvertParameter()
- Decrypt()
- Encrypt()
- EscapeHTML()
- EscapeURL()
- GetSubtemplateList()
- GetTemplateList()
- HyperEventCall()
- HyperEventHead()
- Include()
- InsertHiddenField()
- InsertHiddenFields()
- IsPrivate()
- Link()
- OnHTTPHeader()
- OnPage()
- OnPageError()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPreHTTP()
- OnPreHyperEvent()
- Page()
- QuoteJS()
- RewriteURL()
- SetSessionLanguage()
- ShowError()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- ZMojoDrawBackgroundDiv()
- ZMojoDrawContentBackground()
- ZMojoDrawFooterGroup()
- ZMojoDrawHeaderImage()
- addChild()
- addChildAfter()
- addChildBefore()
- adjustSizes()
- cancelPopup()
- changeAreaHandler()
- childrenMutated()
- correctIELayering()
- createComponent()
- createComponentNS()
- deleteComponent()
- dragFinishHandler()
- dragHandler()
- dragNotifyHandler()
- dragStartHandler()
- dropHandler()
- dropStartHandler()
- endModal()
- exposeComponent()
- findElement()
- fireOnResizeEvent()
- fireOnUnloadEvent()
- fireOnUpdateEvent()
- firePopupAction()
- getChildIndex()
- getComponent()
- getComponentById()
- getContent()
- getContentHeight()
- getContentProvider()
- getContentWidth()
- getCurrArea()
- getEnclosingDiv()
- getFooterHeight()
- getHeaderHeight()
- getHidden()
- getHintElement()
- getLabelElement()
- getMaxContentWidth()
- getOpener()
- getOrientation()
- getProperty()
- getSettings()
- getSubtemplate()
- getSubtemplateInfo()
- getSubtemplateProvider()
- getTemplate()
- getTemplateForArea()
- getType()
- gotoArea()
- gotoAreaKB()
- gotoPage()
- invalidate()
- invokeSuper()
- isEmbedded()
- isMobile()
- isOfType()
- launchPopupWindow()
- loadSubtemplate()
- loadSubtemplateNS()
- loadTemplateNS()
- makeId()
- onCreate()
- onDelete()
- onDisplayHandler()
- onEndModalHandler()
- onPopstateHandler()
- onPopupAction()
- onRefreshContents()
- onSerialize()
- onServerMethodCall()
- onServerMethodError()
- onServerMethodReturn()
- onStartModalHandler()
- ondisabledHandler()
- onkeydownHandler()
- onkeyupHandler()
- onlayoutHandler()
- onloadHandler()
- onlogoutHandler()
- onoverlayHandler()
- onresizeHandler()
- onunloadHandler()
- onupdateHandler()
- popState()
- popstateHandler()
- popupActionHandler()
- pushState()
- refreshContents()
- removeChild()
- render()
- renderContents()
- renderSVG()
- setComponentId()
- setHidden()
- setOverlayMode()
- setProperty()
- setPropertyAll()
- setTraceOption()
- showMessage()
- startModal()
- startProgressBar()
- stopProgressBar()
- submitData()
- updateView()