org.nakedobjects.applib.annotation
Annotation Type MultiLine


@Inherited
@Target(value={TYPE,METHOD,PARAMETER})
@Retention(value=RUNTIME)
public @interface MultiLine

Indicates that a string property may have more than one line (ie may contain carriage returns).

In addition you can specify the typical number of lines (defaults to 6) and whether the lines should not be wrapped (by default they will not be wrapped).

Can also be specified for types that are annotated as @Value types. To apply, the value must have string semantics.

Note that if this annotation is applied, then any choices for the property (ie as per a choicesXxx method) will be ignored.


Optional Element Summary
 int numberOfLines
           
 boolean preventWrapping
           
 

numberOfLines

public abstract int numberOfLines
Default:
6

preventWrapping

public abstract boolean preventWrapping
Default:
true


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.