org.fuin.utils4swing.annotations
Annotation Type Label


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

Use this annotation to assign a label to a field. The label may be used by UI elements to display an appropriate text for the field.


Required Element Summary
 java.lang.String value
          Default label text.
 
Optional Element Summary
 java.lang.String bundle
          Resource name and path.
 java.lang.String key
          Key within the resource bundle.
 

Element Detail

value

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

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:
""


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