All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ui4j.api.dialog.PromptDialogHandler Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package com.ui4j.api.dialog;

import com.ui4j.api.util.Logger;
import com.ui4j.api.util.LoggerFactory;

class PromptDialogHandler implements PromptHandler {

    private static final Logger LOG = LoggerFactory.getLogger(PromptDialogHandler.class);

    @Override
    public String handle(PromptDialogEvent event) {
        LOG.info("Javascript prompt handler message: " + event.getMessage() + ", default value: " + event.getDefaultValue());
        return event.getDefaultValue();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy