switch (type) {
case CLAIM:
fragment = new Fragment("panelClaim", "fragmentClaim", this);
fragment.addOrReplace(new IndicatingAjaxLink("claimLink") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case CREATE:
fragment = new Fragment("panelCreate", "fragmentCreate", this);
fragment.addOrReplace(new IndicatingAjaxLink("createLink") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case EDIT:
fragment = new Fragment("panelEdit", "fragmentEdit", this);
fragment.addOrReplace(new IndicatingAjaxLink("editLink") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case TEMPLATE:
fragment = new Fragment("panelTemplate", "fragmentTemplate", this);
fragment.addOrReplace(new IndicatingAjaxLink("templateLink") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case SEARCH:
fragment = new Fragment("panelSearch", "fragmentSearch", this);
fragment.addOrReplace(new IndicatingAjaxLink("searchLink") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case EXECUTE:
fragment = new Fragment("panelExecute", "fragmentExecute", this);
fragment.addOrReplace(new IndicatingAjaxLink("executeLink") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case DRYRUN:
fragment = new Fragment("panelDryRun", "fragmentDryRun", this);
fragment.addOrReplace(new IndicatingAjaxLink("dryRunLink") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case DELETE:
fragment = new Fragment("panelDelete", "fragmentDelete", this);
fragment.addOrReplace(new IndicatingDeleteOnConfirmAjaxLink("deleteLink") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case EXPORT:
fragment = new Fragment("panelExport", "fragmentExport", this);
fragment.addOrReplace(new IndicatingAjaxLink("exportLink") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {