Overloading a client plugin (IScriptObject) method

Questions and answers on developing, deploying and using plugins and JavaBeans

Overloading a client plugin (IScriptObject) method

Postby sdevlin » Tue Feb 01, 2005 7:41 pm

Hello,

What is the best way to overload a js_method in an implementation of IScriptObject so that its methods are properly documented in the method editor?

Only one version of the method shows up in the method editor. Looking at the dialog plugin I can see that these methods must be overloaded because of the optional parameters. But in this case they share the same first few parameters. What can i do if my overloaded methods share no common parameters?

Thanks,
Sean
sdevlin
 
Posts: 125
Joined: Tue Apr 13, 2004 3:33 am

Postby IT2Be » Tue Feb 01, 2005 7:46 pm

You mean 'how do I show it to the user' I presume?

1. Why do you want that in the first place?
2. Be carefull, since javascript doesn't deal with all variable types you can create errors!

The only way I can think of is create a very clear tooltip/sample...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 37 guests

cron