org.fuin.objects4j
Annotation Type Label


@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD})
public @interface Label

Use this annotation to assign a label to a type of object or an object's attribute. The label may be used by UI elements to display an appropriate text for the field.


Optional Element Summary
 java.lang.String bundle
          Resource name and path.
 java.lang.String key
          Key within the resource bundle.
 java.lang.String shortKey
          Key for the short version label text within the resource bundle.
 java.lang.String shortText
          Short version of the label text.
 java.lang.String value
          Default label text.
 

value

public abstract java.lang.String value
Default label text. This is only used if no entry in the resource bundle can be found.

Default:
""

bundle

public abstract java.lang.String bundle
Resource name and path. If this is empty the resource bundle is expected to be in the same package and has the same name as the class of the field annotated.

Default:
""

key

public abstract java.lang.String key
Key within the resource bundle. If this is empty the field name itself is used as the key.

Default:
""

shortText

public abstract java.lang.String shortText
Short version of the label text. This may be used in situations where there isn't much space like in a table header. This is only used if no entry in the resource bundle can be found.

Default:
""

shortKey

public abstract java.lang.String shortKey
Key for the short version label text within the resource bundle. If this is empty the field name itself is used as the key.

Default:
""


Copyright © 2010 Future Invent Informationsmanagement GmbH. All Rights Reserved.