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.radpage;
16:
17: import org.romaframework.aspect.core.annotation.AnnotationConstants;
18: import org.romaframework.aspect.view.annotation.ViewClass;
19: import org.romaframework.aspect.view.annotation.ViewField;
20: import org.romaframework.aspect.view.page.EntityPage;
21: import org.romaframework.core.validation.CustomValidation;
22: import org.romaframework.core.validation.ValidationException;
23: import org.romaframework.module.designer.domain.RadField;
24: import org.romaframework.module.designer.view.DomainUtility;
25:
26: @ViewClass(entity=RadField.class)
27: public class RadFieldPage extends EntityPage<RadField> implements
28: CustomValidation {
29: private String[] visibilities = DomainUtility.MEMBER_VISIBILITY;
30:
31: @ViewField(visible=AnnotationConstants.FALSE)
32: public String[] getVisibilities() {
33: return visibilities;
34: }
35:
36: public RadFieldPage() {
37: super (null);
38: }
39:
40: public RadFieldPage(RadField iEntity) {
41: super (null);
42: setEntity(iEntity);
43: }
44:
45: public void validate() throws ValidationException {
46: }
47:
48: @Override
49: public String toString() {
50: return entity.toString();
51: }
52: }
|