~vil/pydev/upstream

« back to all changes in this revision

Viewing changes to org.python.pydev.jython/Lib/xml/dom/html/HTMLLegendElement.py

  • Committer: Vladimír Lapáček
  • Date: 2006-08-30 18:38:44 UTC
  • Revision ID: vladimir.lapacek@gmail.com-20060830183844-f4d82c1239a7770a
Initial import of upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
########################################################################
 
2
#
 
3
# File Name:            HTMLLegendElement
 
4
#
 
5
# Documentation:        http://docs.4suite.com/4DOM/HTMLLegendElement.html
 
6
#
 
7
 
 
8
### This file is automatically generated by GenerateHtml.py.
 
9
### DO NOT EDIT!
 
10
 
 
11
"""
 
12
WWW: http://4suite.com/4DOM         e-mail: support@4suite.com
 
13
 
 
14
Copyright (c) 2000 Fourthought Inc, USA.   All Rights Reserved.
 
15
See  http://4suite.com/COPYRIGHT  for license and copyright information
 
16
"""
 
17
 
 
18
import string
 
19
from xml.dom import Node
 
20
from xml.dom.html.HTMLElement import HTMLElement
 
21
 
 
22
class HTMLLegendElement(HTMLElement):
 
23
 
 
24
    def __init__(self, ownerDocument, nodeName="LEGEND"):
 
25
        HTMLElement.__init__(self, ownerDocument, nodeName)
 
26
 
 
27
    ### Attribute Methods ###
 
28
 
 
29
    def _get_accessKey(self):
 
30
        return self.getAttribute("ACCESSKEY")
 
31
 
 
32
    def _set_accessKey(self, value):
 
33
        self.setAttribute("ACCESSKEY", value)
 
34
 
 
35
    def _get_align(self):
 
36
        return string.capitalize(self.getAttribute("ALIGN"))
 
37
 
 
38
    def _set_align(self, value):
 
39
        self.setAttribute("ALIGN", value)
 
40
 
 
41
    def _get_form(self):
 
42
        parent = self.parentNode
 
43
        while parent:
 
44
            if parent.nodeName == "FORM":
 
45
                return parent
 
46
            parent = parent.parentNode
 
47
        return None
 
48
 
 
49
    ### Attribute Access Mappings ###
 
50
 
 
51
    _readComputedAttrs = HTMLElement._readComputedAttrs.copy()
 
52
    _readComputedAttrs.update({
 
53
        "accessKey" : _get_accessKey,
 
54
        "align" : _get_align,
 
55
        "form" : _get_form
 
56
        })
 
57
 
 
58
    _writeComputedAttrs = HTMLElement._writeComputedAttrs.copy()
 
59
    _writeComputedAttrs.update({
 
60
        "accessKey" : _set_accessKey,
 
61
        "align" : _set_align
 
62
        })
 
63
 
 
64
    _readOnlyAttrs = filter(lambda k,m=_writeComputedAttrs: not m.has_key(k),
 
65
                     HTMLElement._readOnlyAttrs + _readComputedAttrs.keys())