コード例 #1
0
 @Override
 public SNameValue[] getExtraData(Object element) {
   if (element instanceof CustomerItem) {
     CustomerItem item = (CustomerItem) element;
     return new SNameValue[] {new SNameValue("salesman", String.valueOf(item.getSalesmanId()))};
   }
   return super.getExtraData(element);
 }
コード例 #2
0
 @Override
 protected String[] getElementActionIds(Object element) {
   if (element instanceof CustomerItem) {
     CustomerItem item = (CustomerItem) element;
     if (!item.isUsed()) {
       return getTableActionIds();
     } else {
       return new String[] {Action.Allocate.name()};
     }
   } else {
     return super.getElementActionIds(element);
   }
 }