Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Scout/Concepts/Table
The Scout documentation has been moved to https://eclipsescout.github.io/.
A table is data structure that can be represented in a The Scout documentation has been moved to https://eclipsescout.github.io/. or a The Scout documentation has been moved to https://eclipsescout.github.io/..
- implements: The Scout documentation has been moved to https://eclipsescout.github.io/.
- extends: The Scout documentation has been moved to https://eclipsescout.github.io/.
Contents
Description
Table can contains a set of structured data: the structure of the entity is defined by the The Scout documentation has been moved to https://eclipsescout.github.io/.. Each entity contained in the table is a The Scout documentation has been moved to https://eclipsescout.github.io/.. At the intersection of a column and a row is a The Scout documentation has been moved to https://eclipsescout.github.io/.. A Cell describes how the value is represented (displayed text, colors, style, icon...).
Example
magine the you want to represent Persons that are structured as followed:
- Name (String)
- First name (String)
- Age (Integer)
- Date of birth (Date)
A such table needs to contains 4 columns :
- NameColumn a The Scout documentation has been moved to https://eclipsescout.github.io/.
- FirstNameColumn a The Scout documentation has been moved to https://eclipsescout.github.io/.
- AgeColumn a The Scout documentation has been moved to https://eclipsescout.github.io/.
- BirthColumn a The Scout documentation has been moved to https://eclipsescout.github.io/.
Access to the data
To access a value of a table, the common pattern is to go throw the column. For example if you want to access the age of a person, at a precise row index r, the code is:
private Integer getAgeOfPersonAtRow(int r){ return getTable().getAgeColumn().getValue(r); }
TODO
Load the data
in the page or in the field
add row
Display/Hide the data
Table provides support to sort, to filter how the content is represented.
Selection
Table also manages selection.
properties
Menu
Table can also contains Menus, to provide a possibility to trigger some actions (Menus are displayed in the context menu of the table).
Checkable
Summary Cell, Primary Columns
See Also
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.
- The Scout documentation has been moved to https://eclipsescout.github.io/.