%ZEN.StudioDocument.AbstractEditor
abstract class %ZEN.StudioDocument.AbstractEditor extends %ZEN.Component.page
Base class for Studio Document editors that use the XEDIT window within Studio.An XEDIT document is a window within Studio with 2 panes: the upper pane contains HTML content, served by a subclass of this class; the lower pane displays an editable XML representation of the data displayed in the upper pane. This XML representation is provided by this class as well.
Subclasses of this are used to provide Studio content editors for Abstract documents served by a corresponding subclass of the %ZEN.StudioDocument.AbstractDocument class.
Property Inventory
Method Inventory
- %OnDrawHTMLHead()
- GetClassName()
- clearModified()
- getZoom()
- isModified()
- isReadOnly()
- onCanUndo()
- onCmdCopy()
- onCmdCut()
- onCmdDelete()
- onCmdPaste()
- onCmdRedo()
- onCmdUndo()
- onGetDocument()
- onGetProperty()
- onSetDocument()
- onSetProperty()
- onSetReadOnly()
- onSetZoom()
- onStartEditor()
- onloadHandler()
- raiseDocument()
- raiseEvent()
- raiseOpenDocument()
- raiseSelect()
- setModified()
- setResultsDiv()
- setZoom()
Parameters
parameter RESOURCE = %Development:USE;
Require %Development:USE for access to subclasses of this page.
Properties
property DocumentID as %ZEN.Datatype.string (ZENURL = "ID");
ID of current document.
This is provided, as a URL parameter, by the Studio.
Property methods: DocumentIDDisplayToLogical(), DocumentIDGet(), DocumentIDIsValid(), DocumentIDLogicalToDisplay(), DocumentIDLogicalToOdbc(), DocumentIDNormalize(), DocumentIDSet()
property documentName as %ZEN.Datatype.string (ZENURL = "DOC");
Name of document being edited.
This is provided, as a URL parameter, by the Studio.
Property methods: documentNameDisplayToLogical(), documentNameGet(), documentNameIsValid(), documentNameLogicalToDisplay(), documentNameLogicalToOdbc(), documentNameNormalize(), documentNameSet()
property modified as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
Indicates that this document is modified.
Use the isModified(),setModified(),
and clearModified() methods
to observe and change this.
Property methods: modifiedDisplayToLogical(), modifiedGet(), modifiedIsValid(), modifiedLogicalToDisplay(), modifiedLogicalToOdbc(), modifiedLogicalToXSD(), modifiedNormalize(), modifiedSet(), modifiedXSDToLogical()
property readOnly as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
Indicates that this document is in read only mode.
Editors should not set this property; it is set by the Studio.
Use the isReadOnly() method to observe this.
Property methods: readOnlyDisplayToLogical(), readOnlyGet(), readOnlyIsValid(), readOnlyLogicalToDisplay(), readOnlyLogicalToOdbc(), readOnlyLogicalToXSD(), readOnlyNormalize(), readOnlySet(), readOnlyXSDToLogical()
property zoom as %ZEN.Datatype.float [ InitialExpression = 100 ];
Methods
method %OnDrawHTMLHead() as %Status
This callback is called at the start of the HTML HEAD section of the page.
This writes out the JavaScript methods expected by the Studio API.
This writes out the JavaScript methods expected by the Studio API.
Given a document name, strip off the extension and return the class name.
clientmethod clearModified() [ Language = javascript ]
Clear the modified flag for this editor.
clientmethod getZoom() [ Language = javascript ]
Return the zoom level of the editor.
clientmethod isModified() [ Language = javascript ]
Test if the document is modified.
clientmethod isReadOnly() [ Language = javascript ]
Return the ReadOnly state of the editor.
abstract clientmethod onCanUndo() [ Language = javascript ]
Test if undo is possible.
abstract clientmethod onCmdCopy() [ Language = javascript ]
Notification that user has invoked the copy command.
abstract clientmethod onCmdCut() [ Language = javascript ]
Notification that user has invoked the cut command.
abstract clientmethod onCmdDelete() [ Language = javascript ]
Notification that user has invoked the delete command.
abstract clientmethod onCmdPaste() [ Language = javascript ]
Notification that user has invoked the paste command.
abstract clientmethod onCmdRedo() [ Language = javascript ]
Notification that user has invoked the redo command.
abstract clientmethod onCmdUndo() [ Language = javascript ]
Notification that user has invoked the undo command.
abstract clientmethod onGetDocument() [ Language = javascript ]
Get document with current state of editor
(raise event with current document in it)
abstract clientmethod onGetProperty(prop) [ Language = javascript ]
Return the value of a specific property value from the editor.
clientmethod onSetDocument(state) [ Language = javascript ]
Notification that the user has changed the XML version of this
document.
state is the contents of the XML editor pane.
state is the contents of the XML editor pane.
abstract clientmethod onSetProperty(prop, value) [ Language = javascript ]
Notification that the user has changed a property using
the Inspector.
prop is the property name, value is the new value.
prop is the property name, value is the new value.
abstract clientmethod onSetReadOnly() [ Language = javascript ]
Notification that Studio has modified the ReadOnly state of the editor.
abstract clientmethod onSetZoom() [ Language = javascript ]
Notification that the zoom level of the editor has changed.
clientmethod onStartEditor() [ Language = javascript ]
This client event, if present, is fired when editor is loaded.
clientmethod onloadHandler() [ Language = javascript ]
This client event, if present, is fired when the page is loaded.
clientmethod raiseDocument(state) [ Language = javascript ]
Raise a 'document' event to Studio.
This will set the contents of the XML pane within the Studio edit window, if applicable. state is the text that will be placed within the edit window.
This will set the contents of the XML pane within the Studio edit window, if applicable. state is the text that will be placed within the edit window.
clientmethod raiseEvent(type) [ Language = javascript ]
Raise a named event for Studio to catch.
clientmethod raiseOpenDocument(doc) [ Language = javascript ]
Raise an OPENDOC event to Studio.
doc is the full name (with extension) of the document for Studio to open.
doc is the full name (with extension) of the document for Studio to open.
clientmethod raiseSelect(proplist) [ Language = javascript ]
Raise a SELECT event to Studio.
This will update the Studio Inspector.
proplist is a list of property values for inspector to show. The first property in the list is the Name of selected item. proplist is an array of objects of the form:
proplist[n] = obj;
obj.name = 'name of property'
obj.type = 'type' (STRING,INTEGER, etc.)
obj.value = value
This will update the Studio Inspector.
proplist is a list of property values for inspector to show. The first property in the list is the Name of selected item. proplist is an array of objects of the form:
proplist[n] = obj;
obj.name = 'name of property'
obj.type = 'type' (STRING,INTEGER, etc.)
obj.value = value
clientmethod setModified() [ Language = javascript ]
Set the modified flag for this editor.
clientmethod setResultsDiv(data) [ Language = javascript ]
Set contents of results div used to pass data to Studio.
clientmethod setZoom(zoom) [ Language = javascript ]
Set the zoom level of the editor.
Inherited Members
Inherited Properties
- %condition
- %import
- %includeFiles
- %page
- %resource
- align
- aux
- backgroundTimerInterval
- cellAlign
- cellSize
- cellStyle
- cellVAlign
- children
- composite
- containerStyle
- cssLevel
- disabled
- dragAndDrop
- dragEnabled
- dropEnabled
- enclosingClass
- enclosingStyle
- error
- groupClass
- groupStyle
- height
- hidden
- hint
- hintClass
- hintStyle
- id
- index
- label
- labelClass
- labelDisabledClass
- labelPosition
- labelStyle
- layout
- name
- onafterdrag
- onbeforedrag
- onclick
- ondrag
- ondrop
- onhide
- onrefresh
- onshow
- onupdate
- parent
- showLabel
- slice
- title
- tuple
- useSVG
- useSoftModals
- valign
- visible
- width
- window
- 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()
- %GetPageName()
- %GetParameter()
- %GetValueById()
- %GetValueByName()
- %GetXMLName()
- %IsA()
- %IsModified()
- %Link()
- %LinkCSS()
- %LinkScript()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnAfterCreatePage()
- %OnBeforeCreatePage()
- %OnCreateApplication()
- %OnCreatePage()
- %OnDetermineCSSLevel()
- %OnDrawEnclosingDiv()
- %OnDrawHTMLMeta()
- %OnDrawObjectProperties()
- %OnFinishBackgroundTask()
- %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()
- HyperEventCall()
- HyperEventHead()
- Include()
- InsertHiddenField()
- InsertHiddenFields()
- IsPrivate()
- Link()
- OnHTTPHeader()
- OnPage()
- OnPageError()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPreHTTP()
- OnPreHyperEvent()
- Page()
- QuoteJS()
- RewriteURL()
- ShowError()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- addChild()
- addChildAfter()
- addChildBefore()
- cancelPopup()
- childrenMutated()
- correctIELayering()
- createComponent()
- createComponentNS()
- deleteComponent()
- dragFinishHandler()
- dragHandler()
- dragNotifyHandler()
- dragStartHandler()
- dropHandler()
- dropStartHandler()
- endModal()
- exposeComponent()
- findElement()
- fireOnResizeEvent()
- fireOnUnloadEvent()
- fireOnUpdateEvent()
- firePopupAction()
- getChildIndex()
- getComponent()
- getComponentById()
- getEnclosingDiv()
- getHidden()
- getHintElement()
- getLabelElement()
- getOpener()
- getProperty()
- getSettings()
- getType()
- gotoPage()
- invokeSuper()
- isOfType()
- launchPopupWindow()
- makeId()
- onCreate()
- onDelete()
- onDisplayHandler()
- onEndModalHandler()
- onPopupAction()
- onRefreshContents()
- onSerialize()
- onServerMethodCall()
- onServerMethodError()
- onServerMethodReturn()
- onStartModalHandler()
- ondisabledHandler()
- onkeydownHandler()
- onkeyupHandler()
- onlayoutHandler()
- onlogoutHandler()
- onoverlayHandler()
- onresizeHandler()
- onunloadHandler()
- onupdateHandler()
- popupActionHandler()
- refreshContents()
- removeChild()
- render()
- renderContents()
- renderSVG()
- setComponentId()
- setHidden()
- setOverlayMode()
- setProperty()
- setPropertyAll()
- setTraceOption()
- startModal()
- startProgressBar()
- stopProgressBar()