ReservationsDB.Resource.PROPERTY_ID_DESCRIPTION).getValue();
final Button rButton = new Button(name, this);
rButton.setStyleName("link");
rButton.setDescription(description);
rButton.setData(resource);
Layout resourceLayout = categoryLayouts.get(category);
LinkedList<Item> resourceList = categoryResources.get(category);
if (resourceLayout == null) {
resourceLayout = new VerticalLayout();
resourceLayout.setSizeUndefined();
resourceLayout.setMargin(true);
addComponent(resourceLayout);
categoryLayouts.put(category, resourceLayout);
resourceList = new LinkedList<Item>();
categoryResources.put(category, resourceList);
final Button cButton = new Button(category + " (any)", this);
cButton.setStyleName("important-link");
cButton.setData(category);
resourceLayout.addComponent(cButton);
}
resourceLayout.addComponent(rButton);
resourceList.add(resource);
}
}
}