Add suggestions:List<String> to TextInput
-----------------------------------------

                 Key: PIVOT-330
                 URL: https://issues.apache.org/jira/browse/PIVOT-330
             Project: Pivot
          Issue Type: New Feature
          Components: wtk
            Reporter: Todd Volkert
             Fix For: 1.5


Proposal to add the following API to TextInput:

public List<String> getSuggestions();
public void setSuggestions(List<String> suggestions);

When the suggestions list was non-null, the text input skin would be 
responsible for showing the suggestions to the user.  The default skin would 
display a popup underneath the text input, with a list view of the suggestions 
in the popup.  The user could then use the down arrow and tab or click to 
select a suggestion, thus populating the text of the text input.

It would always be left up to the application to manage the suggestions list 
(update it, set it, or clear it) based on application-level logic -- the skin 
would always present the suggestion list if it were there.

Applications could combine this feature with the Java preferences API to store 
historical form data and provide behavior akin to browser form behavior.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to