-
Notifications
You must be signed in to change notification settings - Fork 115
Display Builder Table Compatibility
Kay Kasemir edited this page Sep 30, 2020
·
4 revisions
The Table widget is somewhat different from all other widgets because simply connecting it to a PV is rarely sufficient.
As a PV, it only accepts a pva:... PV Access NTTable type of PV, which at this time is not in common use.
The primary use case is based on a script to populate the widget, and maybe also to read the content of the widget and then write it to PVs.
For key API, check the TableWidget javadoc included in the online help.
Some differences from the BOY version:
| BOY | Display Builder |
|---|---|
| table = widget.getTable() | widget |
| table.setColumnHeaders() | widget.setHeaders(list of headers) |
| table.setContent() | widget.setValue(list of rows) |
| table.setCellText(..) | widget.setCellValue(row, col, text) |
| table.setCellBackground(..) | widget.setCellColor(row, col, WidgetColor) |
| table.getContent() | widget.getValue() |