private static class ColumnSubviews implements SubviewSpec {
public View createSubview(Content content, ViewAxis axis) {
ViewFactory factory = Skylark.getViewFactory();
ViewSpecification specification;
if (content instanceof OneToManyField) {
specification = new ScheduleSpecification();
} else if (content instanceof ValueContent) {
specification = factory.getValueFieldSpecification((ValueContent) content);
} else if (content instanceof ObjectContent) {
specification = factory.getIconizedSubViewSpecification((ObjectContent) content);
} else {
throw new ObjectAdapterRuntimeException();
}
return specification.createView(content, axis);
}