![JAR search and dependency download from the Maven repository](/logo.png)
org.jrebirth.af.dialog.AbstractDialogCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dialog Show documentation
Show all versions of dialog Show documentation
Provide classes to manage dialog opening.
package org.jrebirth.af.dialog;
import org.jrebirth.af.api.concurrent.RunInto;
import org.jrebirth.af.api.concurrent.RunType;
import org.jrebirth.af.api.wave.Wave;
import org.jrebirth.af.core.command.single.AbstractSingleCommand;
import org.jrebirth.af.core.exception.CommandException;
@RunInto(RunType.JAT)
public abstract class AbstractDialogCommand extends AbstractSingleCommand implements DialogCommand {
protected DialogWB bean;
@Override
protected void initCommand() {
// Nothing to do yet
}
@Override
protected void perform(Wave wave) throws CommandException {
bean = getWaveBean(wave);
switch (bean.getDialogType()) {
case Info:
openInfoDialog();
break;
case Warning:
openWarningDialog();
break;
case Error:
openErrorDialog();
break;
}
}
@Override
protected void initInnerComponents() {
// Nothing to do yet
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy