add insertValue property to ComboBox
Alexandre (Shura) Iline
alexandre.iline at oracle.com
Wed Mar 14 07:19:07 PDT 2012
Something like that is what I meant, yes. Every skin than will have to
take care updating the property.
May be not insertValue but editorValue or something. Meaning that it is
a value which is currently in the editor.
On 3/14/12 6:09 PM, Tadashi Ohmura wrote:
> I understand your thinking.
> What about more generic property for editable combobox ?
> It changes at every key input onto input field of editable combobox
> just as text property of TextInputControl
> or just like replaceText() of TextInputControl is invoked
> Best regards
> Tadashi Ohmura
> (2012/03/14 22:24), Alexandre (Shura) Iline wrote:
>> On 3/14/12 5:12 PM, Tadashi Ohmura wrote:
>>> The object in the input field of editable combobox seems to be String in
>>> spite of the type of combobox.
>> This is how the current implementation is done.
>> AFAIK, there is nothing in javadoc which implies this. More precisely,
>> it says "... and the default means of allowing user input is via a
>> TextField". The statement is a bit confusing, but the way I read it is
>> that there could be other ways to input the data - other than the text
>> If we add the string text property to the public API, though, we would
>> indirectly disable introducing other editors.
>>> The type of this editable combobox is Integer
>>> When I enter the numeric characters such as 111 then hit Enter key
>>> the exception rises:
>>> java.lang.ClassCastException: java.lang.String cannot be cast to
More information about the openjfx-dev