es.gob.afirma.standalone.plugins.GenericMenuOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of afirma-ui-simpleafirma-plugins Show documentation
Show all versions of afirma-ui-simpleafirma-plugins Show documentation
Base para la construccion de plugins de AutoFirma
The newest version!
package es.gob.afirma.standalone.plugins;
import java.util.ArrayList;
import java.util.List;
public class GenericMenuOption {
private final String title;
private String actionClassName;
private PluginAction action;
private String dialogClass = null;
private List menus = null;
public GenericMenuOption(final String title) {
this(title, null);
}
public GenericMenuOption(final String title, final String actionClassName) {
this.title = title;
this.actionClassName = actionClassName;
}
public String getTitle() {
return this.title;
}
public String getActionClassName() {
return this.actionClassName;
}
public void setActionClassName(final String actionClassName) {
this.actionClassName = actionClassName;
}
public PluginAction getAction() {
return this.action;
}
public void setAction(final PluginAction action) {
this.action = action;
}
public void addSubMenu(final GenericMenuOption subMenu) {
if (this.menus == null) {
this.menus = new ArrayList<>();
}
this.menus.add(subMenu);
}
public List getMenus() {
return this.menus;
}
public String getDialogClass() {
return this.dialogClass;
}
public void setDialogClass(final String dialogClass) {
this.dialogClass = dialogClass;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy