org.sgx.j2s.html
Class Element

Package class diagram package Element
java.lang.Object
  extended by org.sgx.j2s.html.Element
Direct Known Subclasses:
Document, HTMLSelect, HTMLTable, HTMLTableCell, HTMLTableRow, IFrame, Image, Textarea

public class Element
extends java.lang.Object

taken from j2s swt, but enriched by me only compatible xml Node and html Elements properties


Field Summary
 java.lang.String alt
           
 boolean checked
           
 Element[] childNodes
           
 java.lang.String className
           
 int clientHeight
           
 int clientWidth
           
 boolean disabled
           
 Element firstChild
           
 boolean hasLayout
           
 int height
           
 java.lang.String href
           
 java.lang.String id
           
 java.lang.String innerHTML
           
 java.lang.String innerText
           
 Element lastChild
           
 boolean multiple
           
 Element nextSibling
           
 java.lang.String nodeName
           
 int nodeType
           
 java.lang.String nodeValue
           
 int offsetHeight
           
 int offsetLeft
           
 Element offsetParent
           
 int offsetTop
           
 int offsetWidth
           
 java.lang.Object onblur
           
 java.lang.Object onchange
           
 java.lang.Object onclick
           
 java.lang.Object oncontextmenu
           
 java.lang.Object ondblclick
           
 java.lang.Object onfocus
           
 java.lang.Object onfocusout
           
 java.lang.Object onhelp
           
 java.lang.Object onkeydown
           
 java.lang.Object onkeypress
           
 java.lang.Object onkeyup
           
 java.lang.Object onLoseCapture
           
 java.lang.Object onmousedown
           
 java.lang.Object onmousemove
           
 java.lang.Object onmouseout
           
 java.lang.Object onmouseover
           
 java.lang.Object onmouseup
           
 java.lang.Object onscroll
           
 java.lang.Object onselectchange
           
 java.lang.Object onselectstart
           
 Option[] options
           
 Element parentNode
           
 boolean readOnly
           
 java.lang.String rel
           
 int scrollHeight
           
 int scrollLeft
           
 int scrollTop
           
 int scrollWidth
           
 int selectedIndex
           
 int size
           
 java.lang.String src
           
 CSSStyle style
           
 int tabIndex
           
 java.lang.String target
           
 java.lang.String text
           
 java.lang.String title
           
 java.lang.String type
           
 java.lang.String value
           
 int width
           
 
Constructor Summary
Element()
           
 
Method Summary
 void add(java.lang.Object object)
           
 void appendChild(Element child)
           
 Element cloneNode(boolean flag)
           
 void focus()
           
 java.lang.Object getAttribute(java.lang.String string)
           
 void insertBefore(Element el, Element afterEl)
           
 void removeChild(Element handle)
           
 void replaceChild(Element newNode, Element oldNode)
           
 void select()
           
 void setAttribute(java.lang.String attrName, java.lang.Object attrValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentNode

public Element parentNode

childNodes

public Element[] childNodes

nextSibling

public Element nextSibling

firstChild

public Element firstChild

lastChild

public Element lastChild

offsetLeft

public int offsetLeft

offsetTop

public int offsetTop

offsetParent

public Element offsetParent

style

public CSSStyle style

id

public java.lang.String id

innerHTML

public java.lang.String innerHTML

innerText

public java.lang.String innerText

text

public java.lang.String text

value

public java.lang.String value

type

public java.lang.String type

href

public java.lang.String href

target

public java.lang.String target

title

public java.lang.String title

onscroll

public java.lang.Object onscroll

onclick

public java.lang.Object onclick

onkeypress

public java.lang.Object onkeypress

onkeydown

public java.lang.Object onkeydown

onkeyup

public java.lang.Object onkeyup

oncontextmenu

public java.lang.Object oncontextmenu

size

public int size

selectedIndex

public int selectedIndex

options

public Option[] options

nodeName

public java.lang.String nodeName

nodeValue

public java.lang.String nodeValue

className

public java.lang.String className

onmousedown

public java.lang.Object onmousedown

onmouseup

public java.lang.Object onmouseup

ondblclick

public java.lang.Object ondblclick

onselectstart

public java.lang.Object onselectstart

checked

public boolean checked

readOnly

public boolean readOnly

multiple

public boolean multiple

onchange

public java.lang.Object onchange

onselectchange

public java.lang.Object onselectchange

width

public int width

height

public int height

offsetWidth

public int offsetWidth

clientWidth

public int clientWidth

scrollWidth

public int scrollWidth

scrollLeft

public int scrollLeft

offsetHeight

public int offsetHeight

clientHeight

public int clientHeight

scrollHeight

public int scrollHeight

scrollTop

public int scrollTop

src

public java.lang.String src

alt

public java.lang.String alt

disabled

public boolean disabled

onLoseCapture

public java.lang.Object onLoseCapture

onfocusout

public java.lang.Object onfocusout

onmousemove

public java.lang.Object onmousemove

onmouseover

public java.lang.Object onmouseover

onmouseout

public java.lang.Object onmouseout

onfocus

public java.lang.Object onfocus

onblur

public java.lang.Object onblur

onhelp

public java.lang.Object onhelp

rel

public java.lang.String rel

tabIndex

public int tabIndex

nodeType

public int nodeType

hasLayout

public boolean hasLayout
Constructor Detail

Element

public Element()
Method Detail

appendChild

public void appendChild(Element child)

select

public void select()

focus

public void focus()

removeChild

public void removeChild(Element handle)

replaceChild

public void replaceChild(Element newNode,
                         Element oldNode)

add

public void add(java.lang.Object object)

insertBefore

public void insertBefore(Element el,
                         Element afterEl)

cloneNode

public Element cloneNode(boolean flag)

setAttribute

public void setAttribute(java.lang.String attrName,
                         java.lang.Object attrValue)

getAttribute

public java.lang.Object getAttribute(java.lang.String string)