From fdcaacfbc1b7e0956557242bd5d5ccd9c8e0a870 Mon Sep 17 00:00:00 2001 From: Pjiesco Date: Sat, 7 Oct 2023 20:45:13 +0200 Subject: [PATCH] Update sample --- .../samplejava/TouchPortalSampleJavaPlugin.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SampleJava/src/main/java/com/christophecvb/touchportal/samplejava/TouchPortalSampleJavaPlugin.java b/SampleJava/src/main/java/com/christophecvb/touchportal/samplejava/TouchPortalSampleJavaPlugin.java index 2737b69..0e94ecd 100644 --- a/SampleJava/src/main/java/com/christophecvb/touchportal/samplejava/TouchPortalSampleJavaPlugin.java +++ b/SampleJava/src/main/java/com/christophecvb/touchportal/samplejava/TouchPortalSampleJavaPlugin.java @@ -62,9 +62,16 @@ private enum Categories { * State and Event definition example */ @State(defaultValue = "1", categoryId = "BaseCategory") - @Event(valueChoices = {"1", "2"}, format = "When customStateWithEvent becomes $val") + @Event(valueChoices = {"1", "2"}, valueType = ValueType.CHOICE, format = "When customStateWithEvent becomes $val") private String customStateWithEvent; + /** + * State and Event definition example + */ + @State(defaultValue = "1", categoryId = "BaseCategory") + @Event(valueType = ValueType.TEXT, format = "When customStateWithEvent becomes $val") + private String stateWithEventTypeText; + /** * State of type choice definition example */