OverviewSingleDeprecatedPropertiesEventsXSL Parameters

jsx3.html

class DOM

Object
->jsx3.lang.Object
  ->jsx3.html.DOM

class DOM
extends jsx3.lang.Object
Handles Provides methods to manipulate browser DOM nodes.

Since:

3.6

Constructor Summary
void
instance initializer
Method Summary
static void
clearStyles(objNode : HTMLElement, strCSS : String)
Clears a string of multiple CSS style properties to a DOM element; Provides a way for a string of CSS to be removed from the node
static int
Gets the true offset height for the element including: margin, padding, border, and content
static int
Gets the true offset width for the element including: margin, padding, border, and content
static void
removeEventListener(objNode : HTMLElement, strName : String, objFn : Object)
Removes the function, objFn, as the event handler for the given DOM node.
static void
setStyle(objNode : HTMLElement, strCSSName : String, strValue : String)
Applies a single CSS style to a DOM node
static void
setStyles(objNode : HTMLElement, strCSS : String)
Applies a string of multiple CSS style properties to a DOM element
Methods Inherited From jsx3.lang.Object
clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf, toString
Constructor Detail

init

void init()
instance initializer
Method Detail

clearStyles

static void clearStyles(objNode : HTMLElement, strCSS : String)
Clears a string of multiple CSS style properties to a DOM element; Provides a way for a string of CSS to be removed from the node

Parameters:

objNodenative browser DOM node
strCSSstring of CSS. One of two variants are supported: left:10px;height:20px;width:100px; or left:;height:;width:;

getExtendedOffsetHeight

static int getExtendedOffsetHeight(objNode : HTMLElement)
Gets the true offset height for the element including: margin, padding, border, and content

Parameters:

objNodenative browser DOM node of type 'Element' that supports layout

Returns:

 

getExtendedOffsetWidth

static int getExtendedOffsetWidth(objNode : HTMLElement)
Gets the true offset width for the element including: margin, padding, border, and content

Parameters:

objNodenative browser DOM node of type 'Element' that supports layout

Returns:

 

removeEventListener

static void removeEventListener(objNode : HTMLElement, strName : String, objFn : Object)
Removes the function, objFn, as the event handler for the given DOM node.

Parameters:

objNodenative browser DOM node
strNameEvent name. For example, onclick, onfocus
objFnfunction, function literal

setStyle

static void setStyle(objNode : HTMLElement, strCSSName : String, strValue : String)
Applies a single CSS style to a DOM node

Parameters:

objNodenative browser DOM node
strCSSNameEither the CSS property name (i.e., background-color) or its scriptable property name (i.e., backgroundColor)
strValueFor example, red

setStyles

static void setStyles(objNode : HTMLElement, strCSS : String)
Applies a string of multiple CSS style properties to a DOM element

Parameters:

objNodenative browser DOM node
strCSSstring of CSS. For example, left:10px;height:20px;width:100px;