View Javadoc
1   /**
2    * Copyright 2013 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   *
15   * Created by bobhurt on 5/3/13
16   */
17  package org.kuali.rice.krad.uif.widget;
18  
19  import org.kuali.rice.krad.datadictionary.parse.BeanTag;
20  import org.kuali.rice.krad.uif.component.Component;
21  import org.kuali.rice.krad.uif.view.View;
22  
23  import java.util.List;
24  
25  /**
26   * Widget that provides dynamic select options to the user as they enter the
27   * value (also known as auto-complete).  A "Combobox" is also possible which
28   * provides a button to start a search or (if no query term is entered) to
29   * list the entire table (caution!).
30   *
31   * <p>
32   * Widget is backed by an <code>AttributeQuery</code> that provides the
33   * configuration for executing a query server side that will retrieve the valid
34   * option values.
35   * </p>
36   *
37   * @author Kuali Student Team
38   */
39  @BeanTag(name = "suggest2", parent = "Uif-Suggest2")
40  public class Suggest2 extends Suggest {
41  
42      private boolean comboboxButtonEnabled = false;
43      private boolean customEntryAllowed = true;
44      private boolean loadingImageEnabled = true;
45  
46  
47      public boolean isComboboxButtonEnabled() {
48          return comboboxButtonEnabled;
49      }
50      public void setComboboxButtonEnabled(boolean comboboxButtonEnabled) {
51          this.comboboxButtonEnabled = comboboxButtonEnabled;
52      }
53  
54      public boolean isCustomEntryAllowed() {
55          return customEntryAllowed;
56      }
57      public void setCustomEntryAllowed(boolean customEntryAllowed) {
58          this.customEntryAllowed = customEntryAllowed;
59      }
60  
61      public boolean isLoadingImageEnabled() {
62          return loadingImageEnabled;
63      }
64      public void setLoadingImageEnabled(boolean loadingImageEnabled) {
65          this.loadingImageEnabled = loadingImageEnabled;
66      }
67  
68  
69  }