public class HTMLTableElement extends RowContainer
HTMLElement.ProxyDomNode
BEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGE
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
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, setAlign
addBehavior, addComponentRequest, blur, clearAttributes, clearComponentRequest, click, compareVersions, createEventHandler, createTextRange, doComponentRequest, doScroll, fixAttributeName, focus, get, getAccessKey, getAlign, getAll, getAttributeNode, getAttributeNodeNS, getAvailHeight, getAvailWidth, getBoundingClientRect, getBoxObject, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getColorDepth, getComponentVersion, getConnectionType, getCookieEnabled, getCpuClass, getDataset, getDefaultStyleDisplay, getDir, getDisabled, getDocument, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getFilters, getHeight, getId, getInnerHTML, getInnerText, 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, setDir, setDisabled, setDomNode, setExpression, setHomePage, setId, setInnerText, setLang, setLanguage, setOnchange, setOnsubmit, setOuterHTML, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setWidthOrHeight, startDownload, toString
createAttributesObject, getAttribute, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getCurrentStyle, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getPreviousElementSibling, getRuntimeStyle, getStyle, getTagName, getText, hasAttributeNS, removeAttribute, removeAttributeNS, selectNodes, selectSingleNode, setAttributeNode, setAttributeNS, setDefaults
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
appendChild, 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, setNodeValue
addEventListener, clearEventListenersContainer, dispatchEvent, executeEvent, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerProp
clone, defineFunctionProperties, defineProperty, equivalentValues, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setHtmlElement, setParentScope
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, 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, size
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 RowContainer
row
- the row to testtrue
if it belongs to this containerpublic Object insertRow(int index)
insertRow
in class RowContainer
index
- 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 attributepublic String getBorderColor()
public void setBorderColor(String borderColor)
borderColor
- the new attributepublic String getBorderColorDark()
public void setBorderColorDark(String borderColor)
borderColor
- the new attributepublic String getBorderColorLight()
public void setBorderColorLight(String borderColor)
borderColor
- the new attributepublic void setInnerHTML(Object value)
setInnerHTML
in class HTMLElement
value
- the new value for the contents of this nodeprotected void setInnerTextImpl(String value)
setInnerTextImpl
in class HTMLElement
value
- 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–2015 Gargoyle Software Inc.. All rights reserved.