Question

At first, I wanted to make several columns to contain certain flags for each table row. These flags are represented by images.

Since I would have quite a few columns like these, I figured it would be awesome to have just one column containing all these flags, one after another.

Question: Can I add more than one images/icons in a table cell via a TableLabelProvider, or am I obliged to unify my icons in a single image with all these icons next to eachother.

Était-ce utile?

La solution

According to ITableLabelProvider javadoc overriding Image getColumnImage(Object element, int columnIndex) you will return a single image for the particular column. So I think you should assemble a single image from all your images and return it.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top