[REVIEW REQUEST] Add support for an emptyText property in ComboBox
swpalmer at gmail.com
Tue Feb 19 21:27:48 PST 2013
What about consistency with TableView?
On 2013-02-19, at 3:44 PM, Philipp Dörfler <phdoerfler at gmail.com> wrote:
> You're probably right about the implementation detail. The use case I was thinking of is filtering. A ListView containing kittens could then have a default line saying "No kitten matched your query". That's the only use case I can think of right now, though. And even this is not hard to implement manually.
> ~ Philipp
> Am 20.02.2013 um 00:36 schrieb Jonathan Giles <jonathan.giles at oracle.com>:
>> Thanks for the name suggestions - unfortunately I just pushed to the repo as emptyText, which remains my preference.
>> I can't see the use case for ListView - surely this is something that is better served as an implementation detail inside an application, rather than something baked into the control. Is there a use case I'm not seeing?
>> -- Jonathan
>> On 20/02/2013 12:28 p.m., Philipp Dörfler wrote:
>>> Sounds good.
>>> Some alternate naming suggestions:
>>> - listPrompt
>>> - emptyListText
>>> Any chance something like this might be in ListView as well someday?
>>> ~ Philipp
>>> Am 19.02.2013 um 01:39 schrieb Jonathan Giles <jonathan.giles at oracle.com>:
>>>> Hi all,
>>>> I'm keen to add an 'emptyText' property to ComboBox. This property would be analogous to the 'promptText' property already supported, except that it would appear in the popup list area when the items list is empty (rather than in the text field when that is empty).
>>>> I'm happy to accept alternate naming suggestions, as this is just the first name that occurred to me.
>>>> -- Jonathan
More information about the openjfx-dev