01: /*
02: * Copyright 2007 Giordano Maestro (giordano.maestro@assetdata.it)
03: *
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
06: * use this file except in compliance with the License.
07: *
08: * You may obtain a copy of the License at
09: * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
10: * or agreed to in writing, software distributed under the License is
11: * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
12: * KIND, either express or implied. See the License for the specific language
13: * governing permissions and limitations under the License.
14: */
15: package org.romaframework.module.designer.view.domain;
16:
17: import org.romaframework.aspect.core.annotation.AnnotationConstants;
18: import org.romaframework.aspect.core.annotation.CoreField;
19: import org.romaframework.aspect.view.ViewConstants;
20: import org.romaframework.aspect.view.annotation.ViewField;
21: import org.romaframework.core.domain.wrapper.TableEditWrapper;
22:
23: /**
24: * Rapresent a configurable feature of an aspect.
25: *
26: * @author Giordano Maestro(giordano.maestro@assetdata.it) 09/nov/07
27: *
28: */
29: public class FeatureListable {
30: @ViewField(render=ViewConstants.RENDER_LABEL)
31: private String feature;
32: @CoreField(embedded=AnnotationConstants.TRUE,useRuntimeType=AnnotationConstants.TRUE)
33: private TableEditWrapper value;
34:
35: public FeatureListable(String feature, TableEditWrapper value) {
36: super ();
37: this .feature = feature;
38: this .value = value;
39: }
40:
41: /**
42: *
43: * @return feature name
44: */
45: public String getFeature() {
46: return feature;
47: }
48:
49: /**
50: *
51: * @return The wrapper used for the configuration of the feature
52: */
53: public TableEditWrapper getValue() {
54: return value;
55: }
56:
57: }
|