View Javadoc

1   package org.kuali.student.common.uif.element;
2   
3   import org.kuali.rice.krad.uif.element.Action;
4   import org.kuali.rice.krad.uif.widget.Inquiry;
5   
6   import java.util.Map;
7   
8   /**
9    * Created with IntelliJ IDEA.
10   * User: aliabad4
11   * Date: 7/10/13
12   * Time: 2:02 PM
13   * To change this template use File | Settings | File Templates.
14   */
15  // TODO: KSENROLL-8478 temporarily overriding KRAD's Inquiry as it was messing up the hover over. should be resolved in Rice 2.3.1
16  
17  public class KSUifInquiry extends Inquiry {
18  
19      private String title;
20  
21  
22      public void buildInquiryLink(Object dataObject, String propertyName, Class<?> inquiryObjectClass,
23                                   Map<String, String> inquiryParams) {
24          super.buildInquiryLink(dataObject, propertyName, inquiryObjectClass, inquiryParams);
25          getInquiryLink().setTitle(title);
26      }
27  
28      public String getTitle() {
29          return title;
30      }
31  
32      public void setTitle(String title) {
33          this.title = title;
34      }
35  
36      /**
37       * @see org.kuali.rice.krad.uif.component.ComponentBase#copy()
38       */
39      @Override
40      protected <T> void copyProperties(T component) {
41          super.copyProperties(component);
42  
43          KSUifInquiry ksUifInquiryCopy = (KSUifInquiry) component;
44  
45          ksUifInquiryCopy.setTitle(this.title);
46      }
47  }