<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I may be confused here, but doesn't
      ChoiceStyle do this?<br>
      <br>
<a class="moz-txt-link-freetext" href="http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII8.0/ptII/doc/codeDoc/ptolemy/actor/gui/style/ChoiceStyle.html">http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII8.0/ptII/doc/codeDoc/ptolemy/actor/gui/style/ChoiceStyle.html</a><br>
      <br>
      (BTW - About dynamic comboboxes, see:
<a class="moz-txt-link-freetext" href="https://lists.eecs.berkeley.edu/sympa/arc/ptolemy-hackers/2008-07/msg00010.html">https://lists.eecs.berkeley.edu/sympa/arc/ptolemy-hackers/2008-07/msg00010.html</a>)<br>
      <br>
      <br>
      <br>
      $PTII/bin/vergil
      <a class="moz-txt-link-freetext" href="http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII8.0/ptII/doc/codeDoc/ptolemy/actor/gui/style/ChoiceStyle.html">http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII8.0/ptII/doc/codeDoc/ptolemy/actor/gui/style/ChoiceStyle.html</a>
      uses it in the AudioCapture actor:<br>
      <br>
      <br>
      <img src="cid:part1.01010401.03060001@eecs.berkeley.edu" alt=""><br>
      <br>
      SoundSpectrum.xml contains:<br>
      <blockquote type="cite"><entity name="AudioCapture"
        class="ptolemy.actor.lib.javasound.AudioCapture"><br>
                <property name="sampleRate"
        class="ptolemy.actor.parameters.SharedParameter"
        value="8000"><br>
                    <property name="style"
        class="ptolemy.actor.gui.style.ChoiceStyle"><br>
                        <property name="8000"
        class="ptolemy.kernel.util.StringAttribute" value="8000"><br>
                        </property><br>
                        <property name="11025"
        class="ptolemy.kernel.util.StringAttribute" value="11025"><br>
                        </property><br>
                        <property name="22050"
        class="ptolemy.kernel.util.StringAttribute" value="22050"><br>
                        </property><br>
                        <property name="44100"
        class="ptolemy.kernel.util.StringAttribute" value="44100"><br>
                        </property><br>
                        <property name="48000"
        class="ptolemy.kernel.util.StringAttribute" value="48000"><br>
                        </property><br>
                    </property><br>
                </property></blockquote>
      The way this appears in the model is that
      $PTII/ptolemy/actor/lib/javasound/javasound.xml has similar code
      so that in Vergil, when the actor is dragged in, the choices
      appear.<br>
      <br>
      I'm not sure how this would work in Kepler.<br>
      <br>
      _Christopher<br>
      <br>
      On 9/24/14 11:36 AM, Ben Leinfelder wrote:<br>
    </div>
    <blockquote
      cite="mid:581B3616-AFFB-4D6F-B1EC-2812AAFA1739@nceas.ucsb.edu"
      type="cite">
      <pre wrap="">Hi Michal,
For use at runtime, you can present a combobox dialog that prompts for a selection and then outputs the selected value. Take a look at the Python examples distributed with Kepler to see if this will be useful for you.
-ben

On Sep 24, 2014, at 11:28 AM, Michal Owsiak <a class="moz-txt-link-rfc2396E" href="mailto:michal.owsiak@man.poznan.pl"><michal.owsiak@man.poznan.pl></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hello Kepler team,

I am looking for something that resembles combo box inside workflow.

The idea here is that I define the parameter with values: {"a", "b", "c" } and then, I choose from one of these by right-click or click.

Question here is. Do we have something like this in Kepler.

Our approach, now, follows:

a = "some value"
b = "some value b"
c = "some completely different value"
actual_parameter = a|b|c

This way, we can determine the value of the parameter while still making everything pretty much consistent.

However, this requires to edit the value and requires numerous parameters on canvas. If you have few of them with lots of options they can consume most of the workflow canvas.

So, question is: do we have some sort of combo box as parameter inside Kepler.

Thanks for the info

Michal

-- 
Michal Owsiak <a class="moz-txt-link-rfc2396E" href="mailto:michal.owsiak@man.poznan.pl"><michal.owsiak@man.poznan.pl></a>

Institute of Bioorganic Chemistry PAS
Poznan Supercomputing and Networking Center
Noskowskiego 12/14, 61-704 Poznan, POLAND

Phone: 00 48 61 858 21 81

<a class="moz-txt-link-freetext" href="http://www.man.poznan.pl">http://www.man.poznan.pl</a>
_______________________________________________
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>
      <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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Christopher Brooks, PMP                       University of California
Academic Program Manager & Software Engineer  US Mail: 337 Cory Hall
CHESS/iCyPhy/Ptolemy/TerraSwarm               Berkeley, CA 94720-1774
<a class="moz-txt-link-abbreviated" href="mailto:cxh@eecs.berkeley.edu">cxh@eecs.berkeley.edu</a>, 707.332.0670           (Office: 545Q Cory)
</pre>
  </body>
</html>