Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
package com.codename1.ui.table
Tables of data.
DataGrid shows a TableModel, or a tree of rows from a TreeTableModel,
for data sets of any size: it paints only the rows on screen, and sorts,
filters and groups by moving row numbers rather than data. Its columns are
GridColumns, painted by a GridCellRenderer and edited in place by a
GridCellEditor.
Table lays out a component for each cell with TableLayout, which suits a
small form arranged in rows and columns.
Types
class AbstractTableModel | This abstract class extends table model with various capabilities such as type information etc. |
class DataGrid | A grid of data for large sets: a TableModel or a tree of rows, with sorting, filtering, grouping, frozen columns, resizable and movable columns, selection, keyboard navigation and editing in place. |
class DefaultGridCellEditor | The editor a DataGrid uses for a column that has none: a text field for text and numbers, a date picker for dates and a picker of the column’s choices. |
class DefaultGridCellRenderer | The renderer a DataGrid uses for a column that has none: text aligned by kind, a check box for a boolean, and an image scaled to the row. |
class DefaultTableModel | A default implementation of the table model based on a two dimensional array. |
class GridAggregate | What a group row of a DataGrid shows in a column: the values of the group’s rows folded into one. |
class GridCell | One cell of a DataGrid as a renderer or an editor sees it. |
interface GridCellEditor | Edits the cells of a DataGrid column. |
interface GridCellPicker | Takes the taps on the cells of a grid while an editor wants them, the way a spreadsheet puts a reference into the formula being typed when a cell is tapped. |
interface GridCellRenderer | Paints the cells of a DataGrid column. |
class GridColumn | One column of a DataGrid: which column of the model it shows, its title and width, and how its values are painted, compared and edited. |
interface GridFilter | Decides which rows of a DataGrid are shown. |
interface GridFormatter | Turns the values of a GridColumn into the text a cell shows, and the text typed into an editor back into a value. |
class GridRow | One row of the data under a DataGrid, as a filter sees it: a row of a TableModel or a node of a TreeTableModel. |
class GridSorter | The sort a DataGrid orders its rows with, for any other list of rows. |
class SortableTableModel | A proxy that wraps the table model providing sorting API that can be leveraged by the table |
class Table | The Table class represents a grid of data that can be used for rendering a grid of components/labels. |
class TableLayout | TableLayout is a very elaborate constraint based layout manager that can arrange elements in rows/columns while defining constraints to control complex behavior such as spanning, alignment/weight etc. |
interface TableModel | The table and table model class are complimentry classes allowing the quick construction of tabular data controls. |
class TreeRows | The open nodes of a TreeTableModel, flattened into rows in the order they are shown: the row engine of a tree DataGrid, for any other view of a tree that needs rows. |
interface TreeTableModel | The data of a tree grid: a TreeModel whose every node also has a value in each column. |