The JaxcentTable type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

  Member Description
AddDeleteButtons(Int32, Int32, String, String)
Add Delete button(s) to table rows. Row deletes can be detected by overriding the onRowDeleted method.
AddJavaScriptVerification(String, String, array<Object>[]()[][])
Add JavaScript verification code on a handler. If the event is being over-ridden, the verification code is called first. If it does not return a value of true, or if it fails, the Java event handler is not called.

This method can be used to reduct client-server trips by doing some of the verification on the client side before calling the event handler.

The arguments array can contain strings, Integers, Doubles, strings, bool, other Jaxcent HTML Elements (or "this"), or can be null. If the argument array is not null, the "verifier" must not contain the parentheses character. The characters "( )" containing any arguments are appended to the "verifier". The array specifies the list of parameters. If the argument array is null, the "verifier" is evaluated as is, as an expression. To call a function with no args, use the form addJavaScriptVerification( "click", "myCheckFunction()", null );

(Inherited from JaxcentObject.)
AddRow(array<String>[]()[][])
Add a row at the end of the table.The HTML content of the cells of the row are provided as a string array.
AddRow(array<String>[]()[][], array<array<String>[]()[][]>[]()[][], array<array<String>[]()[][]>[]()[][])
Add a row at the end of the table, and set attributes of each new cell as specified. The attribute and value arrays are two dimensional. Their first dimension must be the same length as the "innerHTML" array. Their second dimensions must match with each other. To set style values, specify attribute strings starting with "style.", e.g. "style.color".
CheckNodeExists(RelationType)
Check if a node exists with the specified relationship. Relationship can be "next sibling", "previous sibling", "parent node", "first child", or "last child". Node can be retrieved as a generic HtmlElement.
(Inherited from JaxcentHtmlBase.)
DeleteAllRows()()()()
Remove all Rows. Useful before inserting new rows.
DeleteElement()()()()
Delete element from DOM.
(Inherited from JaxcentHtmlBase.)
DeleteFromBottom(Int32)
Remove N rows from bottom. If N is negative, keep -N (abs N) rows, remove rest from bottom.
DeleteFromTop(Int32)
Remove N rows from top. If N is negative, keep -N (abs N) rows, remove rest from top.
DeleteRow(Int32)
Delete the row at the specified index.
DisableCellEditing(Int32, Int32, Int32, Int32)
Disable table cells in-place editing.
EnableCellEditing(Int32, Int32, Int32, Int32, Boolean, Boolean, String)
Make table cells editable in-place. Click events cannot be received on table cells that have been made editable. Edits are completed by the ENTER key, cancelled by the ESC key. Completed cell edits can be detected by overriding the onCellEdited method.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetAttribute(String)
Retrieve the specified attribute.
(Inherited from JaxcentHtmlBase.)
GetCellContent(Int32, Int32)
Retrieve HTML content of a cell. Specify -1 for last row or cell.
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetJaxcentPage()()()()
Get Jaxcent page that this object is connected to.
(Inherited from JaxcentObject.)
GetNumRows()()()()
Returns the number of rows in the table.
GetProperty(String)
Get the value of a a property.
(Inherited from JaxcentObject.)
GetRow(Int32)
Return the row at the specified index.
GetRowContent(Int32, Int32, Int32)
Retrieve HTML content of a row, starting at a given cellIndex and for a given number of cells. Specify cellIndex 0 and numCells -1 to retrieve entire row.
GetStyle(String)
Retrieve the specified style element.
(Inherited from JaxcentHtmlBase.)
GetTableContent()()()()
Retrieve contents of the entire table.
GetTableContent(Int32, Int32, Int32, array<Int32>[]()[][])
Retrieve HTML content of multiple rows, starting at a given cellIndex and for the specified number of cells from each row. numCells can be null, indicating retrieve from the rest of the row. Otherwise, numCells can be an array of size "numRows", containing the number of cells to be retrieved from each row. Specify numRows -1 to retrieve until end of table.
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Hide()()()()
Shortcut for setStyle( "display", "none" );
(Inherited from JaxcentHtmlBase.)
IncludeInFormData(String)
Mark table for its data being sent along with form data. This will cause the table data to be included in the data map, as an array of arrays of strings. The data will be saved using the specified "name" as key. The name should not conflict with any form names.

The data will also be saved in the session, if auto-session-data is set. However, the "includeInFormData" setting will not be saved and the table will not be automatically populated at next visit. Resetting the "includeInFormData" setting, as well as populating the table from the session, can be done in the page constructor.

