controlsfx / controlsfx/controlsfx

How to show popup of an AutoCompletationBinding by code

Open
#1,010 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.7k
Forks
300
Avg merge
16d 17h
Merged PRs (30d)
1

Description

**[Original report](https://bitbucket.org/controlsfx/controlsfx/issue/819) by Ahmed (Bitbucket: [ahmedmourad](https://bitbucket.org/ahmedmourad), GitHub: [ahmedmourad](https://github.com/ahmedmourad)).**

----------------------------------------

Hi,

I'm looking for a way to show the Autocompletion popup with the full list of suggestions when the textfield is empty. This should happen when the user clicks the textfield or presses the down key.

This's the code i use to bind autocompletion:

```
#!java

AutoCompletionBinding accountIdBinding = TextFields.bindAutoCompletion(accountIdEditText, accountIdsArrayList);
```

The whole accountIdsArrayList should show on the autocomplete popup when the textfield is empty.

Best regards,

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with TextFields.bindAutoCompletion and the AutoCompletionBinding API shown in the issue. Trace how the autocomplete popup handles an empty text field and activation by click or the down key. Done means the full accountIdsArrayList appears when either action occurs with no text entered.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.