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

Grant, do you have a SWT table data refilling snippet example handy or can
you place one into the SWT snippets section? - I still don't have seen any
such example there. E.g. say one example that creates an initial 4x4 table
with some string data entries and afterwards shows how to best dynamically
assign new data contents entries for that 4x4 table.

Thanks

-Valentino


"Grant Gayed" <ggayed@xxxxxxxxxx> schrieb im Newsbeitrag
news:avmoq6$67d$1@xxxxxxxxxxxxxxxx
> 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/sn
ippits/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/sn
ippits/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
> > >>>
> > >
> > >
>
>
>
>