Property<StoreInfo> property) {
final CatalogIconFactory icons = CatalogIconFactory.get();
if (property == TYPE) {
final StoreInfo storeInfo = (StoreInfo) itemModel.getObject();
ResourceReference storeIcon = icons.getStoreIcon(storeInfo);
Fragment f = new Fragment(id, "iconFragment", StorePanel.this);
f.add(new Image("storeIcon", storeIcon));
return f;
} else if (property == WORKSPACE) {
return workspaceLink(id, itemModel);
} else if (property == NAME) {
return storeNameLink(id, itemModel);
} else if (property == ENABLED) {
final StoreInfo storeInfo = (StoreInfo) itemModel.getObject();
ResourceReference enabledIcon;
if (storeInfo.isEnabled()) {
enabledIcon = icons.getEnabledIcon();
} else {
enabledIcon = icons.getDisabledIcon();
}
Fragment f = new Fragment(id, "iconFragment", StorePanel.this);