Skip to content

Commit 54ead0e

Browse files
committed
docs: add javadoc for new method
1 parent 3388034 commit 54ead0e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/com/flowingcode/vaadin/addons/demo/TabbedDemo.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ public void addDemo(Component demo, String label, String sourceCodeUrl) {
115115
this.addDemo(demo.getClass(), label, sourceCodeUrl);
116116
}
117117

118-
public void addDemo(Class<? extends Component> clazz, String label, String sourceCodeUrl){
118+
/** Add a tab with a demo component.
119+
*
120+
* @param clazz the class of routed demo view component
121+
* @param label the demo name (tab label)
122+
* @param sourceCodeUrl the url of the demo, <b>null</b> to not show source code section.
123+
*/
124+
public void addDemo(Class<? extends Component> clazz, String label, String sourceCodeUrl) {
119125
if(!clazz.isAnnotationPresent(Route.class)) {
120126
throw new IllegalArgumentException(clazz + " must be annotated as Route");
121127
}

0 commit comments

Comments
 (0)