1
########################################################################
3
# File Name: HTMLLegendElement
5
# Documentation: http://docs.4suite.com/4DOM/HTMLLegendElement.html
8
### This file is automatically generated by GenerateHtml.py.
12
WWW: http://4suite.com/4DOM e-mail: support@4suite.com
14
Copyright (c) 2000 Fourthought Inc, USA. All Rights Reserved.
15
See http://4suite.com/COPYRIGHT for license and copyright information
19
from xml.dom import Node
20
from xml.dom.html.HTMLElement import HTMLElement
22
class HTMLLegendElement(HTMLElement):
24
def __init__(self, ownerDocument, nodeName="LEGEND"):
25
HTMLElement.__init__(self, ownerDocument, nodeName)
27
### Attribute Methods ###
29
def _get_accessKey(self):
30
return self.getAttribute("ACCESSKEY")
32
def _set_accessKey(self, value):
33
self.setAttribute("ACCESSKEY", value)
36
return string.capitalize(self.getAttribute("ALIGN"))
38
def _set_align(self, value):
39
self.setAttribute("ALIGN", value)
42
parent = self.parentNode
44
if parent.nodeName == "FORM":
46
parent = parent.parentNode
49
### Attribute Access Mappings ###
51
_readComputedAttrs = HTMLElement._readComputedAttrs.copy()
52
_readComputedAttrs.update({
53
"accessKey" : _get_accessKey,
58
_writeComputedAttrs = HTMLElement._writeComputedAttrs.copy()
59
_writeComputedAttrs.update({
60
"accessKey" : _set_accessKey,
64
_readOnlyAttrs = filter(lambda k,m=_writeComputedAttrs: not m.has_key(k),
65
HTMLElement._readOnlyAttrs + _readComputedAttrs.keys())