Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) ItemModifying and BehaviorType (Read 11428 times)
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Re: ItemModifying and BehaviorType
Reply #15 - Sep 19th, 2007 at 1:01am
Print Post  
Hi Stoyan,

This method works for me, thanks.

There is only one small problem though.
I think the interaction.cancel must be guarded against null:

[code]
if (interaction != null) {
            interaction.cancel(this);
}
[/code]

There is no way I can check if there is an interaction, and sometimes I got a null pointer exception.

Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ItemModifying and BehaviorType
Reply #16 - Sep 19th, 2007 at 6:33am
Print Post  
Hi Praveen,

Ok you are right. We call cancelDrag only when interaction != null, but since the method is now public, we'll add that guard condition to the method.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint