Class TableCell
- 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.TableCell
-
- All Implemented Interfaces:
IsJSType
@JsType(isNative=true, name="HTMLTableCellElement", namespace="<global>") public final class TableCell extends BaseHtmlElement
Provides special properties and methods for manipulating the layout and presentation of table cells, either header or data cells, 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 String
getAlign()
Returns the alignment of the element's contents with respect to the surrounding context.int
getCellIndex()
Returns a value representing the cell's position in the cells collection of the <tr> the cell is contained within.int
getColSpan()
Returns the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table.String
getHeight()
Returns the length of pixel of the hinted height of the cell.int
getRowSpan()
Returns the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table.String
getVAlign()
Returns the content of the cell must be vertically aligned.String
getWidth()
Returns the number of pixels wide the cell should be drawn, if possible.boolean
isNoWrap()
Returns the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines.void
setAlign(String align)
Sets the alignment of the element's contents with respect to the surrounding context.void
setColSpan(int colSpan)
Sets the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table.void
setHeight(String height)
Sets the length of pixel of the hinted height of the cell.void
setNoWrap(boolean noWrap)
Sets the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines.void
setRowSpan(int rowSpan)
Sets the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table.void
setVAlign(String vAlign)
Sets the content of the cell must be vertically aligned.void
setWidth(String width)
Sets the number of pixels wide the cell should be drawn, if possible.-
Methods inherited from class org.pepstock.charba.client.dom.BaseHtmlElement
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, getChildElementCount, getClientHeight, getClientLeft, getClientTop, getClientWidth, getElementsByTagName, getFirstElementChild, getId, getInnerHTML, getLastElementChild, getNextElementSibling, getOuterHTML, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttributes, remove, setId, setInnerHTML
-
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, 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
-
getCellIndex
@JsProperty public int getCellIndex()
Returns a value representing the cell's position in the cells collection of the <tr> the cell is contained within.- Returns:
- a value representing the cell's position in the cells collection of the <tr> the cell is contained within
-
getColSpan
@JsProperty public int getColSpan()
Returns the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table.- Returns:
- the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table
-
setColSpan
@JsProperty public void setColSpan(int colSpan)
Sets the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table.- Parameters:
colSpan
- the value indicating the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table
-
getHeight
@JsProperty public String getHeight()
Returns the length of pixel of the hinted height of the cell.- Returns:
- the length of pixel of the hinted height of the cell
-
setHeight
@JsProperty public void setHeight(String height)
Sets the length of pixel of the hinted height of the cell.- Parameters:
height
- the length of pixel of the hinted height of the cell
-
isNoWrap
@JsProperty public boolean isNoWrap()
Returns the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines.- Returns:
- the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines
-
setNoWrap
@JsProperty public void setNoWrap(boolean noWrap)
Sets the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines.- Parameters:
noWrap
- the value reflecting the nowrap attribute and indicating if cell content can be broken in several lines
-
getRowSpan
@JsProperty public int getRowSpan()
Returns the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table.- Returns:
- the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table
-
setRowSpan
@JsProperty public void setRowSpan(int rowSpan)
Sets the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table.- Parameters:
rowSpan
- the value indicating the number of rows this cell must span; this lets a cell occupy space across multiple rows of the table
-
getVAlign
@JsProperty public String getVAlign()
Returns the content of the cell must be vertically aligned.- Returns:
- the content of the cell must be vertically aligned
-
setVAlign
@JsProperty public void setVAlign(String vAlign)
Sets the content of the cell must be vertically aligned.- Parameters:
vAlign
- the content of the cell must be vertically aligned
-
getWidth
@JsProperty public String getWidth()
Returns the number of pixels wide the cell should be drawn, if possible.- Returns:
- the number of pixels wide the cell should be drawn, if possible
-
setWidth
@JsProperty public void setWidth(String width)
Sets the number of pixels wide the cell should be drawn, if possible.- Parameters:
width
- the number of pixels wide the cell should be drawn, if possible
-
-