// ---------------------------
// ---------------------------
// Link to select schemas/columns to be shown
// ---------------------------
final AjaxLink displayAttrs = new ClearIndicatingAjaxLink("displayAttrsLink", page.getPageReference()) {
private static final long serialVersionUID = -7978723352517770644L;
@Override
protected void onClickInternal(final AjaxRequestTarget target) {
displaymodal.setPageCreator(new ModalWindow.PageCreator() {
private static final long serialVersionUID = -7834632442532690940L;
@Override
public Page createPage() {
return new DisplayAttributesModalPage(page.getPageReference(), displaymodal);
}
});
displaymodal.show(target);
}
};
// Add class to specify relative position of the link.
// Position depends on result pages number.
displayAttrs.add(new Behavior() {
private static final long serialVersionUID = 1469628524240283489L;
@Override
public void onComponentTag(final Component component, final ComponentTag tag) {