/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.opentides.annotation.field; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Generates an input text area. * <b>Sample Usage:</b><br /> *    <code>@TextArea (label = "textAreaLabel", isRequired = "true")</code><br /> * @author allanctan */ @Target(ElementType.FIELD) @Retention(RetentionPolicy.SOURCE) @Documented public @interface DisplayOnly { String type() default "input"; /** * Refers to the name identifier of the field; default value is <code><b>null</b></code>. * */ String label() default ""; /** * Refers to the parameters to be added; default value is <code><b>null</b></code>. * */ String[] springParams() default ""; /** * Determines if the field is included as a search criteria; default value is <code><b>false</b></code>. * */ boolean isSearchCriteria() default false; /** * Determines if the field is included in the table view; default value is <code><b>false</b></code>. * */ boolean listed() default false; /** * Determines if the field is a required field for creation form; default value is <code><b>false</b></code>. * @return */ boolean isRequired() default false; }