Skip to main content



      Home
Home » Eclipse Projects » NatTable » Firing ListEvent in NatTable
Firing ListEvent in NatTable [message #1695142] Tue, 12 May 2015 05:29 Go to next message
Eclipse UserFriend
Hi
Is there any way to fire ListEvent from the GlazedListsEventLayer.
From my observation the the combobx configured in for the column in the header recalculates the items when the list in the table changed (added,deleted etc). Is there a way to fire this event so items in the combo box are updated.
Thanks in advance

[Updated on: Tue, 12 May 2015 06:04] by Moderator

Re: Firing ListEvent in NatTable [message #1695150 is a reply to message #1695142] Tue, 12 May 2015 06:15 Go to previous messageGo to next message
Eclipse UserFriend
What do you talk about? The automatic filter combo boxes? They are related to the content in the list. So updating the list will trigger a list change event.
Re: Firing ListEvent in NatTable [message #1695152 is a reply to message #1695150] Tue, 12 May 2015 06:31 Go to previous messageGo to next message
Eclipse UserFriend
The problem is the list in the table is not changed, only object properties are changed. So in this case combobox are not updated. Hope I am explaining properly .
Re: Firing ListEvent in NatTable [message #1695159 is a reply to message #1695152] Tue, 12 May 2015 07:42 Go to previous messageGo to next message
Eclipse UserFriend
And why should the combo box update if properties change? If we are talking about the Excel-like filter row, that doesn't make sense as it inspects the content and builds the combo box based on the content.

You still didn't explain of what you are talking about in detail. Typically the GlazedLists events are transformed into NatTable events. So usually you could fire a NatTable event the data layer upwards to achieve the same.
Re: Firing ListEvent in NatTable [message #1695165 is a reply to message #1695159] Tue, 12 May 2015 08:31 Go to previous messageGo to next message
Eclipse UserFriend

I have a table with 5 column and one of the column shows object state having a combobox filter. With default item "UNCHANGED". Now I modify table row using editing support or other way. Now i want to update combobox with two items as "CHANGED" and "UNCHANGED".
So is there any way to solve this Sad

[Updated on: Tue, 12 May 2015 08:32] by Moderator

Re: Firing ListEvent in NatTable [message #1695174 is a reply to message #1695165] Tue, 12 May 2015 09:38 Go to previous message
Eclipse UserFriend
ah, so you want to update on value change rather than list change.

IIRC there is an example for the Excel like filterrow that exactly shows that. There the update is triggered via CellUpdateEvent which is fired on updating a cell value. This is what I meant on saying that you need to fire (or in that case handle) a NatTable event for updating. But of course you need to implement a custom IComboBoxDataProvider that is updated on such an event. It doesn't do that by default.
Previous Topic:Updating items in Combo box filter
Next Topic:Open dialog for cell value
Goto Forum:
  


Current Time: Fri Jun 20 22:44:54 EDT 2025

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

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

Back to the top