use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class BatchControlBP method createToolbar.
public Button[] createToolbar() {
Button[] abutton = new Button[5];
int i = 0;
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "Toolbar.new");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "Toolbar.delete");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "Toolbar.showLog");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "Toolbar.stopBatch");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "Toolbar.startBatch");
return abutton;
}
use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class CRUDTestataLogBP method createToolbar.
protected Button[] createToolbar() {
Button[] abutton = new Button[5];
int i = 0;
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.search");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.startSearch");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.freeSearch");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.delete");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.print");
return abutton;
}
use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class CRUDPdgVariazioneGestionaleBP method createToolbar.
protected Button[] createToolbar() {
Button[] toolbar = super.createToolbar();
Button[] newToolbar = new Button[toolbar.length + 3];
int i;
for (i = 0; i < toolbar.length; i++) newToolbar[i] = toolbar[i];
newToolbar[i] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.statoPrecedente");
newToolbar[i + 1] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.assestatoEntrate");
newToolbar[i + 2] = new it.cnr.jada.util.jsp.Button(it.cnr.jada.util.Config.getHandler().getProperties(getClass()), "CRUDToolbar.assestatoSpese");
return newToolbar;
}
use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class CRUDStatoCdrPdGPBP method createToolbar.
protected Button[] createToolbar() {
Button[] abutton = new Button[5];
int i = 0;
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.search");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.startSearch");
// abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.freeSearch");
// abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.new");
// abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.save");
// abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.delete");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.bringBack");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.print");
abutton[i++] = new Button(Config.getHandler().getProperties(getClass()), "CRUDToolbar.undoBringBack");
return abutton;
}
use of it.cnr.jada.util.jsp.Button in project sigla-main by consiglionazionaledellericerche.
the class RimodulaProgettoPianoEconomicoVoceBilancioCRUDController method writeHTMLToolbar.
@Override
public void writeHTMLToolbar(javax.servlet.jsp.PageContext context, boolean reset, boolean find, boolean delete, boolean closedToolbar) throws java.io.IOException, javax.servlet.ServletException {
Progetto_piano_economicoBulk ppe = (Progetto_piano_economicoBulk) getParentController().getModel();
boolean isPpeEliminato = Optional.ofNullable(ppe).map(Progetto_piano_economicoBulk::isDetailRimodulatoEliminato).orElse(Boolean.FALSE);
if (isPpeEliminato)
super.writeHTMLToolbar(context, !isPpeEliminato && reset, !isPpeEliminato && find, !isPpeEliminato && delete, false, true);
else {
super.writeHTMLToolbar(context, reset, find, delete, false);
Button button = new Button();
button.setImg("img/undo16.gif");
button.setDisabledImg("img/undo16.gif");
button.setTitle("Annulla Eliminazione");
button.setIconClass("fa fa-fw fa-undo text-primary");
button.setButtonClass("btn-sm btn-secondary btn-outline-secondary btn-title");
button.setHref("javascript:submitForm('doUndoRemoveFromCRUD(" + getInputPrefix() + ")')");
boolean isButtonEnable = isShrinkable() && Optional.ofNullable(getParentController().getModel()).filter(Progetto_piano_economicoBulk.class::isInstance).map(Progetto_piano_economicoBulk.class::cast).flatMap(el -> Optional.ofNullable(el.getVoce_piano_economico())).map(Voce_piano_economico_prgBulk::getFl_add_vocibil).orElse(Boolean.FALSE);
button.writeToolbarButton(context.getOut(), isButtonEnable, HttpActionContext.isFromBootstrap(context));
super.closeButtonGROUPToolbar(context);
}
}
Aggregations