[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Putting Composite into TableItem ?

TableViewer provides a model component for Table.  It allows you to
provide an Object for a Table's _model_ content, but not for its literal
content (ie.- a Composite cannot be provided for direct insertion to the
table).  Under the covers it's still an SWT table.

Grant

Ivan wrote:

> hmm....howbout TableViewer ?

> Thanks

> Grant Gayed wrote:
> > No, TableItems can only contain text.  You can place other widgets on
> > table cells to make it appear that they're in the cell though.  See
> >
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/snippits/snippet88.html
> > for an example.
> > 
> > Grant
> > 
> > Ivan wrote:
> > 
> > 
> >>Hi all,
> > 
> > 
> >>   Can I put Composite into TableItem ? Is there any event that I can 
> >>use to control what i want to display in that cell ? something like 
> >>getTableCellRendererComponent event in DefaultTableCellRenderer.
> > 
> > 
> >>Thanks
> >