@Override protected Collection<DeliveryMode> createRecordList() { try { Collection<DeliveryMode> deliveryModeList = Arrays.asList(DeliveryMode.values()); return deliveryModeList; } catch (Exception e) { handleException(e); return null; } }
@Override public String getRecordName(DeliveryMode deliveryMode) { return deliveryMode.name(); }
public boolean isSelected(DeliveryMode deliveryMode) { DeliveryMode selection = selectionContext.getSelection("deliveryMode"); boolean selected = selection != null && selection.equals(deliveryMode); return selected; }
@Override public Object getRecordKey(DeliveryMode deliveryMode) { return deliveryMode.name(); }