Customize the screen pattern

hey guys

I want to clarify a doubt that I already have since Cuba, when creating a new interface using the standard (browser and editor),

what would be the best way to CUSTOMIZE this pattern,

for example, every editor screen, I put a group between the layout and the form, to have the border, I organize the columns,
the Actions windowCommitAndClose and windowClose, I would like to change their icons.

are just a few examples of how I would like to change the default editor screen so that the new screens follow these standards, which would save time.

it’s possible?
it’s viable?
is easy?

Thanks in advance for your attention.

Hi, Marcos!

Creating your own screen template is very easy!
Just press the button to copy the standard template and then you can customize it.

How to GIF

create-screen-template

There will be 5 files here, but only three are of interest, in which you will make changes.
Each of these files are groovy patterns that are processed by the scripts in the Jmix Studio.

In order to write complex logic, you need to write scripts wrapped in <% %>.
You can be inspired by examples in existing templates.

If you just want to replace the icon, it can be done in a couple of clicks.

descriptor.xml

image

In the controller.java file, you can define the controller logic for the template.

settings.xml contains the structure of the wizard for the template, here you can set new variables and define steps for the wizard.
Also, here you can set the description and caption of the template.

I hope my answer will help you write your ultimate template. :grinning:

Regards,
Dmitriy

3 Likes

Perfect, I already understood how to proceed, and the basics already worked.

thank you very much

1 Like