use of com.evolveum.midpoint.web.component.AjaxButton in project midpoint by Evolveum.
the class ParameterPropertiesPopupPanel method initLayout.
private void initLayout() {
addTextPanel(ID_KEY, "key");
addTextPanel(ID_LABEL, "label");
addTextPanel(ID_TARGET_TYPE, "targetType");
// CheckBoxPanel multivalue = new CheckBoxPanel(ID_MULTIVALUE, new PropertyModel<>(getModel(), "multivalue"), Model.of(Boolean.TRUE));
// add(multivalue);
AjaxButton update = new AjaxButton(ID_BUTTON_UPDATE) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
getPageBase().hideMainPopup(target);
IModel<JasperReportParameterPropertiesDto> model = ParameterPropertiesPopupPanel.this.getModel();
updateProperties(model.getObject(), target);
}
};
add(update);
}
use of com.evolveum.midpoint.web.component.AjaxButton in project midpoint by Evolveum.
the class PageResource method initLayout.
private void initLayout() {
if (resourceModel == null || resourceModel.getObject() == null) {
return;
}
addOrReplace(createResourceSummaryPanel());
addOrReplace(createTabsPanel());
AjaxButton test = new AjaxButton(BUTTON_TEST_CONNECTION_ID, createStringResource("pageResource.button.test")) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
testConnectionPerformed(target);
}
};
add(test);
AjaxButton refreshSchema = new AjaxButton(BUTTON_REFRESH_SCHEMA_ID, createStringResource("pageResource.button.refreshSchema")) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
refreshSchemaPerformed(target);
}
};
add(refreshSchema);
AjaxButton editXml = new AjaxButton(BUTTON_EDIT_XML_ID, createStringResource("pageResource.button.editXml")) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
PageParameters parameters = new PageParameters();
parameters.add(PageDebugView.PARAM_OBJECT_ID, resourceModel.getObject().getOid());
parameters.add(PageDebugView.PARAM_OBJECT_TYPE, "ResourceType");
navigateToNext(PageDebugView.class, parameters);
}
};
add(editXml);
AjaxButton configurationEdit = new AjaxButton(BUTTON_CONFIGURATION_EDIT_ID, createStringResource("pageResource.button.configurationEdit")) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
startWizard(true, false);
}
};
add(configurationEdit);
AjaxButton wizardShow = new AjaxButton(BUTTON_WIZARD_SHOW_ID, createStringResource("pageResource.button.wizardShow")) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
startWizard(false, true);
}
};
add(wizardShow);
AjaxButton wizardEdit = new AjaxButton(BUTTON_WIZARD_EDIT_ID, createStringResource("pageResource.button.wizardEdit")) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
startWizard(false, false);
}
};
add(wizardEdit);
AjaxButton back = new AjaxButton(ID_BUTTON_BACK, createStringResource("pageResource.button.back")) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
redirectBack();
}
};
add(back);
}
use of com.evolveum.midpoint.web.component.AjaxButton in project midpoint by Evolveum.
the class PageResourceEdit method initButtons.
private void initButtons(final Form mainForm) {
AjaxSubmitButton saveButton = new AjaxSubmitButton(ID_SAVE_BUTTON, createStringResource("PageBase.button.save")) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
savePerformed(target);
}
@Override
protected void onError(AjaxRequestTarget target, Form<?> form) {
target.add(getFeedbackPanel());
}
};
mainForm.add(saveButton);
AjaxButton backButton = new AjaxButton(ID_BACK_BUTTON, createStringResource("PageBase.button.back")) {
@Override
public void onClick(AjaxRequestTarget target) {
setResponsePage(new PageResources(false));
}
};
mainForm.add(backButton);
}
use of com.evolveum.midpoint.web.component.AjaxButton in project midpoint by Evolveum.
the class DownloadButtonPanel method initLayout.
private void initLayout() {
AjaxButton download = new AjaxButton(ID_DOWNLOAD) {
@Override
public void onClick(AjaxRequestTarget target) {
downloadPerformed(target);
}
};
add(download);
AjaxButton delete = new AjaxButton(ID_DELETE) {
@Override
public void onClick(AjaxRequestTarget target) {
deletePerformed(target);
}
};
add(delete);
}
use of com.evolveum.midpoint.web.component.AjaxButton in project midpoint by Evolveum.
the class JasperReportConfigurationPanel method initParametersTable.
private void initParametersTable() {
ISortableDataProvider<JasperReportParameterDto, String> provider = new ListDataProvider<JasperReportParameterDto>(this, new PropertyModel<List<JasperReportParameterDto>>(getModel(), "jasperReportDto.parameters"));
BoxedTablePanel<JasperReportParameterDto> table = new BoxedTablePanel<>(ID_PARAMETERS_TABLE, provider, initParameterColumns(), null, 10);
// table.setShowPaging(false);
table.setOutputMarkupId(true);
add(table);
AjaxButton addParameter = new AjaxButton(ID_BUTTON_ADD_PARAMETER, createStringResource("JasperReportConfigurationPanel.addParameter")) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
addParameterPerformed(target);
}
};
add(addParameter);
AjaxButton deleteParameter = new AjaxButton(ID_DELETE_PARAMETER, createStringResource("JasperReportConfigurationPanel.deleteParameter")) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
deleteParameterPerformed(target);
}
};
add(deleteParameter);
}
Aggregations