GazeUI lets you create front-end web applications using your server-side language of choice! No HTML, no CSS, no client-side JavaScript. This is the module that will allow you to plug GazeUI into your Spring Boot project.
-
Add the GazeUI library to your project classpath;
-
Enable GazeUI on your project adding the
@EnableGazeUI
annotation:@SpringBootApplication @EnableGazeUI(mainWindowClass = MainWindow.class) public class MySpringBootApp { public static void main(String[] args) { SpringApplication.run(MySpringBootApp.class, args); } }
-
Create your application main window, with some controls and responses to user actions:
public class MainWindow extends Window { private Button buttonSayHello; private Label labelHelloWorld; public MainWindow() { this.buttonSayHello = new Button("Say Hello"); this.buttonSayHello.addOnClickHandler(this::buttonSayHello_OnClick); this.labelHelloWorld = new Label(); this.getControls().add(this.buttonSayHello); this.getControls().add(this.labelHelloWorld); } private void buttonSayHello_OnClick(EventArgs e) { this.labelHelloWorld.setText("Hello World!"); } }
-
Voilà! Here is what you get:
- Great look and feel themes
- More controls (TextBox, MaskedTextBox, CheckBox, ListBox, DateTimePicker, GridView, Dialog, Menu, etc.)
- GazeUI IDE
Please read CONTRIBUTING.md for details on how to contribute and the process for submitting pull requests to us.
This project is licensed under the terms of the MIT license. See the LICENSE file for details.