@Repeatable(value=DemoSources.class) @Retention(value=RUNTIME) @Target(value=TYPE) public @interface DemoSource
TabbedDemo. If no value is specified, and the demo view is annotated with GithubLink, then the source URL
defaults to the location of the annotated class under src/test/java and the branch is
determined from the value of GithubBranch in the demo view class (if the annotation is
present) or the containing package of the demo view class. If the source URL is defaulted and no
GithubBranch annotation is present either in the demo view class or its containing
package, then the branch defaults to master.| Modifier and Type | Fields and Description |
|---|---|
static String |
DEFAULT_VALUE |
static String |
GITHUB_SOURCE |
| Modifier and Type | Optional Element and Description |
|---|---|
String |
caption
The caption of the source tab (displayed if several sources are provided).
|
String |
language
The language used to format the sources.
|
SourcePosition |
sourcePosition
Source code position in the layout
|
String |
value
A link to the source code, if different from the annotated class.
|
public static final String GITHUB_SOURCE
public static final String DEFAULT_VALUE
public abstract String value
public abstract String caption
public abstract String language
public abstract SourcePosition sourcePosition
Copyright © 2020–2023 Flowing Code. All rights reserved.