View Javadoc

1   /*
2    * Copyright 2007 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 1.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl1.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krad.uif.control;
17  
18  /**
19   * Represents a HTML File control, generally rendered as an input control with
20   * type 'file'. Allows user to upload a file to the application
21   *
22   * @author Kuali Rice Team (rice.collab@kuali.org)
23   */
24  public class FileControl extends ControlBase implements SizedControl {
25      private static final long serialVersionUID = -5919326390841646189L;
26  
27      private int size;
28  
29      public FileControl() {
30          super();
31      }
32  
33      /**
34       * @see org.kuali.rice.krad.uif.control.SizedControl#getSize()
35       */
36      public int getSize() {
37          return this.size;
38      }
39  
40      /**
41       * @see org.kuali.rice.krad.uif.control.SizedControl#setSize(int)
42       */
43      public void setSize(int size) {
44          this.size = size;
45      }
46  
47  }