Skip to content

Allow customization of the description window - #109

Merged
bobbylight merged 2 commits into
bobbylight:masterfrom
sesquialtera87:desc-window
Aug 20, 2026
Merged

Allow customization of the description window#109
bobbylight merged 2 commits into
bobbylight:masterfrom
sesquialtera87:desc-window

Conversation

@sesquialtera87

Copy link
Copy Markdown
Contributor

The actual AutoCompleteDescWindow does a good job, but it would be nice to have the possibility of change or tweak something of it (for example add new actions to the nav-bar or create a totally different dialog). Now it's not possible, because class AutoCompletePopupWindow creates its own private description window without any possibility of intervention.

I have created the abstract class AbstractDescriptionWindow that collects some common logic of the description dialog, so that, when needed, one can create a custom window and register a factory in the AutoCompletion object.

Also addToNavBar methods are added into AutoCompleteDescWindow to allow insertion of actions into the nav-bar

@sesquialtera87
sesquialtera87 marked this pull request as ready for review January 27, 2026 14:09
@bobbylight

Copy link
Copy Markdown
Owner

@sesquialtera87 can you rebase? If you do I'll run the workflows and take a look at getting this merged! 🙏

…ions

- Introduce AbstractDescWindow as an abstract base class for completion description windows.
- Add descWindowFactory property to AutoCompletion to allow custom description window creation via a Function<Window, AbstractDescWindow>.
- Refactor AutoCompletePopupWindow and AutoCompleteDescWindow to use the new abstraction.
@sesquialtera87

Copy link
Copy Markdown
Contributor Author

Hi @bobbylight,
I have updated the PR branch against the latest changes on main.

Here is a summary of the changes:

Abstraction

  • AbstractDescWindow: introduced as an abstract base class (extending JWindow) managing the common window logic providing, standard window initialization and LookAndFeel updates
  • AutoCompletion Factory: added descWindowFactory to allow developers to supply custom description window implementations on demand.

Enhancements (AutoCompleteDescWindow)

Integrated two new methods (addToNavBar(...)) into AutoCompleteDescWindow to customize the navigation bar.

@bobbylight bobbylight added this to the 4.0.0 milestone Aug 20, 2026
@bobbylight
bobbylight merged commit 0fe6dcc into bobbylight:master Aug 20, 2026
4 checks passed
@bobbylight

Copy link
Copy Markdown
Owner

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants