Skip to main content

%DeepSee.Component.styleEdit

Class %DeepSee.Component.styleEdit Extends %ZEN.Component.control [ System = 3 ]

Style edit control.
This provides a way to edit CSS styling for text elements. The value for this control is a css style string.

Parameters

NAMESPACE

Parameter NAMESPACE = "http://www.intersystems.com/deepsee";

DEFAULTENCLOSINGCLASS;

Parameter DEFAULTENCLOSINGCLASS;

Properties

features

Property features As %ZEN.Datatype.csv;

Set of features to display when in "style" mode: These include: "font", "background", "color", "align", "reset".

mode

Property mode As %ZEN.Datatype.string(VALUELIST = ",style,color") [ InitialExpression = "style" ];

Operating mode of the control.
"style" (the default) edit a css style spec.
"color" edit a single color value.

caption

Property caption As %ZEN.Datatype.caption;

Caption to display when in "color" mode.

isDropdownVisible

Property isDropdownVisible As %ZEN.Datatype.boolean(XMLPROJECTION = "none") [ InitialExpression = 0 ];

Internal use only; client flag used to track if the dropdown is visible.

currColorSet

Property currColorSet As %ZEN.Datatype.string(XMLPROJECTION = "none");

Current color set.

colorSetNames

Property colorSetNames As list Of %ZEN.Datatype.string(XMLPROJECTION = "none");

Logical names of color sets.

colorSetCaptions

Property colorSetCaptions As list Of %ZEN.Datatype.string(XMLPROJECTION = "none");

Captions of color sets.

colorSets

Property colorSets As list Of %ZEN.Datatype.string(XMLPROJECTION = "none");

List of ;-delimited color set values for drop down.

XDatas

Style

XData Style

defines style sheet used by this component

Methods

%DrawHTML

Method %DrawHTML()

renderContents

ClientMethod renderContents() [ Language = javascript ]

Client-side method to render this control.

setProperty

ClientMethod setProperty(property, value, value2) [ Language = javascript ]

Set the value of a named property.

showDropdown

ClientMethod showDropdown(which) [ Language = javascript ]

Show the drop down.

onStartModalHandler

ClientMethod onStartModalHandler(zindex) [ Language = javascript ]

Notification that this component is about to become modal.

onEndModalHandler

ClientMethod onEndModalHandler(zindex) [ Language = javascript ]

Notification that this component is about to stop being modal.

renderDropdown

ClientMethod renderDropdown() [ Language = javascript ]

Show the drop down contents.

hideDropDown

ClientMethod hideDropDown() [ Language = javascript ]

Show the drop down.

reveal

ClientMethod reveal() [ Language = javascript ]

Timer handler for hide/reveal of drop down.

selectColor

ClientMethod selectColor(which, color) [ Language = javascript ]

Select color in drop down.

selectFont

ClientMethod selectFont(which, font) [ Language = javascript ]

Select font in drop down.

selectFontSize

ClientMethod selectFontSize(which, size) [ Language = javascript ]

Select font size in drop down.

textStyle

ClientMethod textStyle(which) [ Language = javascript ]

Toggle text style.

textAlign

ClientMethod textAlign(which) [ Language = javascript ]

Set text align.

setStyle

ClientMethod setStyle(style, value) [ Language = javascript ]

Set a specific css value into the style values supported by this control.

parseStyle

ClientMethod parseStyle(style) [ Language = javascript ]

Split a css value into the style values supported by this control. Return an object containing these values.

resetStyles

ClientMethod resetStyles() [ Language = javascript ]

Clear the styles

getDropDownDiv

ClientMethod getDropDownDiv() [ Language = javascript ]

Find the div element used to display the dropdown box.

adjustDropdownPosition

ClientMethod adjustDropdownPosition() [ Language = javascript ]

Adjust the placement and size of the dropdown box based on current screen geometry and scrolling conditions.

onresizeHandler

ClientMethod onresizeHandler() [ Language = javascript ]

customColorChange

ClientMethod customColorChange(which) [ Language = javascript ]

colorSetChange

ClientMethod colorSetChange(which) [ Language = javascript ]

Change the displayed color set.

getColorTableHTML

ClientMethod getColorTableHTML(which) [ Language = javascript ]

Return a HTML for the table of color choices for the current color set.

getColorSet

ClientMethod getColorSet() [ Language = javascript ]

Return an array of (arrays of) the current color set.