pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Jansen <iron...@gmail.com>
Subject Re: SuggestionPopup with large number of options
Date Thu, 31 Mar 2011 12:20:35 GMT
>
> See
> http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/Component.html:
>
> setPreferredWidth(), setPreferredHeight(), setPreferredSize() (preferred
> size)
>
> setMinimumWidth(), setMaximumWidth(), setWidthLimits() (width constraints)
> setMinimumHeight(),  setMaximumHeight(), setHeightLimits() (height
> constraints)
>
> setWidth(), setHeight(), setSize() (actual size; don't use this unless you
> are writing a layout manager or performing layout manually)
>

Thanks, not sure how I missed that (must've been digging around in the Skin
classes).


>
>  > In the meantime, I'll have to resort to displaying suggestions only once
>> a sufficient number have been filtered out.
>>
>> From a user interaction standpoint, that might be a better alternative
>> anyways. A typical user is probably not going to have the patience to scroll
>> through thousands of suggestions.  :-)
>>
> Fair point, though in terms of consistency, it might be nice to indicate to
> the user that each of his/her actions (keystrokes in this case) has
> corresponding results.
>
>
> You might cap the size of the list to some smaller value but append an
> ellipsis to the end of the list to indicate that more results were actually
> returned.
>

Do you propose doing this by adding an 'ellipsis item'  to the end of the
suggestion data List?

Mime
View raw message