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   * Created with IntelliJ IDEA.
12   * User: bala.km
13   * Date: 22/6/12
14   * Time: 2:42 PM
15   * To remove the action column from the look up search result ..
16   */
17  public class OleLookupView extends LookupView {
18  
19      /**
20       *  To remove the action column from the look up search result
21       * @param view
22       * @param model
23       * @param parent
24       */
25      @Override
26      public void performApplyModel(View view, Object model, Component parent) {
27  
28          super.performApplyModel(view, model, parent);
29          if (!isSuppressActions() && isShowMaintenanceLinks()) {
30              ((List<Field>) getResultsGroup().getItems()).remove(getResultsActionsField());
31          }
32  
33      }
34  }