On This Page
Getting started
Mateu lets you define UIs using plain Java.
A minimal example
@UI("")
public class Counter {
@ReadOnly
int count = 0;
@Button
Runnable increment = () -> count++;
}
This defines a working UI.
Actions
Actions can be defined in multiple ways:
- as
Runnablefields - as methods annotated with
@Toolbar - as methods annotated with
@Button
This gives you flexibility in how actions are rendered and positioned.