public class HTMLTableElement extends RowContainer
HTMLTableElement.HTMLElement.ProxyDomNodeBEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGEATTRIBUTE_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| Constructor and Description |
|---|
HTMLTableElement()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
String |
getBorderColor()
Gets the
borderColor attribute. |
String |
getBorderColorDark()
Gets the
borderColor attribute. |
String |
getBorderColorLight()
Gets the
borderColor 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. |
String |
getDataFld()
Returns the
dataFld attribute. |
String |
getDataFormatAs()
Returns the
dataFormatAs attribute. |
String |
getDataSrc()
Returns the
dataSrc 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 |
setBorderColor(String borderColor)
Sets the
borderColor attribute. |
void |
setBorderColorDark(String borderColor)
Sets the
borderColor attribute. |
void |
setBorderColorLight(String borderColor)
Sets the
borderColor 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 |
setDataFld(String dataFld)
Sets the
dataFld attribute. |
void |
setDataFormatAs(String dataFormatAs)
Sets the
dataFormatAs attribute. |
void |
setDataSrc(String dataSrc)
Sets the
dataSrc attribute. |
void |
setInnerHTML(Object value)
Overwritten to throw an exception in IE8/9.
|
protected void |
setInnerTextImpl(String value)
Overwritten to throw an exception because this is readonly.
|
void |
setTFoot(Object o)
Sets the tFoot.
|
void |
setTHead(Object o)
Sets the
tHead. |
void |
setWidth(String width)
Sets the
width attribute. |
deleteRow, getAlign, getRows, insertRow, moveRow, setAlignaddBehavior, addComponentRequest, blur, clearAttributes, clearComponentRequest, click, compareVersions, createTextRange, doComponentRequest, doScroll, fixAttributeName, focus, get, getAccessKey, getAlign, getAll, getAttributeNode, getAttributeNodeNS, getAvailHeight, getAvailWidth, getBoundingClientRect, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getColorDepth, getComponentVersion, getConnectionType, getContentEditable, getCookieEnabled, getCpuClass, getDataset, getDefaultStyleDisplay, getDir, getDisabled, getDocument, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getFilters, getHeight, getId, getInnerHTML, getInnerText, getIsContentEditable, getJavaEnabled, getLang, getLanguage, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnchange, getOnsubmit, getOuterHTML, getParentElement, getParentHTMLElement, getPlatform, getPosX, getPosY, getPrefix, getScopeName, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSpellcheck, getSystemLanguage, getTabIndex, getTagUrn, getTitle, getUniqueID, getUserLanguage, getVAlign, getWidth, getWidthOrHeight, getWithFallback, hasAttribute, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isAncestorOfEventTarget, isComponentInstalled, isEndTagForbidden, isHomePage, isLowerCaseInOuterHtml, mergeAttributes, navigateHomePage, parseHtmlSnippet, querySelector, querySelectorAll, readAttributes, releaseCapture, removeAttributeNode, removeBehavior, removeExpression, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCapture, setCh, setChOff, setClassName_js, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setExpression, setHomePage, setId, setInnerText, setLang, setLanguage, setOnchange, setOnsubmit, setOuterHTML, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setWidthOrHeight, startDownload, toStringcreateAttributesObject, createEventHandler, getAttribute, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getCurrentStyle, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getPreviousElementSibling, getRuntimeStyle, getStyle, getTagName, hasAttributeNS, removeAttribute, removeAttributeNS, selectNodes, selectSingleNode, setAttributeNode, setAttributeNS, setDefaultsfireEvent, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOninput, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnpropertychange, getOnresize, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOninput, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnpropertychange, setOnresizeappendChild, asJavaScriptException, attachEvent, cloneNode, compareDocumentPosition, contains, detachEvent, getBaseName, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, getXml, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, replaceChild, setNodeValueaddEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerPropclone, equivalentValues, getBrowserVersion, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, setClassName, setParentScopeapplyDescriptorToAttributeBitset, 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, getExternalArrayData, getExternalArrayLength, 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, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic Object getCaption()
null if none exists. If more than one
caption is declared in the table, this method returns the first one.public void setCaption(Object o)
o - the captionpublic Object getTFoot()
null if none exists. If more than one
tfoot is declared in the table, this method returns the first one.public void setTFoot(Object o)
o - the tFootpublic Object getTHead()
null if none exists. If more than one
thead is declared in the table, this method returns the first one.public void setTHead(Object o)
tHead.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 testtrue 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()
width attribute.width attributepublic void setWidth(String width)
width attribute.width - the width attributepublic String getCellSpacing()
cellSpacing attribute.cellSpacing attributepublic void setCellSpacing(String cellSpacing)
cellSpacing attribute.cellSpacing - the cellSpacing attributepublic String getCellPadding()
cellPadding attribute.cellPadding attributepublic void setCellPadding(String cellPadding)
cellPadding attribute.cellPadding - the cellPadding attributepublic String getBorder()
border attribute.border attributepublic void setBorder(String border)
border attribute.border - the border attributepublic String getBgColor()
bgColor attribute.bgColor attributepublic void setBgColor(String bgColor)
bgColor attribute.bgColor - the value of the bgColor attributepublic String getBorderColor()
borderColor attribute.public void setBorderColor(String borderColor)
borderColor attribute.borderColor - the new attributepublic String getBorderColorDark()
borderColor attribute.public void setBorderColorDark(String borderColor)
borderColor attribute.borderColor - the new attributepublic String getBorderColorLight()
borderColor attribute.public void setBorderColorLight(String borderColor)
borderColor attribute.borderColor - the new attributepublic void setInnerHTML(Object value)
setInnerHTML in class HTMLElementvalue - the new value for the contents of this nodeprotected void setInnerTextImpl(String value)
setInnerTextImpl in class HTMLElementvalue - the new value for the contents of this nodepublic String getDataFld()
dataFld attribute.dataFld attributepublic void setDataFld(String dataFld)
dataFld attribute.dataFld - dataFld attributepublic String getDataFormatAs()
dataFormatAs attribute.dataFormatAs attributepublic void setDataFormatAs(String dataFormatAs)
dataFormatAs attribute.dataFormatAs - dataFormatAs attributepublic String getDataSrc()
dataSrc attribute.dataSrc attributepublic void setDataSrc(String dataSrc)
dataSrc attribute.dataSrc - dataSrc attributeCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.