I want to create a quick window with one or two fields, and an OK and Cancel button, and then use the value of those fields after the window is closed.
I started coding as follows:
AbstractWindow window = openWindow("myScreen", OpenType.DIALOG);
window.addCloseListener((listener) ->{
if (listener.equals("perform")){
//GET FIELD VALUES OR RETURN VALUES AND DO SOMETHING USEFUL
}else{
//DO NOTHING
}
});
How can I have access to field values, or return values from ‘myScreen’ ?