Adding custom UI Modules to Boomega
April 28, 2022 ยท View on GitHub
This page will show you what are Modules in Boomega and guide you how to contribute new UI-Modules for Boomega + gives the fundamentals for developing module-plugins.
What are modules in Boomega?
A Module in Boomega provides a particular UI
area where specific tasks can be achieved.
On the Boomega Home Screen, each module has its own tile displayed there:

As you can see, the Records-View and the Google Books Import View are present in Boomega as modules.
And when you click on a tile, it opens a tab for the module's content:

You have the ability to add your custom modules to the app by plugins.
The Module class
If you want to create your own, you should extend
the com.dansoftware.boomega.gui.databaseview.Module
class.
The members you must override are:
name:String- The user-visible name of the moduleicon:Node- The javafx node that serves as a symbol/icon for the moduleid:String- a unique identifier of the modulebuildContent():Node- The actual UI content the module providesdestroy():Boolean- gets called when the user closes the module (by closing itstab); if it returnsfalsethe user won't be able to
Simple example:
| Kotlin | Java |
|---|---|
|
|
We've just created a module that will display the text "Hello" on the screen.
If you're developing your module as a plugin, look at the plugin guide for further instructions!
Result:
On the Home Page:

After opened:
