package net.sourceforge.fenixedu.presentationTier.renderers; import java.util.Collection; import pt.iscte.ci.metadata.ISCTE; import pt.ist.fenixWebFramework.renderers.CollectionRenderer; import pt.ist.fenixWebFramework.renderers.layouts.Layout; import pt.ist.fenixWebFramework.renderers.utils.RenderUtils; @ISCTE public class PrimitiveArrayRenderer extends CollectionRenderer { @SuppressWarnings("unchecked") @Override protected Layout getLayout(Object object, Class type) { Collection sortedCollection = RenderUtils.sortCollectionWithCriteria((Object[]) object, getSortBy()); return new CollectionTabularLayout(sortedCollection); } }