View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.myfaces.orchestra.dynaForm.metadata;
20  
21  import org.apache.myfaces.orchestra.dynaForm.lib.SelectionSourceEnum;
22  
23  import javax.faces.component.UIComponent;
24  import javax.faces.convert.Converter;
25  import javax.persistence.TemporalType;
26  
27  
28  /**
29   * Metadata for a field
30   */
31  public interface MetaFieldWritable extends MetaField
32  {
33      public void setType(Class<?> type);
34      public void setDisplayOnly(boolean readonly);
35      public void setCanRead(boolean canRead);
36      public void setCanWrite(boolean canWrite);
37      public void setDisabled(boolean disabled);
38      public void setRequired(boolean nullable);
39      public void setAllowedSelections(Selection[] allowedSelections);
40      public void setRelationType(RelationType relationType);
41      public void setMaxSize(Integer maxSize);
42      public void setMaxValue(Double maxValue);
43      public void setMinSize(Integer minSize);
44      public void setMinValue(Double minValue);
45      public void setWantedComponent(UIComponent component);
46      public void setWantedComponentType(FieldRepresentation componentType);
47      public void setDisplaySize(int displaySize);
48      public void setTemporalType(TemporalType temporalType);
49      public void setAllowMultipleSelections(boolean allowMultipleSelections);
50      public void setSelectionSource(SelectionSourceEnum selectionSource);
51      public void setEntityType(boolean entityType);
52      public void setId(boolean id);
53      public void setEmbedded(boolean embedded);
54      public void setDataSource(String dataSource);
55      public void setDataSourceDescription(String dataSourceDescription);
56      public void setDataComparator(String dataComparator);
57      public void setConverterId(String converterId);
58      public void setConverterClass(Class<Converter> converterClass);
59      public void setConverterBean(String converterBean);
60      public void setComponentHandler(Object componentHandler);
61      public void setAttribute(String name, Object value);
62  }
63