[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Putting Composite into TableItem ?
|
- From: ggayed@xxxxxxxxxx (Grant Gayed)
- Date: Fri, 10 Jan 2003 15:28:06 +0000 (UTC)
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
Ivan,
You can display a Combo in a cell using the same approach as shown in
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/snippits/snippet88.html
However, the literal content of a table cell cannot be a Combo, it can
only be a string.
Grant
Ivan wrote:
> Thanks Grant,
> hmm... is there anyway that i can put a combobox into a cell ?
> Thanks again
> Grant Gayed wrote:
> > 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
> >>>
> >
> >