/*
*
* * Copyright (c) 2016. David Sowerby
* *
* * Licensed 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 uk.q3c.krail.core.i18n;
import uk.q3c.krail.testutil.i18n.TestLabelKey;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by David Sowerby on 10/02/15.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@I18NAnnotation
public @interface KrailCaption {
TestLabelKey caption() default TestLabelKey.Large;
TestLabelKey description() default TestLabelKey.Large;
/**
* Usually only used with Vaadin Labels
*
* @return
*/
TestLabelKey value() default TestLabelKey.Large;
/**
* The locale for an annotated component is usually taken from {@link CurrentLocale}, but if this optional
* parameter
* is specified, it will be used instead. This allows specific components to be fixed to display content in a
* language different to the rest of the application.
*/
String locale() default "";
}