/** * Indicates if the current column is sorteable or not.<p> * * if <code>true</code> a default list item comparator is used.<p> * * if <code>false</code> any previously set list item comparator is removed.<p> * * @param sorteable the sorteable flag */ public void setSorteable(boolean sorteable) { if (sorteable) { setListItemComparator(new CmsListItemDefaultComparator()); } else { setListItemComparator(null); } }
/** * Indicates if the current column is sorteable or not.<p> * * if <code>true</code> a default list item comparator is used.<p> * * if <code>false</code> any previously set list item comparator is removed.<p> * * @param sorteable the sorteable flag */ public void setSorteable(boolean sorteable) { if (sorteable) { setListItemComparator(new CmsListItemDefaultComparator()); } else { setListItemComparator(null); } }
nameCol.setWidth("30%"); nameCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT); nameCol.setListItemComparator(new CmsListItemDefaultComparator()); classCol.setWidth("20%"); classCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT); classCol.setListItemComparator(new CmsListItemDefaultComparator()); metadata.addColumn(classCol); lastExecCol.setWidth("25%"); lastExecCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT); lastExecCol.setListItemComparator(new CmsListItemDefaultComparator()); nextExecCol.setWidth("25%"); nextExecCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT); nextExecCol.setListItemComparator(new CmsListItemDefaultComparator());