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