문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top