Constructor: ListElement

OpenAjax.a11y.cache.ListElement

new ListElement(dom_element, parent_container)

Cache object to be inserted into ListsCache; corresponds to either a LI, DT, DD element in the DOM

Parameters:
Name Type Description
dom_element DOMelement The dom element object representing the input element
parent_container ContainerElement Reference to the container element the list element is contained in
Properties:
Name Type Description
dom_element DOMElement Reference to the dom element representing the list element
cache_id String String that uniquely identifies the cache element object in the cache
document_order Number Ordinal position of the list element in the document
parent_container ContainerElement Reference to the container element the list element is contained in
list_type Number Type of list cache element object
child_cache_elements Array Array of child cache list elements as part of list cache tree
link_count Number Number of links in this list element
Source:
  • scripts/cache_lists.js, line 425

Methods

<static> addChildElement(list_element) → {boolean}

Add a list element object to the tree of list cache items

Parameters:
Name Type Description
list_element ContainerElement | ListElement | LandmarkElement list cache element object to add to the list cache
Source:
  • scripts/cache_lists.js, line 462
Returns:
indicating success or failure
Type
boolean

<static> getAttributes(unsorted) → {Array}

Returns an array of attributes for the element, sorted in alphabetical order

Parameters:
Name Type Description
unsorted Boolean If defined and true the results will NOT be sorted alphabetically
Source:
  • scripts/cache_lists.js, line 515
Returns:
Returns a array of attribute display object
Type
Array

<static> getCacheProperties(unsorted) → {Array}

Returns an array of cache properties sorted by property name

Parameters:
Name Type Description
unsorted Boolean If defined and true the results will NOT be sorted alphabetically
Source:
  • scripts/cache_lists.js, line 537
Returns:
Returns a array of cache property display object
Type
Array

<static> getCachePropertyValue(property) → {String|Number}

Returns the value of a property

Parameters:
Name Type Description
property String The property to retreive the value
Source:
  • scripts/cache_lists.js, line 562
Returns:
Returns the value of the property
Type
String | Number

<static> getEvents() → {Array}

Returns an array of events for the element, sorted in alphabetical order

Source:
  • scripts/cache_lists.js, line 583
Returns:
Returns a array of event item display objects
Type
Array

<static> getNodeResults() → {Array}

Returns an array of node results in severity order

Source:
  • scripts/cache_lists.js, line 485
Returns:
Returns a array of node results
Type
Array

<static> getStyle() → {Array}

Returns an array of style items

Source:
  • scripts/cache_lists.js, line 499
Returns:
Returns a array of style display objects
Type
Array

<static> toString() → {String}

Returns a text string representation of the list item object

Source:
  • scripts/cache_lists.js, line 601
Returns:
Returns string represention the list item object
Type
String