GithubHelp home page GithubHelp logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 19, 2024
What are you talking about prompt? I'm confused by what you mean.

Original comment by [email protected] on 11 May 2012 at 2:24

from alternate-java-bridge-library.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 19, 2024
Prompt as in the text that is first displayed on the dropdown before something 
is chosen.  after it is chosen, i tell it to set text (sorry should have said 
text instead of prompt) to the choice the user made.

before they choose anything though, it should be using what i have chosen in 
the GLE to be the text something like "please pick a choice" should show.  
Instead, if the choices are (choice 1, choice 2, choice 3, choice 4), it 
dispalys "choice 1"

Original comment by [email protected] on 11 May 2012 at 2:37

from alternate-java-bridge-library.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 19, 2024
Ok, after looking in the class, I just never noticed the prompt thing. I'll add 
a method in the next version. For now, you can use 
dropdown.getView().setPrompt("This is my prompt");

Original comment by [email protected] on 11 May 2012 at 2:52

  • Changed state: Started

from alternate-java-bridge-library.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 19, 2024
Sorry, you have to cast it, this is the correct line:
((Spinner)dd.getView()).setPrompt("The prompt");

Original comment by [email protected] on 11 May 2012 at 3:01

from alternate-java-bridge-library.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 19, 2024
So first I want to say Thank you, as I did not notice the Prompt either...that 
is not however what I originally was reporting.  I should have included 
pictures (which I will from now on).  Please see screenshots

Original comment by [email protected] on 12 May 2012 at 2:47

Attachments:

from alternate-java-bridge-library.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 19, 2024
That's been there the whole time. Use setSelection(String element) to set the 
default selection.

Original comment by [email protected] on 22 May 2012 at 7:07

from alternate-java-bridge-library.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 19, 2024

Original comment by [email protected] on 22 May 2012 at 7:22

  • Changed state: Done

from alternate-java-bridge-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.