Skip to content

Commit 4fe5f11

Browse files
committed
NWidgetDemo: add more fields
1 parent db47e50 commit 4fe5f11

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/test/java/org/scijava/nwidget/NWidgetDemo.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,18 @@ public static void main(final String... args) throws Exception {
2424

2525
@Parameter
2626
private String name = "Chuckles McGee";
27+
@Parameter(min = "0")
28+
private int age = 27;
2729
@Parameter(min = "0", max = "100", style = NNumberWidget.SCROLL_BAR_STYLE)
28-
private Integer age = 27;
30+
private int percent = 50;
31+
@Parameter(min = "10", max = "25", style = NNumberWidget.SLIDER_STYLE)
32+
private int jokes = 20;
33+
@Parameter(style = NTextWidget.PASSWORD_STYLE)
34+
private String password;
35+
// @Parameter(style = NTextWidget.AREA_STYLE)
36+
// private String description =
37+
// "I am a clown student in my fourth year at Dell'Arte International. " +
38+
// "I like juggling, unicycles and banana cream pies.";
2939
};
3040
final StructInstance<Object> structInstance = //
3141
ParameterStructs.create(person);

0 commit comments

Comments
 (0)