Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CompositeTable: Modifying the content of a row
CompositeTable: Modifying the content of a row [message #63494] Mon, 04 May 2009 18:27
Rich Scott is currently offline Rich ScottFriend
Messages: 63
Registered: July 2009
Member
I would like to have row in a Composite table containing either a
StyledText widget or a Canvas which is used to draw an image. I tried to
define the row as a Composite and then when a Row instance was used,
remove the old child of the Composite, add a new child of the proper type
and set the data for that new child. With this approach, the initial cells
display as desired, but table scrolling is broken. The scroll bar moves,
in small increments, in response to the mouse, but not scroll events are
fired, so the contents are not updated.

Within the row composite, the processing to set the new content (called
from the IRowContentProvider is as follows

1) remove old child from row Composite (call dispose on the old child)
2) create a new child widget based upon the data type as a child of the
row Composite
3) getParent.layout(true)

If appears to be the process of removing the old child that is affecting
scrolling. If I comment the dispose out, scrolling works, I just get an
additional child widget everytime a row is reused.

Is there a better way to be approaching the problem of different types of
row content? Any suggestions about the cause?

Thanks
Rich
Previous Topic:Textalignment in ColumnGroupHeader
Next Topic:CompositeTable: Modifying the content of a row
Goto Forum:
  


Current Time: Fri Apr 19 15:24:42 GMT 2024

Powered by FUDForum. Page generated in 0.01737 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top