%DeepSee.UI.Dialog.ImageUpload
Class %DeepSee.UI.Dialog.ImageUpload Extends %DeepSee.UI.Dialog.standardDialog [ System = 4 ]
This dialog lets the user upload an image into the "covers" directory.
Parameters
PAGENAME
Parameter PAGENAME = "Image Upload";
Displayed name of this page.
APPLYBUTTON
Parameter APPLYBUTTON As BOOLEAN = 0;
If true, then this dialog displays an Apply button.
Properties
fileName
Property fileName As %ZEN.Datatype.string(ZENURL = "FILE");
Name of image file.
XDatas
Style
XData Style
dialogBody
XData dialogBody [ XMLNamespace = "http://www.intersystems.com/zen" ]
This XML block defines the contents of this pane.
Methods
%OnGetTitle
Method %OnGetTitle() As %String
Get the (localized) title string for the dialog. This should be implemented in a subclass.
%OnGetSubtitle
Method %OnGetSubtitle() As %String
Get the (localized) subtitle string for the dialog. This should be implemented in a subclass.
%OnAfterCreatePage
Method %OnAfterCreatePage() As %Status
This callback is called after the server-side page object and all of its children are created.
Subclasses can override this to add, remove, or modify items within the page object model, or to provide values for controls.
getDialogValue
ClientMethod getDialogValue() [ Language = javascript ]
ondialogFinish
ClientMethod ondialogFinish(action) [ Language = javascript ]
This callback, if defined, is called when the user presses the OK or Apply action buttons. If this returns false, then the action is cancelled.
changeImage
ClientMethod changeImage() [ Language = javascript ]
User has selected a new image.
%OnSubmit
ClassMethod %OnSubmit(pSubmit As %ZEN.Submit) As %Status
This callback is called when a form on this page is submitted. pSubmit is a %ZEN.Submit object containing details of the form submit.
Subclasses override this method.
%GetImageDirectory
ClassMethod %GetImageDirectory() As %String [ CodeMode = expression ]
Return the physical directory in which cover images files are stored.