i have two issue need you address [message #699773] |
Fri, 22 July 2011 09:37 |
Van Messages: 3 Registered: July 2011 |
Junior Member |
|
|
the first issue,i have some application that wrote by swing/awt,now we need to migrate it to swt,and in previous version we use the TableModel,as you know this class support TableModelListener that can listen some events such as TableModelEvent.UPDATE,TableModelEvent.INSERT,TableModelEvent.DELETE
but in swt there is no appropriate class can replace the TableModel class,and the Table class in swt apparently don't support any listener that can listen the events previously mentioned.so far,i don't find any appropriate approach
the second issue,how can i display the html text in swt and if there is any composite that was same like the JEditorPane of swing
could anybody give me some constructive proposal about the two issue
thx~
|
|
|
Re: i have two issue need you address [message #700314 is a reply to message #699773] |
Sat, 23 July 2011 07:11 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Am 22.07.11 11:37, schrieb Van:
> the first issue,i have some application that wrote by swing/awt,now we
> need to migrate it to swt,and in previous version we use the
> TableModel,as you know this class support TableModelListener that can
> listen some events such as
> TableModelEvent.UPDATE,TableModelEvent.INSERT,TableModelEvent.DELETE
> but in swt there is no appropriate class can replace the TableModel
> class,and the Table class in swt apparently don't support any listener
> that can listen the events previously mentioned.so far,i don't find any
> appropriate approach
You should use a TableViewer and if you combine that with Eclipse
Databinding which has an IObservableList (e.g. WritableList) and an
ObservableListContentProvider the table is always in sync with your model.
>
> the second issue,how can i display the html text in swt and if there is
> any composite that was same like the JEditorPane of swing
>
The Forms-Component has a control that is able to display HTML but I
don't exactly remember its name.
> could anybody give me some constructive proposal about the two issue
> thx~
|
|
|
|
|
Re: i have two issue need you address [message #701451 is a reply to message #701427] |
Mon, 25 July 2011 06:12 |
Van Messages: 3 Registered: July 2011 |
Junior Member |
|
|
it seems that the Forms-Component(if you indicate the Eclipse-Forms?) just can display the text with HTML-like tags,and it can't process the text's font and color like html did,and many HTML tags the Eclipse-Forms can't parse.i don't know if you have any good advice for me?
now,i will try the browser-widget you mentioned.
thx.
[Updated on: Mon, 25 July 2011 08:55] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04015 seconds