Parse basic attributes and advanced attributes of TableColumn, and present it as described in XML files.
Function | Function description | Default value | Sample in XML |
---|---|---|---|
text | Set Text for TableColumn, and you can’t set HTML special characters directly (e.g. if you want to set ‘&’, you must set it to & ) | " " | <TableColumn text=" "/> |
editable | If it is true, TableColumn is editable; If it is false, it can’t be edited. | FALSE | <TableColumn editable="FALSE"/> |
resizable | If it is true, size of the TableColumn can be changed.If it is false, it can’t. | TRUE | <TableColumn resizable="TRUE"/> |
width | Set width for table column. | <TableColumn width="10"/> | |
movable | If it is true, the column can be moved; if it is false, it can’t. | FALSE | <TableColumn movable="TRUE"/> |
dataName | Get data from data layer according to the dataName. | NULL | <TableColumn dataName="dataname"/> |
image | Set image file for tablecolumn. Default path of the image file is located in root directory of the application, but you can set relative path in the attribute. When set image and text for TableColumn together, image is always located in the front of text. When image size is larger than label size, only part of image can be shown. | NULL | <TableColumn image="imagename"/> |