org.zkoss.zul.Window Java Examples

The following examples show how to use org.zkoss.zul.Window. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ExampleRichlet.java    From zkspringboot with Apache License 2.0 5 votes vote down vote up
@Override
public void service(Page page) throws Exception {
	Window window = new Window("ZK-Spring-Boot Richlet", "normal", true);
	window.setPage(page);
	Button button = new Button("Get Time from Spring Service");
	button.addEventListener("onClick", event -> {
		Label label = new Label("Current Time: " + testService.getTime());
		window.appendChild(new Separator());
		window.appendChild(label);
	});
	window.appendChild(button);
}
 
Example #2
Source File: LoginWindow.java    From jease with GNU General Public License v3.0 5 votes vote down vote up
public LoginWindow() {
	Window window = new Window(getTitle(), "normal", false);
	window.setPosition("center");
	window.setWidth("300px");
	window.doOverlapped();
	window.appendChild(login);
	appendChild(window);
}