View Javadoc

1   /**
2    * Copyright 2010 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  
16  package org.kuali.student.common.ui.client.configurable.mvc;
17  
18  import java.util.List;
19  
20  import org.kuali.student.common.ui.client.configurable.mvc.impl.DefaultWidgetFactoryImpl;
21  import org.kuali.student.r1.common.assembly.data.LookupMetadata;
22  import org.kuali.student.r1.common.assembly.data.Metadata;
23  import org.kuali.student.r1.common.assembly.data.Data.DataType;
24  import org.kuali.student.r1.common.assembly.data.Metadata.WriteAccess;
25  
26  /**
27   * Data class used for passing relevant metadata info during auto field generation in DefaultWidgetFactory
28   * @see DefaultWidgetFactory
29   * @see DefaultWidgetFactoryImpl
30   * @author Kuali Student Team
31   *
32   */
33  public class WidgetConfigInfo {
34  	public DataType type = null;
35  	public Integer maxLength = null;
36  	public WriteAccess access = null;
37  	public boolean isRichText = false;
38  	public boolean isMultiLine = false;
39  	public boolean isRepeating = false;
40  	public Metadata metadata = null;
41  	public LookupMetadata lookupMeta = null;
42  	public List<LookupMetadata> additionalLookups = null;
43  	public boolean canEdit = true;
44  	public boolean canUnmask = false;
45  	public boolean canView = true;
46  }