[REVIEW REQUEST] Add text property to ComboBox
Jerome Cambon
jerome.cambon at oracle.com
Thu Mar 15 06:32:49 PDT 2012
Exposing TextInputControl is exactly what we need. At least it is the
purpose of the Jira which is the base of this discussion.
We have concrete requirements in Scene Builder for this.
Our use case is the following :
- we have a set of editable ComboBox in a VBox, with initial values set
- for convenience, once modified, we directly type TAB to go to the next
ComboBox
- its value is selected so that we can directly enter the new value
without having to remove the old one
This seems to be a very common use case...
Jerome
On 3/15/12 11:47 AM, Tom Schindl wrote:
> Am 15.03.12 08:54, schrieb Alexandre (Shura) Iline:
>> I understand your take. And it is valid too.
>>
>> However, if you follow this road, you follow it all the way through.
>>
>> If you assume a string to be entered, make it visible through Javadoc.
>>
>> And also, in such case, why not provide an access to the text control?
>> There will be a text control - this is what you are saying. You would
>> then allow ppl to access selection, like was mentioned in another
>> e-mail, or anything else, such as caret position or whatever.
>>
> By exposing the text-control you are simply leaking too much API because
> you provide the complete Text-Control-API which isn't desired.
>
> If you don't want to bloat the ComboBox API with too many methods you
> can return a specilized ComboBoxText which simply delegates all calls to
> the Text-Control.
>
> Tom
>
More information about the openjfx-dev
mailing list