View Javadoc
1   package org.kuali.ole.service;
2   
3   import org.kuali.rice.krad.uif.component.Component;
4   import org.kuali.rice.krad.uif.field.Field;
5   import org.kuali.rice.krad.uif.view.LookupView;
6   import org.kuali.rice.krad.uif.view.View;
7   
8   import java.util.List;
9   
10  /**
11   * OlePatronLookupView removes the action links(edit/copy) from the result fields
12   */
13  public class OlePatronLookupView extends LookupView {
14      /**
15       * This method will remove the action links(edit/copy) from the result fields
16       * @param view
17       * @param model
18       * @param parent
19       */
20      @Override
21      public void performApplyModel(View view, Object model, Component parent) {
22  
23          super.performApplyModel(view, model, parent);
24          if (!isSuppressActions() && isShowMaintenanceLinks()) {
25  
26            //  ((List<Field>) getResultsGroup().getItems()).remove(getResultsActionsFieldGroup());
27              ((List<Field>) getResultsGroup().getItems()).remove(0);
28          }
29  
30      }
31  }