Class Table
- java.lang.Object
-
- org.pepstock.charba.client.dom.BaseEventTarget
-
- org.pepstock.charba.client.dom.BaseNode
-
- org.pepstock.charba.client.dom.BaseElement
-
- org.pepstock.charba.client.dom.BaseHtmlElement
-
- org.pepstock.charba.client.dom.elements.Table
-
- All Implemented Interfaces:
IsJSType
@JsType(isNative=true, name="HTMLTableElement", namespace="<global>") public final class Table extends BaseHtmlElementProvides special properties and methods for manipulating the layout and presentation of tables in an HTML document.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pepstock.charba.client.dom.BaseEventTarget
BaseEventTarget.EventListenerCallback
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlign()Returns the alignment of the element's contents with respect to the surrounding context.StringgetBorder()Returns the width in pixels of the border of the table.StringgetCellPadding()Returns the width in pixels of the horizontal and vertical sapce between cell content and cell borders.StringgetCellSpacing()Returns the width in pixels of the horizontal and vertical separation between cells.StringgetWidth()Returns the length in pixels or in percentage of the desired width fo the entire table.voidsetAlign(String align)Sets the alignment of the element's contents with respect to the surrounding context.voidsetBorder(String border)Sets the width in pixels of the border of the table.voidsetCellPadding(String cellPadding)Sets the width in pixels of the horizontal and vertical sapce between cell content and cell borders.voidsetCellSpacing(String cellSpacing)Sets the width in pixels of the horizontal and vertical separation between cells.voidsetWidth(String width)Sets the length in pixels or in percentage of the desired width fo the entire table.-
Methods inherited from class org.pepstock.charba.client.dom.BaseHtmlElement
blur, focus, getAbsoluteLeft, getAbsoluteTop, getInnerText, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getParentHtmlElement, getScrollingElement, getStyle, getTabIndex, removeFromParent, setInnerText, setTabIndex
-
Methods inherited from class org.pepstock.charba.client.dom.BaseElement
getAttributes, getBoundingClientRect, getChildElementCount, getClientHeight, getClientLeft, getClientTop, getClientWidth, getElementsByTagName, getFirstElementChild, getId, getInnerHTML, getLastElementChild, getNextElementSibling, getOuterHTML, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttributes, hasPointerCapture, releasePointerCapture, remove, setId, setInnerHTML, setPointerCapture
-
Methods inherited from class org.pepstock.charba.client.dom.BaseNode
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, removeAllChildren, removeChild, setNodeValue, setTextContent
-
Methods inherited from class org.pepstock.charba.client.dom.BaseEventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
-
-
-
-
Field Detail
-
TAG
@JsOverlay public static final String TAG
The tag for this element.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAlign
@JsProperty public String getAlign()
Returns the alignment of the element's contents with respect to the surrounding context.- Returns:
- the alignment of the element's contents with respect to the surrounding context
-
setAlign
@JsProperty public void setAlign(String align)
Sets the alignment of the element's contents with respect to the surrounding context.- Parameters:
align- the alignment of the element's contents with respect to the surrounding context
-
getBorder
@JsProperty public String getBorder()
Returns the width in pixels of the border of the table.- Returns:
- the width in pixels of the border of the table
-
setBorder
@JsProperty public void setBorder(String border)
Sets the width in pixels of the border of the table.- Parameters:
border- the width in pixels of the border of the table
-
getCellPadding
@JsProperty public String getCellPadding()
Returns the width in pixels of the horizontal and vertical sapce between cell content and cell borders.- Returns:
- the width in pixels of the horizontal and vertical sapce between cell content and cell borders
-
setCellPadding
@JsProperty public void setCellPadding(String cellPadding)
Sets the width in pixels of the horizontal and vertical sapce between cell content and cell borders.- Parameters:
cellPadding- the width in pixels of the horizontal and vertical sapce between cell content and cell borders
-
getCellSpacing
@JsProperty public String getCellSpacing()
Returns the width in pixels of the horizontal and vertical separation between cells.- Returns:
- the width in pixels of the horizontal and vertical separation between cells
-
setCellSpacing
@JsProperty public void setCellSpacing(String cellSpacing)
Sets the width in pixels of the horizontal and vertical separation between cells.- Parameters:
cellSpacing- the width in pixels of the horizontal and vertical separation between cells
-
getWidth
@JsProperty public String getWidth()
Returns the length in pixels or in percentage of the desired width fo the entire table.- Returns:
- the length in pixels or in percentage of the desired width fo the entire table
-
setWidth
@JsProperty public void setWidth(String width)
Sets the length in pixels or in percentage of the desired width fo the entire table.- Parameters:
width- the length in pixels or in percentage of the desired width fo the entire table
-
-