InsertAfter(JaxcentHtmlBase)
Insert element just after target element. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtBeginning()()()()
Insert element at document beginning. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtBeginning(JaxcentHtmlBase)
Insert element inside target element, at beginning. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtEnd()()()()
Insert element at document end. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertAtEnd(JaxcentHtmlBase)
Insert element inside target element, at end. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertBefore(JaxcentHtmlBase)
Insert element just before target element. This element could have been constructed using createNew, or be an existing element.
(Inherited from JaxcentHtmlBase.)
InsertRow(Int32, array<String>[]()[][])
Insert a row in the table at the specified index. If index is -1, the row is inserted at the end. The HTML content of the cells of the row are provided as a string array. Note that the HTML content is "inner" HTML, so the beginning and ending TD tags must not be part of the html.
InsertRow(Int32, array<String>[]()[][], array<array<String>[]()[][]>[]()[][], array<array<String>[]()[][]>[]()[][])
Insert a row in the table at the specified index, and set attributes of each new cell as specified. The attribute and value arrays are two dimensional. Their first dimension must be the same length as the "innerHTML" array. Their second dimensions must match with each other. To set style values, specify attribute strings starting with "style.", e.g. "style.color".
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
SetAttribute(String, String)
Set the specified attribute.
(Inherited from JaxcentHtmlBase.)
SetCellContent(Int32, Int32, String)
Set HTML content of a cell. Table will be grown if required. Specify rowIndex/cellIndex as -1 to insert past last row/cell.
SetCellStyles(Int32, Int32, Int32, Int32, String)
Set cell STYLE attributes of specified cells.
SetCssClass(String)
Sets the CSS class of an element.
(Inherited from JaxcentHtmlBase.)
SetDraggable(Boolean)
Call with true argument to enable element as a drag-and-drop source. Call with false to disable dragging. The target element must have "onDragDrop" overridden.
(Inherited from JaxcentHtmlBase.)
SetEnabled(Boolean)
Shortcut for setProperty( "disabled", ! enabled );
(Inherited from JaxcentHtmlBase.)
SetProperty(String, Boolean)
Set a property to the specified bool value.
(Inherited from JaxcentObject.)
SetProperty(String, Color)
Set a property to the specified System.Drawing.Color value.
(Inherited from JaxcentObject.)
SetProperty(String, Int32)
Set a property to the specified int value.
(Inherited from JaxcentObject.)
SetProperty(String, String)
Set a property to the specified value.
(Inherited from JaxcentObject.)
SetRowContent(Int32, Int32, array<String>[]()[][], TableUpdateStyles)
Replace HTML content of a row, starting at a given cell index. Table will be grown if required. Specify rowIndex -1 to insert after last row. Specify firstCellIndex as -1 to new cells at end of rows.
SetRowStyle(Int32, TableUpdateStyles)
Apply a TableUpdateStyle to a table row at a given index. The row must exist. Note that since it is an existing row, any previously applied styles will continue to apply unless changed.
SetStyle(String, Boolean)
Set the specified bool style element.
(Inherited from JaxcentHtmlBase.)
SetStyle(String, Color)
Set the specified style element from a java.awt.Color value.
(Inherited from JaxcentHtmlBase.)
SetStyle(String, Int32)
Set the specified style element from an int.
(Inherited from JaxcentHtmlBase.)
SetStyle(String, String)
Set the specified style element.
(Inherited from JaxcentHtmlBase.)
SetTableContent(TableDataSource)
Replace table contents with the contents of a TableDataSource. Table is trimmed (grown or shrunk as necessary.) Note that this method only updates the data, and does not use the column names from the DataTable. If needed, the column headers should be set up as required, at the beginning.
SetTableContent(Int32, Int32, Boolean, array<array<String>[]()[][]>[]()[][], TableUpdateStyles)
Replace HTML content of table, starting at a given row/cell index. Table will be grown if required. Specify firstRowIndex -1 to insert after last row. Specify firstCellIndex as -1 to insert new cells at end of rows.
SetVisible(Boolean)
Shortcut for setStyle( "visibility", "visible" or "hidden" );
(Inherited from JaxcentHtmlBase.)
Show()()()()
Shortcut for setStyle( "display", "inline" ); except for P, DIV, FORM, BODY, OL, UL, HR, TABLE etc where it is a shortcut for setStyle( "display", "block" );
(Inherited from JaxcentHtmlBase.)
StartCellEdit(Int32, Int32)
If cell in-place editing has been enabled on a cell, start in-place cell editing programmatically (instead of upon user click or double-click.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)

See Also