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