@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); }
@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); } }