|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.Node
com.gargoylesoftware.htmlunit.javascript.host.EventNode
com.gargoylesoftware.htmlunit.javascript.host.Element
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement
com.gargoylesoftware.htmlunit.javascript.host.RowContainer
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLTableElement
public class HTMLTableElement
A JavaScript object representing a Table.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement |
|---|
HTMLElement.ProxyDomNode |
| Field Summary |
|---|
| Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement |
|---|
BEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGE |
| Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.Node |
|---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
HTMLTableElement()
Creates an instance. |
|
| Method Summary | |
|---|---|
Object |
createCaption()
If this table does not have a caption, this method creates an empty table caption, adds it to the table and then returns it. |
Object |
createTFoot()
If this table does not have a tfoot element, this method creates an empty tfoot element, adds it to the table and then returns it. |
Object |
createTHead()
If this table does not have a thead element, this method creates an empty thead element, adds it to the table and then returns it. |
void |
deleteCaption()
Deletes this table's caption. |
void |
deleteTFoot()
Deletes this table's tfoot element. |
void |
deleteTHead()
Deletes this table's thead element. |
String |
getBgColor()
Returns the value of the bgColor attribute. |
String |
getBorder()
Gets the border attribute. |
Object |
getCaption()
Returns the table's caption element, or null if none exists. |
String |
getCellPadding()
Returns the cellPadding attribute. |
String |
getCellSpacing()
Returns the cellSpacing attribute. |
Object |
getTBodies()
Returns the tbody's in the table. |
Object |
getTFoot()
Returns the table's tfoot element, or null if none exists. |
Object |
getTHead()
Returns the table's thead element, or null if none exists. |
String |
getWidth_js()
Returns the width attribute. |
Object |
insertRow(int index)
Handle special case where table is empty. |
protected boolean |
isContainedRow(HtmlTableRow row)
Indicates if the row belongs to this container. |
void |
refresh()
Refreshes the content of this table. |
void |
setBgColor(String bgColor)
Sets the value of the bgColor attribute. |
void |
setBorder(String border)
Sets the border attribute. |
void |
setCaption(Object o)
Sets the caption. |
void |
setCellPadding(String cellPadding)
Sets the cellPadding attribute. |
void |
setCellSpacing(String cellSpacing)
Sets the cellSpacing attribute. |
void |
setTFoot(Object o)
Sets the tFoot. |
void |
setTHead(Object o)
Sets the tHead. |
void |
setWidth(String width)
Sets the width attribute. |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.RowContainer |
|---|
deleteRow, getAlign, getRows, insertRow, moveRow, setAlign |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.Element |
|---|
createAttributesObject, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getPreviousElementSibling, getText, hasAttributeNS, removeAttribute, removeAttributeNS, selectNodes, selectSingleNode, setAttributeNS, setDefaults |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.EventNode |
|---|
fireEvent, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnpropertychange, getOnresize, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnpropertychange, setOnresize |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.Node |
|---|
addEventListener, appendChild, attachEvent, cloneNode, compareDocumentPosition, detachEvent, executeEvent, fireEvent, fireEvent, getChildNodes, getEventHandler, getEventHandlerProp, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, getXml, hasChildNodes, hasEventHandlers, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, removeEventListener, replaceChild, setEventHandler, setEventHandlerProp, setNodeValue |
| Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
|---|
clone, defineFunctionProperties, defineProperty, equivalentValues, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement |
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
|---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
|---|
delete, delete, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
| Constructor Detail |
|---|
public HTMLTableElement()
| Method Detail |
|---|
public Object getCaption()
public void setCaption(Object o)
o - the captionpublic Object getTFoot()
public void setTFoot(Object o)
o - the tFootpublic Object getTHead()
public void setTHead(Object o)
o - the tHeadpublic Object getTBodies()
public Object createCaption()
public Object createTFoot()
public Object createTHead()
public void deleteCaption()
public void deleteTFoot()
public void deleteTHead()
public void refresh()
protected boolean isContainedRow(HtmlTableRow row)
isContainedRow in class RowContainerrow - the row to test
true if it belongs to this containerpublic Object insertRow(int index)
insertRow in class RowContainerindex - the index where the row should be inserted (0 <= index < nbRows)
public String getWidth_js()
public void setWidth(String width)
width - the width attributepublic String getCellSpacing()
public void setCellSpacing(String cellSpacing)
cellSpacing - the cellSpacing attributepublic String getCellPadding()
public void setCellPadding(String cellPadding)
cellPadding - the cellPadding attributepublic String getBorder()
public void setBorder(String border)
border - the border attributepublic String getBgColor()
public void setBgColor(String bgColor)
bgColor - the value of the bgColor attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||