*
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
PageParameters params = new PageParameters();
params.add("name", this.getModelObject().getName());
params.add("pageNum", "1");
setResponsePage(typeBrowser, params);
}
};
typeCountLink.add(new Label("type_count", String.valueOf(type
.getModelObject().getCounts().get(0))));
type.add(typeCountLink);
Link<ProductType> type2Link = new Link<ProductType>(
"type2_count_link") {
/*
* (non-Javadoc)
*
* @see org.apache.wicket.Component#isVisible()
*/
@Override
public boolean isVisible() {
return false;
}
@Override
public void onClick() {
}
};
type.add(new Label("type2_name", BLANK_SPACE));
type2Link.add(new Label("type2_count", BLANK_SPACE));
type.add(type2Link);
} else {
type.add(new Label("type_name", type.getModelObject().getTypes().get(
0).getName()));
Link<ProductType> typeCountLink = new Link<ProductType>(
"type_count_link", new ProductTypeModel(type.getModelObject()
.getTypes().get(0))) {
/*
* (non-Javadoc)
*
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
PageParameters params = new PageParameters();
params.add("name", this.getModelObject().getName());
params.add("pageNum", "1");
setResponsePage(typeBrowser, params);
}
};
typeCountLink.add(new Label("type_count", String.valueOf(type
.getModelObject().getCounts().get(0))));
type.add(typeCountLink);
type.add(new Label("type2_name", type.getModelObject().getTypes()
.get(1).getName()));
Link<ProductType> type2Link = new Link<ProductType>(
"type2_count_link", new ProductTypeModel(type.getModelObject()
.getTypes().get(1))) {
/*
* (non-Javadoc)
*
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
PageParameters params = new PageParameters();
params.add("name", this.getModelObject().getName());
params.add("pageNum", "1");
setResponsePage(typeBrowser, params);
}
};
type2Link.add(new Label("type2_count", String.valueOf(type