@DOMObjectAttribute @DOMNameAttribute(name="HTMLTableElement") public class HTMLTableElement extends HTMLElement
Node.Flags
OnAbort, OnAbortDelegate, OnBlur, OnBlurDelegate, OnCancel, OnCancelDelegate, OnCanplay, OnCanplayDelegate, OnCanPlayThrough, OnCanPlayThroughDelegate, OnChange, OnChangeDelegate, OnClick, OnClickDelegate, OnCueChange, OnCueChangeDelegate, OnDblClick, OnDblClickDelegate, OnDurationChange, OnDurationChangeDelegate, OnEmptied, OnEmptiedDelegate, OnEnded, OnEndedDelegate, OnError, OnErrorDelegate, OnFocus, OnFocusDelegate, OnInput, OnInputDelegate, OnInvalid, OnInvalidDelegate, OnKeyDown, OnKeyDownDelegate, OnKeyPress, OnKeyPressDelegate, OnKeyUp, OnKeyUpDelegate, OnLoad, OnLoadDelegate, OnLoadedData, OnLoadedDataDelegate, OnLoadedMetadata, OnLoadedMetadataDelegate, OnLoadStart, OnLoadStartDelegate, OnMouseDown, OnMouseDownDelegate, OnMouseEnter, OnMouseEnterDelegate, OnMouseLeave, OnMouseLeaveDelegate, OnMouseMove, OnMouseMoveDelegate, OnMouseOut, OnMouseOutDelegate, OnMouseOver, OnMouseOverDelegate, OnMouseUp, OnMouseUpDelegate, OnMouseWheel, OnMouseWheelDelegate, OnPause, OnPauseDelegate, OnPlay, OnPlayDelegate, OnPlaying, OnPlayingDelegate, OnProgress, OnProgressDelegate, OnRateChange, OnRateChangeDelegate, OnReset, OnResetDelegate, OnResize, OnResizeDelegate, OnScroll, OnScrollDelegate, OnSeeked, OnSeekedDelegate, OnSeeking, OnSeekingDelegate, OnSelect, OnSelectDelegate, OnShow, OnShowDelegate, OnStalled, OnStalledDelegate, OnSubmit, OnSubmitDelegate, OnSuspend, OnSuspendDelegate, OnTimeUpdate, OnTimeUpdateDelegate, OnToggle, OnToggleDelegate, OnVolumeChange, OnVolumeChangeDelegate, OnWaiting, OnWaitingDelegate
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, flags, nodeDocument, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
EventMap
PropertyChanged
Constructor and Description |
---|
HTMLTableElement(com.aspose.html.dom.DOMName name,
Document doc)
Initializes a new instance of the
HTMLTableElement class. |
Modifier and Type | Method and Description |
---|---|
Element |
createCaption()
Create a new table caption object or return an existing one.
|
Element |
createTFoot()
Create a table footer row or return an existing one.
|
Element |
createTHead()
Create a table header row or return an existing one.
|
void |
deleteCaption()
Delete the table caption, if one exists.
|
void |
deleteRow(int index)
Delete a table row.
|
void |
deleteTFoot()
Delete the footer from the table, if one exists.
|
void |
deleteTHead()
Delete the header from the table, if one exists.
|
String |
getAlign()
Specifies the table's position with respect to the rest of the
document.
|
String |
getBgColor()
Cell background color.
|
HTMLTableSectionElement |
getBody() |
String |
getBorder()
The width of the border around the table.
|
HTMLTableCaptionElement |
getCaption()
Returns the table's
CAPTION , or void if none exists. |
String |
getCellPadding()
Specifies the horizontal and vertical space between cell content and
cell borders.
|
String |
getCellSpacing()
Specifies the horizontal and vertical separation between cells.
|
String |
getFrame()
Specifies which external table borders to render.
|
HTMLCollection |
getRows()
Returns the table's
TFOOT , or null if none
exists. |
String |
getRules()
Specifies which internal table borders to render.
|
String |
getSummary()
Description about the purpose or structure of a table.
|
HTMLCollection |
getTBodies()
Returns a collection of the table bodies (including implicit ones).
|
HTMLTableSectionElement |
getTFoot()
Returns the table's
THEAD , or null if none
exists. |
HTMLTableSectionElement |
getTHead()
Returns the table's
CAPTION , or void if none exists. |
String |
getWidth()
Specifies the desired table width.
|
Node |
insertRow(int index) |
void |
setAlign(String value)
Specifies the table's position with respect to the rest of the
document.
|
void |
setBgColor(String value)
Cell background color.
|
void |
setBorder(String value)
The width of the border around the table.
|
void |
setCellPadding(String value)
Specifies the horizontal and vertical space between cell content and
cell borders.
|
void |
setCellSpacing(String value)
Specifies the horizontal and vertical separation between cells.
|
void |
setFrame(String value)
Specifies which external table borders to render.
|
void |
setRules(String value)
Specifies which internal table borders to render.
|
void |
setSummary(String value)
Description about the purpose or structure of a table.
|
void |
setWidth(String value)
Specifies the desired table width.
|
getAttributeOrDefault, getChildOfType, getClassName_Rename_Namesake, getDir, getId_Rename_Namesake, getLang, getParentOfType, getRowIndexInScopeOfCollection, getStyle, getTitle, setAttribute, setAttribute, setAttribute, setClassName_Rename_Namesake, setDir, setId_Rename_Namesake, setLang, setTitle, toggleAttribute
attachShadow, equals, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassName, getComputedStyle, getComputedStyle, getData, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getLastElementChild, getLocalName, getNamespaceURI, getNextElementSibling, getNodeName, getNodeType, getOuterHTML, getPrefix, getPreviousElementSibling, getSchemaTypeInfo, getShadowRoot, getStyleContainer, getTag, getTagName, getTextContent, hasAttribute, hasAttributeNS, hasAttributes, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setData, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerHTML, setOuterHTML, setTextContent
adoptNode, appendChild, cloneNode, deepClone, getBaseURI, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getRegisteredObservers, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setNodeValue, setParentNode, setPrefix, toString
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public HTMLTableElement(com.aspose.html.dom.DOMName name, Document doc)
Initializes a new instance of the HTMLTableElement
class.
name
- The DOM name.doc
- The document.@DOMNameAttribute(name="caption") public HTMLTableCaptionElement getCaption()
Returns the table's CAPTION
, or void if none exists.
@DOMNameAttribute(name="tHead") @DOMNullableAttribute public HTMLTableSectionElement getTHead()
Returns the table's CAPTION
, or void if none exists.
Returns the table's THEAD
, or null
if none
exists.
DOMException
- HIERARCHY_REQUEST_ERR: if the element is not a CAPTION
.@DOMNameAttribute(name="tFoot") @DOMNullableAttribute public HTMLTableSectionElement getTFoot()
Returns the table's THEAD
, or null
if none
exists.
DOMException
- HIERARCHY_REQUEST_ERR: if the element is not a THEAD
.@DOMNameAttribute(name="rows") public HTMLCollection getRows()
Returns the table's TFOOT
, or null
if none
exists.
Returns a collection of all the rows in the table, including all in
THEAD
, TFOOT
, all TBODY
elements.
DOMException
- HIERARCHY_REQUEST_ERR: if the element is not a TFOOT
.@DOMNameAttribute(name="tBodies") public HTMLCollection getTBodies()
Returns a collection of the table bodies (including implicit ones).
public HTMLTableSectionElement getBody()
@DOMNameAttribute(name="align") public String getAlign()
Specifies the table's position with respect to the rest of the document. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
@DOMNameAttribute(name="align") public void setAlign(String value)
Specifies the table's position with respect to the rest of the document. See the align attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
@DOMNameAttribute(name="bgColor") public String getBgColor()
Cell background color. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
@DOMNameAttribute(name="bgColor") public void setBgColor(String value)
Cell background color. See the bgcolor attribute definition in HTML 4.01. This attribute is deprecated in HTML 4.01.
@DOMNameAttribute(name="border") public String getBorder()
The width of the border around the table. See the border attribute definition in HTML 4.01.
@DOMNameAttribute(name="border") public void setBorder(String value)
The width of the border around the table. See the border attribute definition in HTML 4.01.
@DOMNameAttribute(name="cellPadding") public String getCellPadding()
Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.01.
@DOMNameAttribute(name="cellPadding") public void setCellPadding(String value)
Specifies the horizontal and vertical space between cell content and cell borders. See the cellpadding attribute definition in HTML 4.01.
@DOMNameAttribute(name="cellSpacing") public String getCellSpacing()
Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.01.
@DOMNameAttribute(name="cellSpacing") public void setCellSpacing(String value)
Specifies the horizontal and vertical separation between cells. See the cellspacing attribute definition in HTML 4.01.
@DOMNameAttribute(name="frame") public String getFrame()
Specifies which external table borders to render. See the frame attribute definition in HTML 4.01.
@DOMNameAttribute(name="frame") public void setFrame(String value)
Specifies which external table borders to render. See the frame attribute definition in HTML 4.01.
@DOMNameAttribute(name="rules") public String getRules()
Specifies which internal table borders to render. See the rules attribute definition in HTML 4.01.
@DOMNameAttribute(name="rules") public void setRules(String value)
Specifies which internal table borders to render. See the rules attribute definition in HTML 4.01.
@DOMNameAttribute(name="summary") public String getSummary()
Description about the purpose or structure of a table. See the summary attribute definition in HTML 4.01.
@DOMNameAttribute(name="summary") public void setSummary(String value)
Description about the purpose or structure of a table. See the summary attribute definition in HTML 4.01.
@DOMNameAttribute(name="width") public String getWidth()
Specifies the desired table width. See the width attribute definition in HTML 4.01.
@DOMNameAttribute(name="width") public void setWidth(String value)
Specifies the desired table width. See the width attribute definition in HTML 4.01.
@DOMNameAttribute(name="createTHead") public Element createTHead()
Create a table header row or return an existing one.
THEAD
).@DOMNameAttribute(name="deleteTHead") public void deleteTHead()
Delete the header from the table, if one exists.
@DOMNameAttribute(name="createTFoot") public Element createTFoot()
Create a table footer row or return an existing one.
TFOOT
).@DOMNameAttribute(name="deleteTFoot") public void deleteTFoot()
Delete the footer from the table, if one exists.
@DOMNameAttribute(name="createCaption") public Element createCaption()
Create a new table caption object or return an existing one.
CAPTION
element.@DOMNameAttribute(name="deleteCaption") public void deleteCaption()
Delete the table caption, if one exists.
@DOMNameAttribute(name="insertRow") public Node insertRow(int index)
@DOMNameAttribute(name="deleteRow") public void deleteRow(int index)
Delete a table row.
index
- The index of the row to be deleted. This index starts
from 0 and is relative to the logical order (not document order) of
all the rows contained inside the table. If the index is -1 the
last row in the table is deleted.DOMException
- INDEX_SIZE_ERR: Raised if the specified index is greater than or
equal to the number of rows or if the index is a negative number
other than -1.