Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic selective inplacelabeleEditing ? (Read 2715 times)
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
selective inplacelabeleEditing ?
Mar 9th, 2009 at 9:25am
Print Post  
Hi stoyo,

      I want to know following things;

1. How to set inplacelabelediting enabled for link while disabled for nodes.

2. How to set inplacelabelediting enabled for few links while disabled for selective links.

     Thank you.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: selective inplacelabeleEditing ?
Reply #1 - Mar 9th, 2009 at 2:27pm
Print Post  
Hi Jay,

You'd have to disable the standard inplace editing mode (call setAllowInplaceEdit(false)), and start inplace edit operations by calling DiagramView.beginEdit() in response to the item's doubleClicked event.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
Re: selective inplacelabeleEditing ?
Reply #2 - Mar 10th, 2009 at 12:40pm
Print Post  
hi stoyo,




I have set standard inplace editing mode setAllowInplaceEdit(false), and on linkDblClickEvent
I am doing it like following;


private void onLinkDblClicked(LinkEvent e)
{


DiagramLink currentLink = (DiagramLink)e.getLink();


DiagramNode source = (DiagramNode)currentLink.getOrigin();

    


String nodeId = source.getTag().toString();

    


if(nodeId .equals("1")){


    diagView.beginEdit(currentLink);


   


}

  }

but its not working...

Thank you.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: selective inplacelabeleEditing ?
Reply #3 - Mar 10th, 2009 at 12:48pm
Print Post  
beginEdit() is what the control would call internally when you double-click the link, and it's not likely that it wouldn't work. Are you sure 1 or "1" is set as a tag value for the origin node?
  
Back to top
 
IP Logged
 
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
Re: selective inplacelabeleEditing ?
Reply #4 - Mar 12th, 2009 at 11:06am
Print Post  
Hi stoyo,

          My method signature was wrong, so it was not calling. I corrected it, now it works fine.

Thank you .
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint