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 USER_TEMPLATE:
fragment = new Fragment("panelUserTemplate", "fragmentUserTemplate", this);
fragment.addOrReplace(new ClearIndicatingAjaxLink("userTemplateLink", pageRef) {
private static final long serialVersionUID = -7978723352517770644L;
@Override
protected void onClickInternal(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case ROLE_TEMPLATE:
fragment = new Fragment("panelRoleTemplate", "fragmentRoleTemplate", this);
fragment.addOrReplace(new ClearIndicatingAjaxLink("roleTemplateLink", pageRef) {
private static final long serialVersionUID = -7978723352517770644L;
@Override
protected void onClickInternal(final AjaxRequestTarget target) {
link.onClick(target);
}
});
break;
case ENABLE:
fragment = new Fragment("panelEnable", "fragmentEnable", this);
fragment.addOrReplace(new ClearIndicatingAjaxLink("enableLink", 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 SELECT:
fragment = new Fragment("panelSelect", "fragmentSelect", this);
fragment.addOrReplace(new ClearIndicatingAjaxLink("selectLink", 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) {