@Type(tagName="table", isInnerHTML=false) public class Table extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Table.Frame
Specifies which parts of the outside borders that should be visible
|
static class |
Table.Rules
Specifies which parts of the inside borders that should be visible
|
Constructor and Description |
---|
Table() |
Modifier and Type | Method and Description |
---|---|
Table |
addColumn()
Append column with empty cell to table
|
TableRow |
addRow()
Append empty row to table
|
void |
addRow(TableRow tr)
Append row to table
|
Table |
clear()
Clears all elements in the table: rows, columns, caption
|
int |
columns()
It is calculating count of columns in each row.
|
void |
drawAttributes() |
java.lang.Integer |
getBorder()
Specifies the width of the borders around a table in pixels
|
TableCell |
getCell(int row,
int column)
Returns table cell at given row and column
|
java.lang.Integer |
getCellpadding()
Specifies the space between the cell wall and the cell content in pixels
|
java.lang.Integer |
getCellspacing()
Specifies the space between cells
|
Table.Frame |
getFrame()
Specifies which parts of the outside borders that should be visible
|
TableRow |
getRow(int row)
Return row element at given row number
|
Table.Rules |
getRules()
Specifies which parts of the inside borders that should be visible
|
Length |
getWidth()
Specifies the width of a table in pixels or %
|
Table |
insertColumn(int column)
Insert table column with empty cell at given index
|
TableRow |
insertRow(int row)
Insert empty table row at given index
|
Table |
removeCell(int row,
int column)
Remove table cell at given row and column
|
Table |
removeCell(TableCell tableCell)
Remove cell instance from table
|
Table |
removeColumn(int column)
Removes column from table
|
Table |
removeRow(int row)
Removes row from table at given index
|
int |
rows()
Specifies number of rows in the table
|
Table |
setBorder(java.lang.Integer border)
Set "border" property and if element was draw call script at browser.
|
TableCell |
setCell(int row,
int column)
Set new instance of empty cell at table in given row and column
|
Table |
setCell(int row,
int column,
TableCell tableCell)
Set cell at table in given row and column
|
Table |
setCellpadding(java.lang.Integer cellpadding)
Set "cellpadding" property and if element was draw call script at
browser.
|
Table |
setCellspacing(java.lang.Integer cellspacing)
Set "cellspacing" property and if element was draw call script at
browser.
|
Table |
setFrame(Table.Frame frame)
Set "frame" property and if element was draw call script at browser.
|
Table |
setRow(int row,
TableRow tr)
Set/replace row at table in given row and column
|
Table |
setRules(Table.Rules rules)
Set "rules" property and if element was draw call script at browser.
|
Table |
setWidth(Length width)
Set "width" property and if element was draw call script at browser.
|
add, addAllDropTargets, addDropTarget, addListener, addStyleClass, alert, assignText, callBack, callBack, callScript, clearDropTargets, clearElements, clearElements, confirm, confirm, drawAttribute, findElement, findParent, findViewElements, fireEvent, fireEvent, fireEventOnView, fireEventOnView, firePropertyChange, focus, getApplication, getBundle, getBundleObject, getCustomDragMove, getDir, getDragDropEventsOptions, getDropTargets, getElements, getElements, getEventListeners, getId, getLang, getParent, getStyle, getStyleClass, getTabIndex, getText, getTitle, insert, isChildrenSetChanged, isContenteditable, isDraggable, isDrawn, isEscapeText, isListening, isListening, isListening, print, prompt, prompt, remove, remove, removeAttribute, removeDropTarget, removeListener, removeListener, removeParent, removeStyleClass, replace, replaceStyleClass, retrieveListeners, retrieveListeners, setChangeChildrenSet, setContenteditable, setCustomDragMove, setDir, setDragDropEventsOptions, setDraggable, setDrawn, setEscapeText, setLang, setParent, setStyle, setStyleClass, setTabIndex, setText, setTitle, transformTagName
@InitializeAttributes public void drawAttributes()
public TableCell getCell(int row, int column)
row
- numbercolumn
- numberpublic Table setCell(int row, int column, TableCell tableCell)
row
- numbercolumn
- numbertableCell
- to setpublic TableCell setCell(int row, int column)
row
- numbercolumn
- numberpublic TableRow getRow(int row)
row
- numberpublic Table setRow(int row, TableRow tr)
row
- numbertr
- row elementpublic void addRow(TableRow tr)
tr
- row elementpublic TableRow addRow()
public Table removeCell(int row, int column)
row
- numbercolumn
- numberpublic Table removeCell(TableCell tableCell)
tableCell
- element instancepublic TableRow insertRow(int row)
row
- numberpublic Table insertColumn(int column)
column
- numberpublic Table removeRow(int row)
row
- numberpublic Table addColumn()
public Table removeColumn(int column)
column
- The column to removepublic int rows()
public int columns()
public Table clear()
public java.lang.Integer getBorder()
public Table setBorder(java.lang.Integer border)
border
- the border to set. If is null call removeAttribute of element
at browser. If not null call set "border" property of element
at browser.public java.lang.Integer getCellpadding()
public Table setCellpadding(java.lang.Integer cellpadding)
cellpadding
- the cellpadding to set. If is null call removeAttribute of
element at browser. If not null call set "cellpadding"
property of element at browser.public java.lang.Integer getCellspacing()
public Table setCellspacing(java.lang.Integer cellspacing)
cellspacing
- the cellspacing to set. If is null call removeAttribute of
element at browser. If not null call set "cellspacing"
property of element at browser.public Table.Frame getFrame()
public Table setFrame(Table.Frame frame)
frame
- the frame to set. If is null call removeAttribute of element
at browser. If not null call set "frame" property of element
at browser.public Table.Rules getRules()
public Table setRules(Table.Rules rules)
rules
- the rules to set. If is null call removeAttribute of element
at browser. If not null call set "rules" property of element
at browser.public Length getWidth()