Some basic properties of a selected widget, such as foreground color, font and text, can be modified in the General property view of the XUI Editor. To edit basic properties, you need to do the following steps:
In the Image field, you can choose icon file from your workspace and set it as the Composite's background image. And in the ImageAlignment filed, you can select LEFT, CENTER, and RIGHT in the dropdown list to set the position of the image.
In the Properties view of XUITable, you can use the Check attribute to add checkboxes before the rows of a table. Then you can select the checkbox to select the row.
Besides, sort function is added to XUITable. You can click the header of a table to sort the data in the column. The following screen capture illustrates the XUITable:
final XUITable xtable = (XUITable)widget; final TableViewer viewer = xtable.getTableViewer(); for (final XUITableColumn column : xtable.getColumns()) { new ColumnViewerSorter(viewer, column.getWidget()) { @Override protected int doCompare(Viewer arg0, Object arg1, Object arg2) { String dataName = column.getDataName();//Adjuect models using dataName if needed KeyedCollection kColl1 = (KeyedCollection)((KCollModel)arg1).getContent();//line 1 data KeyedCollection kColl2 = (KeyedCollection)((KCollModel)arg2).getContent();//line 2 data try { return ((String)kColl1.getValueAt(dataName)).compareTo((String)kColl2.getValueAt(dataName)); } catch (DSEObjectNotFoundException e) { return 0; } } }; }