The preferred and minimum sizes are that of the children when laid out in columns and rows. @author Nathan Sweet
Block 0: allocation table Block 1: fragment table Block 2: table definition 0 - store data 1024 - table data 1024 - index pointers 2048 - CREATE text Block 3: first data
The mappings corresponding to a given row key may be viewed as a {@link Map} whose keys are the columns. The reverse is also available, associating acolumn with a row key / value map. Note that, in some implementations, data access by column key may have fewer supported operations or worse performance than data access by row key.
The methods returning collections or maps always return views of the underlying table. Updating the table can change the contents of those collections, and updating the collections will change the table.
All methods that modify the table are optional, and the views returned by the table may or may not be modifiable. When modification isn't supported, those methods will throw an {@link UnsupportedOperationException}. @author Jared Levy @param < R> the type of the table row keys @param < C> the type of the table column keys @param < V> the type of the mapped values @since Guava release 07
header | ||
---|---|---|
example cell with colspan 1 and rowspan 2 | 1.1 | 2.1 |
1.2 | 2.2 | |
cell test1 | big cell | |
cell test2 |
Table
is used for representing data or components in a pageable and selectable table.
Scalability of the Table is largely dictated by the container. A table does not have a limit for the number of items and is just as fast with hundreds of thousands of items as with just a few. The current GWT implementation with scrolling however limits the number of rows to around 500000, depending on the browser and the pixel height of rows.
Components in a Table will not have their caption nor icon rendered.
@author Vaadin Ltd. @since 3.0getTable
method will return null
.
@author Jim Menard, jimm@io.com
@see Column
@see DataSource
Copyright (c) Xoetrope Ltd., 2002-2006
$Revision: 1.2 $
License: see License.txt
public class CustomersPage extends BorderPage { public Table table = new Table(); public ActionLink deleteLink = new ActionLink("Delete", this, "onDeleteClick"); public CustomersPage() { table.setClass(Table.CLASS_ITS); table.setPageSize(4); table.setShowBanner(true); table.setSortable(true); table.addColumn(new Column("id")); table.addColumn(new Column("name")); Column column = new Column("email"); column.setAutolink(true); table.addColumn(column); table.addColumn(new Column("investments")); column = new Column("Action"); column.setDecorator(new LinkDecorator(table, deleteLink, "id")); column.setSortable(false); table.addColumn(column); } public boolean onDeleteClick() { Integer id = deleteLink.getValueInteger(); getCustomerService().deleteCustomer(id); return true; } public void onRender() { List customers = getCustomerService().getCustomersSortedByName(); table.setRowList(customers); } }
<html> <head> $headElements </head> <body> $table $jsElements </body> </html>
public LineItemsPage() { Table table = new Table("table"); table.setClass(Table.CLASS_SIMPLE); .. }An alternative method of specifying the table class to use globally for your application is to define a table-default-class message property in your applications click-pages.properties file. For example:
table-default-class=blue2
public CompanyPage extends BorderPage { // companyId is the criteria used to limit Table rows to clients from // the specified company. This variable could be selected from a drop // down list or similar means. public String companyId; public Table table = new Table(); public onInit() { // Set the companyId on the table's controlLink. If you view the // output rendered by Table note that the companyId parameter // is rendered for each Paging and Sorting link. table.getControlLink().setParameter("companyId", companyId); } ... public void onRender() { // Select only clients for the specified companyId List rowList = getCompanyDao().getCompanyClients(companyId); table.setRowList(rowList); } }
Table
...
Abstract description of a table.
@author Jochen WiedmannAn fo:table object in XSL-FO.
Note the inclusion of {@link CommonMarginInlineOptimumPa} in the "extends"list. The "space-start" and "space-end" properties are not included in the list of properties that apply to fo:table. However, "margin-left", "margin-right", "margin-top", and "margin-bottom" are included in that list, and, in the aXSL normalizations scheme, these can map to "space-start" and "space-end". Therefore, access to those properties must be made available to an fo:table.
@see "XSL-FO Recommendation 1.0, Section 6.7.3"There are 2 aspects to a table. The first is the internal representation, provided here. This has a state. The second aspect to the table is its external (datastore) representation. This reflects whether it exists, or whether it has been deleted, etc.
This interface provides some methods for mapping from the internal representation to the external representation. These are the methods
The following features are supported:
Row.State.SELECT
state set }Date: Sep 29, 2005 @author Rakesh Kalra
There are 2 aspects to a table. The first is the internal representation, provided here. This has a state. The second aspect to the table is its external (datastore) representation. This reflects whether it exists, or whether it has been deleted, etc.
This interface provides some methods for mapping from the internal representation to the external representation. These are the methods
Table provides methods to get/add/delete/modify table column/row/cell.
The Table Element works by calling newRow and then adding cells or headings.
Notes
Tables are implemented by nesting a cell Block within a row Block within the table which is also a Block (see nest() on class Composite). Once a row and cell have been created, calling add or attributes on the table actually calls the cell.
@see org.openqa.jetty.html.Element
Record
s. Users can add, search, replace and remove records as well as read table from file and write it to a file. Different records in the table can have different attributes, however if the search for record with certain value of given attribute is required, then the attribute must be present in all the records. Single attribute search is supported, i.e. if the key is naturally represented by more than one attribute, there must be an attribute which contains bothe the attributes in some way. The table can be read and written from and to input and output stream using an implementation of TableParser
class.
@author Logica Mobile Networks SMPP Open Source Team
@version $Revision: 1.2 $
@see Record
@see Attribute
@see TableParser
@see BasicTableParser
assertTrue(table.contentEquals(new String[]{ {"Bart", "Simpson"}, {"Marge", "Simpson"} }));
The conversion between the values (Strings) given in the test and the values actually displayed by the table renderer is performed by a dedicated {@link TableCellValueConverter}, which retrieves the graphical component that draws the table cells and determines the displayed value accordingly. A {@link DefaultTableCellValueConverter} is used by default by the Table component.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|