A table widget that works like a spread sheet. It can be editable at run time, for example insert or delete a row or column, modify cell text. It is designed to be used in scripts.
The table widget cannot connect to PVs directly, but this can be realized by using script. See example below:
Above examples can be found at BOY Examples->widgets->4_5_Table.opi
Editable
property is true, every cell text of the table can be directly modified at run time by
clicking on it.
With its context menu, you are able to
Enabled
property.from array import array from java.lang import String table = widget.getTable() table.setColumnCellEditorData(2,array(String, ["apple","banana","orange"]))If the cell editor type is CHECKBOX, the boolean strings can also be set from script, for exmaple:
from array import array from java.lang import String table = widget.getTable() table.setColumnCellEditorData(2,array(String, ["On", "Off"]))If the cell editor type is CUSTOMIZED, user should set the cell editor using:
widget.getTable().setColumnCellEditor(2, customizedCellEditor)
public SpreadSheetTable getTable()
public void setAllowedHeaders(String[] headers)
headers
- The allowed headers.