class %ZEN.Dialog.cssDeclarationEditor
extends standardDialog
Specialized page that displays a CSS declaration editor.
This is used by ZEN utilities.
This is a Zen Page class.
parameter APPLYBUTTON = 1;
Show Apply button.
parameter DOMAIN = "%ZEN";
Localization domain
property context
as %ZEN.Datatype.string(ZENURL="context");
What type of CSS declaration: "HTML" or "SVG". Passed in via URL.
property declaration
as %ZEN.Datatype.string(ZENURL="declaration");
Initial value of the CSS declaration. Passed in via URL.
property msgMissingProp
as %ZEN.Datatype.caption [ InitialExpression = "Please enter a property value." ];
Localized message for missing property.
property multiLine
as %ZEN.Datatype.boolean(ZENURL="multiLine") [ InitialExpression = 0 ];
True if result should formatted as multi-line text. Passed in via URL.
property selector
as %ZEN.Datatype.string(ZENURL="selector");
Selector for the CSS declaration. Passed in via URL.
method %GetDescHTML(pSeed As %String)
as %Status
Provide contents of description component.
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.
method %OnGetSubtitle()
as %String
Get the (localized) subtitle string for the dialog.
This should be implemented in a subclass.
method %OnGetTitle()
as %String
Get the (localized) title string for the dialog.
This should be implemented in a subclass.
classmethod GetCSSPropertyList(pContext As %String, Output pList)
Return an array of possible CSS property values.
method changeDeclaration(lb)
[ Language = javascript ]
User has selected a declaration in the list box.
method changeProperty(ctrl)
[ Language = javascript ]
User has changed the property or value control
method editCSSValue()
[ Language = javascript ]
Launch the CSS Value Editor popup.
method getCurrDeclaration()
[ Language = javascript ]
Get current declaration from property and value controls.
method getDialogValue()
[ Language = javascript ]
Return the value that should be returned by this dialog.
method onPopupAction(popupName, action, value)
[ Language = javascript ]
This client event, if present, is fired when the a popup page
launched from this page fires an action.
method removeProperty()
[ Language = javascript ]
Remove the current property