|Focus listener - inconsistent behavior [message #658223]
||Mon, 07 March 2011 13:32
| No real name
Registered: October 2010
I've written an application that allows editing a property value in the properties tab.|
Upon exiting the cell, after edit, a dialog message appears.
I've noticed that there's a different behavior in the cell's value when the dialog appears, depending on the location of the cursor's focus.
The following behavior occurs when the dialog appears
If the cursor is moved and the focus is now on a different property then the original value appears in the cell instead of the new value.
However if the cursor is moved to a cell where no property is defined then the new value appears (to me this seems the correct behavior)
I think that the different behavior is somehow related to fireApplyEditorValue in CellEditor
If the method is called and the cursor is moved to a different property then the value is reverted.
If the method is called and the cursor is moved to cell that does not contain a property then the value doesn't change.
If the method is not called and the cursor is moved to a different property then the value is doesn't change.
If the method is not called and the cursor is moved to cell that does not contain a property then the value doesn't change but the dialog does not appear.
I tried to override the method but I don't see how to detect the cursor's location.
To narrow down the issue, there's a different behavior if the focus is on a line containing a property or on a line that doesn't have a property.
Any help would be appreciated, thank you.
Powered by FUDForum
. Page generated in 0.01495 seconds