On 20/10/2010 00:49, Jane Ren wrote:
> Hi,

Hello

> I would like to write code to add input ports for 3 different types of 
> values, string, file and boolean.
>
> I tried the following
> addInput(pn, 0, false, null, String.class);
> addInput(pn, 0, false, null, File.class);
> addInput(pn, 0, false, null, Boolean.class);
>
> But in all 3 cases, when the user right clicks on the node to add a constant 
> value, the textfield asks the user to enter a string.
> I was hoping File.class would create a file browse button and Boolean.class 
> would create maybe a check box.
> So does Taverna have this kind of feature?

No.  At the moment you can only set a constant String value.  There is a 
related issue in out bug tracking system that requests being able to 
specify list constants.  I have added another issue for what you want.

The two issues are:

http://www.mygrid.org.uk/dev/issues/browse/T2-1656 and
http://www.mygrid.org.uk/dev/issues/browse/T2-330

> Thanks
> Jane

Alan

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to