Package react4j.annotations
Annotation Interface View
@Documented
@Target(TYPE)
@StingProvider("[FlatEnclosingName]React4j_[SimpleName]Factory")
public @interface View
Annotation used to identify a React4j view.
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanReturn true if the generated builder API should be public.Return the name of the view.Enum indicating the capabilities of the view.
-
Element Details
-
name
Return the name of the view. The value defaults to the simple name of the class. If the value is specified, the value must conform to the requirements of a java identifier. It should also be unique across the suite of views used within an application but this is not strictly required as the name is only used for development purposes. (i.e. This is the name that is used within the React DevTools).- Returns:
- the name of the view.
- Default:
- "<default>"
-
exportBuilder
boolean exportBuilderReturn true if the generated builder API should be public. When false, the generated builder API is package access and intended for local use. When true, the generated builder API is public and can be used from other packages while the annotated view type itself remains package access.- Returns:
- true if the generated builder API should be public.
- Default:
- false
-
type
Enum indicating the capabilities of the view. See theView.Typeenum for further details.- Returns:
- an enum indicating the capabilities of the view.
- See Also:
- Default:
- STATEFUL
-