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 */