|Property Change listener query [message #651762]
||Tue, 01 February 2011 08:59
| Saurabh Mising name
Registered: October 2010
I have two views which have Tables in them.|
I have a toolbar icon which is like a toggle for showing a column with check boxes in the tables in the above two views.
When the toolbar icon is clicked, the tables will have to show a column with check boxes. When it is clicked again, the column with check boxes is removed.
1. I can make the two views as Property Change Listeners and when the toolbar icon is clicked, the views will listen to the click and update the table accordingly.The icon will update the property source.
2. I dont use the listener mechanism. On clicking the toolbar icon, i can check if the views which I want to respond to are visible. If they are visible, i call the method in the view to turn off or turn on the check box column.
Is there is a better way to achieve this? Which of the above two is more desirable?
Powered by FUDForum
. Page generated in 0.03164 seconds