<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
As Edward says, there is no easy way to do this.<br>
One idea would be to set the visibility to expert:<br>
<br>
method.setVisibility(Settable.EXPERT);<br>
<br>
You would do this in attributeChanged().<br>
This would make method not visible the next time the <br>
EditParameters dialog was rendered. This is not really what<br>
you want.<br>
<br>
_Christopher<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/30/12 10:13 AM, Edward A. Lee
wrote:<br>
</div>
<blockquote cite="mid:50B8F763.8090908@eecs.berkeley.edu"
type="cite">
<br>
There is no way that I know of to do this easily...
<br>
<br>
A couple of notes:
<br>
<br>
The parameter names should match the field names.
<br>
Otherwise, you will have problems if you use the actor
<br>
in actor-oriented classes. If you want the user to see
<br>
a different name, I suggest:
<br>
<br>
enableOperation = new Parameter(this, "enableOperation");
<br>
enableOperation.setDisplayName("enableCatalogUpdate");
<br>
<br>
Edward
<br>
<br>
<br>
On 11/30/12 1:42 AM, SIGNORET Jacqueline 139795 wrote:
<br>
<blockquote type="cite">Dear All,
<br>
<br>
I am a beginner trying to develop an actor. I apologize for
asking a
<br>
silly question.
<br>
<br>
I need two parameter : the first is a Boolean and the second one
a String :
<br>
<br>
public Parameter enableOperation;
<br>
<br>
public StringParameter method;
<br>
<br>
enableOperation = new Parameter(this, "enableCatalogUpdate");
<br>
<br>
enableOperation.setTypeEquals(BaseType.BOOLEAN);
<br>
<br>
enableOperation.setExpression("false");
<br>
<br>
method = new StringParameter(this, "populationRequest");
<br>
<br>
method.setTypeEquals(BaseType.STRING);
<br>
<br>
method.setExpression("create");
<br>
<br>
method.addChoice("create");
<br>
<br>
method.addChoice("update");
<br>
<br>
I should like that the second parameter be available only when
the user
<br>
checks the first one. Is it possible to do that easily?
<br>
<br>
Many thanks for any help.
<br>
<br>
Jacqueline
<br>
<br>
<br>
<br>
_______________________________________________
<br>
Kepler-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a>
<br>
<br>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kepler-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670 </pre>
</body>
</html>